本文整理汇总了PHP中td_panel_generator::ajax_box方法的典型用法代码示例。如果您正苦于以下问题:PHP td_panel_generator::ajax_box方法的具体用法?PHP td_panel_generator::ajax_box怎么用?PHP td_panel_generator::ajax_box使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类td_panel_generator
的用法示例。
在下文中一共展示了td_panel_generator::ajax_box方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
function __construct($post = '')
{
//big sections in witch the td_fonts::$typography_sections are nested
$td_section_separator_array = array(0 => 'Header', 8 => 'Modules and Blocks General', 15 => 'Modules and Blocks Article Title', 41 => 'Post title', 50 => 'Post content', 60 => 'Post elements', 75 => 'Pages', 83 => 'Footer', 86 => 'Other', 95 => 'Body', 96 => 'bbPress - Forum');
echo td_panel_generator::ajax_box('Header', array('start_section' => 0, 'end_section' => 7, 'td_ajax_view' => 'td_theme_fonts'));
echo td_panel_generator::ajax_box('Modules and Blocks General', array('start_section' => 8, 'end_section' => 14, 'td_ajax_view' => 'td_theme_fonts'));
echo td_panel_generator::ajax_box('Modules and Blocks Article Title', array('start_section' => 15, 'end_section' => 40, 'td_ajax_view' => 'td_theme_fonts'));
echo td_panel_generator::ajax_box('Post title', array('start_section' => 41, 'end_section' => 49, 'td_ajax_view' => 'td_theme_fonts'));
echo td_panel_generator::ajax_box('Post content', array('start_section' => 50, 'end_section' => 59, 'td_ajax_view' => 'td_theme_fonts'));
echo td_panel_generator::ajax_box('Post elements', array('start_section' => 60, 'end_section' => 74, 'td_ajax_view' => 'td_theme_fonts'));
echo td_panel_generator::ajax_box('Pages', array('start_section' => 75, 'end_section' => 82, 'td_ajax_view' => 'td_theme_fonts'));
echo td_panel_generator::ajax_box('Footer', array('start_section' => 83, 'end_section' => 85, 'td_ajax_view' => 'td_theme_fonts'));
echo td_panel_generator::ajax_box('Other', array('start_section' => 86, 'end_section' => 94, 'td_ajax_view' => 'td_theme_fonts'));
echo td_panel_generator::ajax_box('Body', array('start_section' => 95, 'end_section' => 95, 'td_ajax_view' => 'td_theme_fonts'));
echo td_panel_generator::ajax_box('bbPress - Forum', array('start_section' => 96, 'end_section' => 1000, 'td_ajax_view' => 'td_theme_fonts'));
}
示例2: array
<span class="td-box-title">TEXT COLOR</span>
<p>Select sub footer bottom text color</p>
</div>
<div class="td-box-control-full">
<?php
echo td_panel_generator::color_picker(array('ds' => 'td_option', 'option_id' => 'tds_footer_bottom_text_color', 'default_color' => '#cccccc'));
?>
</div>
</div>
<?php
echo td_panel_generator::box_end();
?>
<hr>
<div class="td-section-separator">Content</div>
<!-- POSTS PAGE -->
<?php
echo td_panel_generator::ajax_box('Posts', array('td_ajax_calling_file' => basename(__FILE__), 'td_ajax_box_id' => 'td_posts'));
?>
<!-- PAGES COLORS -->
<?php
echo td_panel_generator::ajax_box('Pages', array('td_ajax_calling_file' => basename(__FILE__), 'td_ajax_box_id' => 'td_pages'));
示例3: get_category_link
$td_tmp_buffer = '<a href="' . get_category_link($parent_cat_obj->term_id) . '" target="_blank" data-is-category-link="yes">' . $parent_cat_obj->name . '</a>';
$last_cat_id = $parent_cat_obj->term_id;
} else {
if ($this->td_category_hierarchy[$contor_array - 1]->term_id == $parent_cat_obj->parent) {
$td_tmp_buffer .= '<img src="' . get_template_directory_uri() . '/includes/wp_booster/wp-admin/images/panel/panel-breadcrumb.png" class="td-panel-breadcrumb"/>' . '<a href="' . get_category_link($parent_cat_obj->term_id) . '" target="_blank" data-is-category-link="yes">' . $parent_cat_obj->name . '</a>';
$last_cat_id = $parent_cat_obj->term_id;
}
}
$contor_array++;
}
//add child
$this->td_category_buffer[$td_tmp_buffer] = $last_cat_id;
}
}
function end_el(&$output, $page, $depth = 0, $args = array())
{
}
}
// get all the categories
$categories = get_categories(array('hide_empty' => 0, 'number' => 1000));
// 'walk' all the categories
$td_category_walker_panel = new td_category_walker_panel();
$td_category_walker_panel->walk($categories, 4);
// add each category panel
foreach ($td_category_walker_panel->td_category_buffer as $display_category_name => $category_id) {
?>
<!-- LAYOUT SETTINGS -->
<?php
echo td_panel_generator::ajax_box($display_category_name, array('td_ajax_calling_file' => basename(__FILE__), 'td_ajax_box_id' => 'td_get_category_section_by_id', 'category_id' => $category_id));
}
//end foreach
示例4: array
<?php
echo td_panel_generator::ajax_box('Style 2 - Black', array('td_ajax_calling_file' => basename(__FILE__), 'td_ajax_box_id' => 'td_style_2_black'));
?>
<!-- STYLE 3 CSS ------------------------------------------------------------------------->
<?php
echo td_panel_generator::ajax_box('Style 3 - Orange', array('td_ajax_calling_file' => basename(__FILE__), 'td_ajax_box_id' => 'td_style_3_orange'));
?>
<!-- STYLE 4 CSS ------------------------------------------------------------------------->
<?php
echo td_panel_generator::ajax_box('Style 4 - Yellow', array('td_ajax_calling_file' => basename(__FILE__), 'td_ajax_box_id' => 'td_style_4_yellow'));
?>
<!-- STYLE 5 CSS ------------------------------------------------------------------------->
<?php
echo td_panel_generator::ajax_box('Style 5 - Green', array('td_ajax_calling_file' => basename(__FILE__), 'td_ajax_box_id' => 'td_style_5_green'));
?>
<!-- STYLE 6 CSS ------------------------------------------------------------------------->
<?php
echo td_panel_generator::ajax_box('Style 6 - Pink', array('td_ajax_calling_file' => basename(__FILE__), 'td_ajax_box_id' => 'td_style_6_pink'));
}
示例5: get_taxonomies
<div class="td-section-separator">Custom taxonomies</div>
<?php
// get all the taxonomies - except the built ones
$td_taxonomies_obj = get_taxonomies(array('_builtin' => false), 'object');
$are_custom_taxonomies_installed = false;
foreach ($td_taxonomies_obj as $td_taxonomy_obj) {
if (td_global::$is_woocommerce_installed === true and ($td_taxonomy_obj->name == 'product_type' or $td_taxonomy_obj->name == 'product_cat' or $td_taxonomy_obj->name == 'product_shipping_class' or $td_taxonomy_obj->name == 'product_tag')) {
continue;
}
$taxonomy_used_on_cpt_html = '<span class="td-box-title-right-title">Used on CPT:</span>';
if (!empty($td_taxonomy_obj->object_type)) {
foreach ($td_taxonomy_obj->object_type as $taxonomy_used_on_cpt) {
$taxonomy_used_on_cpt_html .= '<span class="td-box-title-label">' . $taxonomy_used_on_cpt . '</span>';
}
} else {
$taxonomy_used_on_cpt_html .= '<span class="td-box-title-label">not used on CPT</span>';
}
$taxonomy_used_on_cpt_html = '<span class="td-box-title-right">' . $taxonomy_used_on_cpt_html . '</span>';
echo td_panel_generator::ajax_box($td_taxonomy_obj->labels->name . '<span class="td-excerpt-arrow"></span><span class="td-box-title-label">' . $td_taxonomy_obj->name . '</span>' . $taxonomy_used_on_cpt_html, array('td_ajax_calling_file' => basename(__FILE__), 'td_ajax_box_id' => 'td_get_tax_settings_by_tax_name', 'taxonomy_name' => $td_taxonomy_obj->name));
$are_custom_taxonomies_installed = true;
}
if ($are_custom_taxonomies_installed === false) {
echo '<div class="td-panel-no-settings-found" style="text-align: center">
<strong>No custom taxonomies detected</strong> <br>
<span>
please note that WooCommerce taxonomies are ignored
</span>
</div>
';
}
//print_r($td_taxonomies_obj);
示例6: show_content_panel
if (jqXHR.responseJSON.constructor === Object) {
// show the content panel updated with response values
show_content_panel(
// this is the jquery object to be loaded
jQuery('#panel_translation_custom_id'),
// this parameter keep the open position
true,
// this is callback function. It completes the fields
function () {
td_translation.completeTranslation(jqXHR.responseJSON)
}
);
}
}
}
});
}
});
});
</script>
<?php
echo td_panel_generator::ajax_box('Translations', array('td_ajax_calling_file' => basename(__FILE__), 'td_ajax_box_id' => 'td_translations'), 'panel_translation_custom_id');
示例7: array
<?php
echo td_panel_generator::ajax_box('Post template style 11 ', array('td_ajax_calling_file' => basename(__FILE__), 'td_ajax_box_id' => 'td_get_ad_spot_by_id', 'ad_spot_id' => 'post_style_11'));
?>
<?php
echo td_panel_generator::ajax_box('Footer top ', array('td_ajax_calling_file' => basename(__FILE__), 'td_ajax_box_id' => 'td_get_ad_spot_by_id', 'ad_spot_id' => 'footer_top'));
?>
<!-- custom ads -->
<?php
echo td_panel_generator::ajax_box('Custom ad 1', array('td_ajax_calling_file' => basename(__FILE__), 'td_ajax_box_id' => 'td_get_ad_spot_by_id', 'ad_spot_id' => 'custom_ad_1'));
?>
<?php
echo td_panel_generator::ajax_box('Custom ad 2', array('td_ajax_calling_file' => basename(__FILE__), 'td_ajax_box_id' => 'td_get_ad_spot_by_id', 'ad_spot_id' => 'custom_ad_2'));
?>
<?php
echo td_panel_generator::ajax_box('Custom ad 3', array('td_ajax_calling_file' => basename(__FILE__), 'td_ajax_box_id' => 'td_get_ad_spot_by_id', 'ad_spot_id' => 'custom_ad_3'));
?>
<?php
echo td_panel_generator::ajax_box('Custom ad 4', array('td_ajax_calling_file' => basename(__FILE__), 'td_ajax_box_id' => 'td_get_ad_spot_by_id', 'ad_spot_id' => 'custom_ad_4'));
?>
<?php
echo td_panel_generator::ajax_box('Custom ad 5', array('td_ajax_calling_file' => basename(__FILE__), 'td_ajax_box_id' => 'td_get_ad_spot_by_id', 'ad_spot_id' => 'custom_ad_5'));
示例8: array
<!-- Thumbs on Modules/Blocks -->
<?php
echo td_panel_generator::ajax_box('Thumbs on modules & blocks', array('td_ajax_view' => 'td_thumbs'));
?>
<?php
/**
* @todo modulele astea trebuie incarcate by default
* module8 category label should be enabled by default
* module_related
* module_mega_menu
* module_slide
*/
?>
<!-- Category label on modules -->
<?php
echo td_panel_generator::box_start('Category tag on Modules/Blocks', false);
?>
<div class="td-box-row">
<div class="td-box-description td-box-full">
<span class="td-box-title">More information:</span>
<p>From here you can show or hide the category tag from modules. For more details about Modules/Blocks <a href="#" >read here</a></p>
</div>
<div class="td-box-row-margin-bottom"></div>
示例9: foreach
<?php
echo td_panel_generator::box_start('Documentation on how to use custom fonts');
?>
<!-- info text -->
<div class="td-box-row">
<div class="td-box-description td-box-full">
<p>You can select from here what character subsets will be loaded for each google font. The character subset will be loaded only if the font supports the specific glyphs. Try to enable only the subsets that you use because the site will load slower with each additional subset.</p>
<p><a href="?page=td_theme_panel&td_page=td_view_custom_fonts" target="_blank" class="td-big-button">Add custom fonts / Change google fonts settings</a></p>
</div>
</div>
<?php
echo td_panel_generator::box_end();
?>
<?php
foreach (td_global::$typography_settings_list as $panel_section => $font_settings_array) {
echo td_panel_generator::ajax_box($panel_section, array('td_ajax_calling_file' => basename(__FILE__), 'td_ajax_box_id' => 'td_get_font_section_by_section_id', 'section_name' => $panel_section, 'td_ajax_view' => 'td_theme_fonts'));
}