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'));
 }
    static function thumbs_panel()
    {
        ob_start();
        ?>

        <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 enable the thumbnail image that will be cropped for the modules &amp; blocks. If the thumbnail image is not enabled for a specific module that you use, the module will show a default placeholder with the size of the image and instructions about how to enable the thumb for that module</p>
                <p><strong style="color:red">Please regenerate your thumbnails if you change any of the thumb settings!</strong> - <a href="http://forum.tagdiv.com/existing-content/" target="_blank">read more</a></p>
            </div>
            <div class="td-box-row-margin-bottom"></div>
        </div>


        <?php 
        foreach (td_global::$thumbs_list as $thumb) {
            ?>
            <!-- THUMB -->
            <div class="td-box-row">
                <div class="td-box-description">
                    <span class="td-box-title"><?php 
            echo $thumb['width'] . ' x ' . $thumb['height'];
            ?>
</span>
                    <p>This thumb size is used for:</p>
                    <?php 
            echo "<ul><li>" . implode("</li><li>", $thumb['used_on']) . "</li></ul>";
            ?>
                </div>
                <div class="td-box-control-full">
                    <?php 
            echo td_panel_generator::checkbox(array('ds' => 'td_option', 'option_id' => 'tds_thumb_' . $thumb['name'], 'true_value' => 'yes', 'false_value' => ''));
            ?>
                </div>
            </div>
        <?php 
        }
        return ob_get_clean();
    }
Ejemplo n.º 3
0
    function render_inputs()
    {
        //creating the inputs
        foreach ($this->global_translations_array as $key_id => $value) {
            ?>
            <div class="td-box-row">
                <div class="td-box-description">
                    <span class="td-box-title td-title-on-row"><?php 
            echo $key_id;
            ?>
</span>
                    <p></p>
                </div>
                <div class="td-box-control-full">
                    <?php 
            echo td_panel_generator::input(array('ds' => 'td_translate', 'option_id' => $key_id));
            ?>
                </div>
            </div>

            <?php 
        }
    }
Ejemplo n.º 4
0
        <?php 
echo td_panel_generator::color_picker(array('ds' => 'td_option', 'option_id' => 'tds_page_title_color', 'default_color' => '#111111'));
?>
    </div>
</div>

<!-- Page content -->
<div class="td-box-row">
    <div class="td-box-description">
        <span class="td-box-title">页面文字颜色</span>
        <p>选择页面文字颜色</p>
    </div>
    <div class="td-box-control-full">
        <?php 
echo td_panel_generator::color_picker(array('ds' => 'td_option', 'option_id' => 'tds_page_content_color', 'default_color' => '#444444'));
?>
    </div>
</div>

<!-- Page content h -->
<div class="td-box-row">
    <div class="td-box-description">
        <span class="td-box-title">页面 H1, H2, H3, H4, H5, H6 颜色</span>
        <p>选择页面 h 颜色</p>
    </div>
    <div class="td-box-control-full">
        <?php 
echo td_panel_generator::color_picker(array('ds' => 'td_option', 'option_id' => 'tds_page_h_color', 'default_color' => '#111111'));
?>
    </div>
</div>
Ejemplo n.º 5
0
        ?>


        <?php 
        if (!empty($td_module_array['excerpt_content'])) {
            ?>
            <!-- CONTENT LENGTH LENGTH -->
            <div class="td-box-row">
                <div class="td-box-description">
                    <span class=" td-box-title td-title-on-row">CONTENT LENGTH</span>
                    <p></p>
                </div>
                <div class="td-box-control-full">
                    <?php 
            echo td_panel_generator::input(array('ds' => 'td_option', 'option_id' => $td_module_class . '_content_excerpt', 'placeholder' => $td_module_array['excerpt_content']));
            ?>
                </div>
            </div>
        <?php 
        }
        ?>


        <?php 
        echo td_panel_generator::box_end();
    }
}
?>


Ejemplo n.º 6
0
                    $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
Ejemplo n.º 7
0
                    }
                }
                break;
            case 'enabled_on_more_articles_box':
                // all modules that are enabled on the more articles box
                foreach (td_api_module::get_all() as $module_class => $module_array) {
                    if ($module_array['enabled_on_more_articles_box'] === true) {
                        $modules_array[] = array('text' => '', 'title' => '', 'val' => td_util::get_module_loop_id($module_class), 'img' => $module_array['img']);
                    }
                }
                break;
        }
        return $modules_array;
    }
    static function helper_generate_used_on_block_list($used_on_block_list_array)
    {
        if (is_array($used_on_block_list_array) and count($used_on_block_list_array)) {
            $excerpt_list = '<span class="td-excerpt-arrow"></span>';
            foreach ($used_on_block_list_array as $block_list => $block_list_val) {
                $excerpt_list .= ' <span>' . $block_list_val . '</span>';
            }
            return $excerpt_list;
        }
        return '';
    }
    static function helper_generate_header_style_list()
    {
    }
}
td_panel_generator::init_class();
Ejemplo n.º 8
0
                    }
                }
                break;
            case 'enabled_on_more_articles_box':
                // all modules that are enabled on the more articles box
                foreach (td_api_module::get_all() as $module_class => $module_array) {
                    if ($module_array['enabled_on_more_articles_box'] === true) {
                        $modules_array[] = array('text' => '', 'title' => '', 'val' => td_util::get_module_loop_id($module_class), 'img' => $module_array['img']);
                    }
                }
                break;
        }
        return $modules_array;
    }
    static function helper_generate_used_on_block_list($used_on_block_list_array)
    {
        if (is_array($used_on_block_list_array) and count($used_on_block_list_array)) {
            $excerpt_list = '<span class="td-excerpt-arrow"></span>';
            foreach ($used_on_block_list_array as $block_list => $block_list_val) {
                $excerpt_list .= ' <span class="td-box-title-label">' . $block_list_val . '</span>';
            }
            return $excerpt_list;
        }
        return '';
    }
    static function helper_generate_header_style_list()
    {
    }
}
td_panel_generator::init();
Ejemplo n.º 9
0
        <?php 
echo td_panel_generator::color_picker(array('ds' => 'td_option', 'option_id' => 'tds_post_content_color', 'default_color' => '#444444'));
?>
    </div>
</div>

<!-- Post h color -->
<div class="td-box-row">
    <div class="td-box-description">
        <span class="td-box-title">POST H1, H2, H3, H4, H5, H6 COLOR</span>
        <p>Select in post h color</p>
    </div>
    <div class="td-box-control-full">
        <?php 
echo td_panel_generator::color_picker(array('ds' => 'td_option', 'option_id' => 'tds_post_h_color', 'default_color' => '#222222'));
?>
    </div>
</div>

<!-- Post blockquote color -->
<div class="td-box-row">
    <div class="td-box-description">
        <span class="td-box-title">POST BLOCKQUOTE COLOR</span>
        <p>Select in post blockquote color</p>
    </div>
    <div class="td-box-control-full">
        <?php 
echo td_panel_generator::color_picker(array('ds' => 'td_option', 'option_id' => 'tds_post_blockquote_color', 'default_color' => ''));
?>
    </div>
</div>
Ejemplo n.º 10
0
        <?php 
echo td_panel_generator::color_picker(array('ds' => 'td_option', 'option_id' => 'tds_menu_color', 'default_color' => ''));
?>
    </div>
</div>

<!-- Submenu Hover color -->
<div class="td-box-row">
    <div class="td-box-description">
        <span class="td-box-title">ACTIVE & HOVER COLOR</span>
        <p>Select the active and hover color for menu and submenu</p>
    </div>
    <div class="td-box-control-full">
        <?php 
echo td_panel_generator::color_picker(array('ds' => 'td_option', 'option_id' => 'tds_submenu_hover_color', 'default_color' => ''));
?>
    </div>
</div>

<!-- Menu text color -->
<div class="td-box-row">
    <div class="td-box-description">
        <span class="td-box-title">MENU TEXT COLOR</span>
        <p>Select menu text color</p>
    </div>
    <div class="td-box-control-full">
        <?php 
echo td_panel_generator::color_picker(array('ds' => 'td_option', 'option_id' => 'tds_menu_text_color', 'default_color' => '#000000'));
?>
    </div>
</div>
Ejemplo n.º 11
0
        <div class="td-meta-box-row">
            <span class="td-page-o-custom-label">
                Layout:
                <?php 
td_util::tooltip_html('
                        <h3>Layout select:</h3>
                        <p>Select a custom module to be used in the loop of this page.</p>
                        <ul>
                            <li>If you want to make you own modules, please go to our <a href="http://forum.tagdiv.com/api-modules-introduction/" target="_blank">API section</a> of the documentation</li>
                        </ul>
                    ', 'right');
?>
            </span>
                <div class="td-page-o-visual-select-modules">
                    <?php 
echo td_panel_generator::visual_select_o(array('ds' => 'td_homepage_loop', 'item_id' => '', 'option_id' => 'td_layout', 'values' => td_panel_generator::helper_display_modules('default+enabled_on_loops'), 'selected_value' => $mb->get_the_value('td_layout')));
?>
                </div>
        </div>

        <!-- show or hide the title -->
        <div class="td-meta-box-row">
            <?php 
$mb->the_field('list_custom_title_show');
?>
            <span class="td-page-o-custom-label">
                Show list title:
                <?php 
td_util::tooltip_html('
                        <h3>Show the list title:</h3>
                        <p>Hide or show the loop title. It can be something like "Latest articles" etc.</p>
                        <p>How to make an item:</p>
                        <ul>
                            <li><strong>add a text wrapped in H3</strong> - this will be the title of the item</li>
                            <li><strong>add any picture</strong> from the media library</li>
                            <li>in a new paragraph below the picture, <strong>add some text</strong></li>
                            <li><i>repeat the last 3 steps for each item that you want to add</i></li>
                        </ul>

                        <p>The system will use the H3 from the tiles to split your article and make each individual slide or numbered item</p>
                    ', 'right');
?>
                </span>

                <div class="td-inline-block-wrap">
                    <?php 
echo td_panel_generator::visual_select_o(array('ds' => 'td_post_theme_settings', 'item_id' => '', 'option_id' => 'smart_list_template', 'values' => td_api_smart_list::_helper_td_smart_list_api_to_panel_values(), 'selected_value' => $mb->get_the_value('smart_list_template')));
?>
                </div>
            </div>


            <!-- title tag -->
            <div class="td-meta-box-row">
                <span class="td-page-o-custom-label">
                    Title tags:
                    <?php 
td_util::tooltip_html('
                        <h3>Smart lists title tags:</h3>
                        <p>Customize what tag is used for <i>Title</i> lookup. This setting is useful if for example, you already have articles that use H2 for items</p>
                    ', 'right');
?>
Ejemplo n.º 13
0
        <?php 
echo td_panel_generator::color_picker(array('ds' => 'td_option', 'option_id' => 'tds_top_menu_text_hover_color', 'default_color' => ''));
?>
    </div>
</div>

<!-- SOCIAL ICONS COLOR -->
<div class="td-box-row">
    <div class="td-box-description">
        <span class="td-box-title">SOCIAL ICONS COLOR</span>
        <p>Select social icons color</p>
    </div>
    <div class="td-box-control-full">
        <?php 
echo td_panel_generator::color_picker(array('ds' => 'td_option', 'option_id' => 'tds_top_social_icons_color', 'default_color' => ''));
?>
    </div>
</div>

<!-- SOCIAL ICONS HOVER COLOR -->
<div class="td-box-row">
    <div class="td-box-description">
        <span class="td-box-title td-title-on-row">SOCIAL ICONS HOVER COLOR</span>
        <p>Select social icons hover color</p>
    </div>
    <div class="td-box-control-full">
        <?php 
echo td_panel_generator::color_picker(array('ds' => 'td_option', 'option_id' => 'tds_top_social_icons_hover_color', 'default_color' => ''));
?>
    </div>
</div>
Ejemplo n.º 14
0
    /**
     * render the categories forms
     */
    static function render_categories_form()
    {
        //get all categories from database
        $categories = get_categories(array('hide_empty' => 0));
        $td_category_walker_panel = new td_category_walker_panel();
        $td_category_walker_panel->walk($categories, 4);
        //print_r($rawalker->td_category_buffer);
        //die;
        //get_categories(array('hide_empty' => 0));//wordpress way
        $categories = td_util::get_category2id_array(false);
        //our function
        foreach ($td_category_walker_panel->td_category_buffer as $display_category_name => $category_id) {
            ?>
            <!-- LAYOUT SETTINGS -->
            <?php 
            echo td_panel_generator::box_start($display_category_name, false);
            ?>

                <!-- DISPLAY VIEW -->
                <div class="td-box-row">
                    <div class="td-box-description">
                        <span class="td-box-title">ARTICLE DISPLAY VIEW</span>
                        <p>Select a module type, this is how your article list will be displayed</p>
                    </div>
                    <div class="td-box-control-full td-panel-module">
                        <?php 
            echo td_panel_generator::visual_select_o(array('ds' => 'td_category', 'item_id' => $category_id, 'option_id' => 'tdc_layout', 'values' => array(array('text' => '', 'title' => '', 'val' => '', 'img' => get_template_directory_uri() . '/wp-admin/images/panel/module-default.png'), array('text' => '', 'title' => '', 'val' => '1', 'img' => get_template_directory_uri() . '/wp-admin/images/panel/module-1.png'), array('text' => '', 'title' => '', 'val' => '2', 'img' => get_template_directory_uri() . '/wp-admin/images/panel/module-2.png'), array('text' => '', 'title' => '', 'val' => '3', 'img' => get_template_directory_uri() . '/wp-admin/images/panel/module-3.png'), array('text' => '', 'title' => '', 'val' => '4', 'img' => get_template_directory_uri() . '/wp-admin/images/panel/module-4.png'), array('text' => '', 'title' => '', 'val' => '5', 'img' => get_template_directory_uri() . '/wp-admin/images/panel/module-5.png'), array('text' => '', 'title' => '', 'val' => '6', 'img' => get_template_directory_uri() . '/wp-admin/images/panel/module-6.png'), array('text' => '', 'title' => '', 'val' => '7', 'img' => get_template_directory_uri() . '/wp-admin/images/panel/module-7.png'), array('text' => '', 'title' => '', 'val' => '8', 'img' => get_template_directory_uri() . '/wp-admin/images/panel/module-8.png'), array('text' => '', 'title' => '', 'val' => '9', 'img' => get_template_directory_uri() . '/wp-admin/images/panel/module-9.png'), array('text' => '', 'title' => '', 'val' => 'search', 'img' => get_template_directory_uri() . '/wp-admin/images/panel/module-10.png'))));
            ?>
                    </div>
                </div>

                <!-- Custom Sidebar + position -->
                <div class="td-box-row">
                    <div class="td-box-description">
                        <span class="td-box-title">CUSTOM SIDEBAR + POSITION</span>
                        <p>Sidebar position and custom sidebars</p>
                    </div>
                    <div class="td-box-control-full td-panel-sidebar-pos">
                        <div class="td-display-inline-block">
                            <?php 
            echo td_panel_generator::visual_select_o(array('ds' => 'td_category', 'item_id' => $category_id, 'option_id' => 'tdc_sidebar_pos', 'values' => array(array('text' => '', 'title' => '', 'val' => '', 'img' => get_template_directory_uri() . '/wp-admin/images/panel/sidebar-default.png'), array('text' => '', 'title' => '', 'val' => 'sidebar_left', 'img' => get_template_directory_uri() . '/wp-admin/images/panel/sidebar-left.png'), array('text' => '', 'title' => '', 'val' => 'no_sidebar', 'img' => get_template_directory_uri() . '/wp-admin/images/panel/sidebar-full.png'), array('text' => '', 'title' => '', 'val' => 'sidebar_right', 'img' => get_template_directory_uri() . '/wp-admin/images/panel/sidebar-right.png'))));
            ?>
                            <div class="td-panel-control-comment td-text-align-right">Select sidebar position</div>
                        </div>
                        <div class="td-display-inline-block td_sidebars_pulldown_align">
                            <?php 
            echo td_panel_generator::sidebar_pulldown(array('ds' => 'td_category', 'item_id' => $category_id, 'option_id' => 'tdc_sidebar_name'));
            ?>
                            <div class="td-panel-control-comment td-text-align-right">Create or select an existing sidebar</div>
                        </div>
                    </div>
                </div>

                <!-- Show Featured slider -->
                <div class="td-box-row">
                    <div class="td-box-description">
                        <span class="td-box-title">SHOW FEATURED SLIDER</span>
                        <p>Enable or disable the featured slider (only posts that are in the Featured category are showed in slider)</p>
                    </div>
                    <div class="td-box-control-full">
                        <?php 
            echo td_panel_generator::checkbox(array('ds' => 'td_category', 'item_id' => $category_id, 'option_id' => 'tdc_slider', 'true_value' => '', 'false_value' => 'yes'));
            ?>
                    </div>
                </div>

                <!-- Category color -->
                <div class="td-box-row">
                    <div class="td-box-description">
                        <span class="td-box-title">CATEGORY TAG COLOR ON POST PAGE</span>
                        <p>Pick a color for this category tag on post page</p>
                    </div>
                    <div class="td-box-control-full">
                        <?php 
            echo td_panel_generator::color_piker(array('ds' => 'td_category', 'item_id' => $category_id, 'option_id' => 'tdc_color', 'default_color' => ''));
            ?>
                    </div>
                </div>

                <!-- BACKGROUND UPLOAD -->
                <div class="td-box-row">
                    <div class="td-box-description">
                        <span class="td-box-title">BACKGROUND UPLOAD</span>
                        <p>Upload your logo (300 x 100px) .png</p>
                    </div>
                    <div class="td-box-control-full">
                        <?php 
            echo td_panel_generator::upload_image(array('ds' => 'td_category', 'item_id' => $category_id, 'option_id' => 'tdc_image'));
            ?>
                    </div>
                </div>

                <!-- BACKGROUND STYLE -->
                <div class="td-box-row">
                    <div class="td-box-description">
                        <span class="td-box-title">BACKGROUND STYLE</span>
                        <p>How the background will be dispalyed</p>
                    </div>
                    <div class="td-box-control-full">
                        <?php 
            echo td_panel_generator::radio_button_control(array('ds' => 'td_category', 'item_id' => $category_id, 'option_id' => 'tdc_bg_repeat', 'values' => array(array('text' => 'Default', 'val' => ''), array('text' => 'Stretch', 'val' => 'stretch'), array('text' => 'Tiled', 'val' => 'tile'))));
            ?>
                    </div>
                </div>

                <!-- Background color -->
                <div class="td-box-row">
                    <div class="td-box-description">
                        <span class="td-box-title">BACKGROUND COLOR</span>
                        <p>Use a solid color instead of an image</p>
                    </div>
                    <div class="td-box-control-full">
                        <?php 
            echo td_panel_generator::color_piker(array('ds' => 'td_category', 'item_id' => $category_id, 'option_id' => 'tdc_bg_color', 'default_color' => ''));
            ?>
                    </div>
                </div>

                <!-- Hide category tag on post -->
                <div class="td-box-row">
                    <div class="td-box-description">
                        <span class="td-box-title">HIDE CATEGORY TAG ON POST</span>
                        <p>Show or hide category tags on post page</p>
                    </div>
                    <div class="td-box-control-full">
                        <?php 
            echo td_panel_generator::checkbox(array('ds' => 'td_category', 'item_id' => $category_id, 'option_id' => 'tdc_hide_on_post', 'true_value' => 'hide', 'false_value' => ''));
            ?>
                    </div>
                </div>

            <?php 
            echo td_panel_generator::box_end();
        }
        //end foreach
    }

<div class="td-box-section-separator"></div>

<!-- tag spot: select taxonomy -->
<div class="td-box-row">
    <div class="td-box-description">
        <span class="td-box-title">tag spot taxonomy</span>
        <p>What taxonomy should show up in the tag spot</p>
    </div>
    <div class="td-box-control-full">
        <?php 
echo td_panel_generator::dropdown(array('ds' => 'td_cpt', 'item_id' => $custom_post_type, 'option_id' => 'tds_tag_spot_taxonomy', 'values' => $td_registered_taxonomies));
?>
    </div>
</div>

<!-- tag spot: text -->
<div class="td-box-row">
    <div class="td-box-description">
        <span class="td-box-title">tag spot text</span>
        <p>If you are using custom taxonomies, you can replace the default TAG label</p>
    </div>
    <div class="td-box-control-full">
        <?php 
echo td_panel_generator::input(array('ds' => 'td_cpt', 'item_id' => $custom_post_type, 'option_id' => 'tds_tag_spot_text', 'placeholder' => __td('TAGS')));
?>
    </div>
</div>

Ejemplo n.º 16
0
                <span class="td-content-float-right">
                    <?php 
echo td_panel_generator::dropdown(array('ds' => 'td_ads', 'item_id' => $ad_spot_id, 'option_id' => 'tp_size', 'values' => $td_google_ad_list_sizes));
?>
            </span>

    </div>
</div>


<!-- disable ad on phones -->
<div class="td-box-row">
    <div class="td-box-description">
        <span class="td-box-title">DISABLE ON PHONE</span>
        <p></p>
    </div>
    <div class="td-box-control-full">
            <span>
            <?php 
echo td_panel_generator::checkbox(array('ds' => 'td_ads', 'item_id' => $ad_spot_id, 'option_id' => 'disable_p', 'true_value' => 'yes', 'false_value' => ''));
?>
            </span>
            <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
                <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
                <span class="td-content-float-right">
                    <?php 
echo td_panel_generator::dropdown(array('ds' => 'td_ads', 'item_id' => $ad_spot_id, 'option_id' => 'p_size', 'values' => $td_google_ad_list_sizes));
?>
            </span>
    </div>
</div>
Ejemplo n.º 17
0
    public function td_custom_typology_generate_font_controls()
    {
        //insert separator after this section numbers from td_fonts::$typography_sections. the counting of td_fonts::$typography_sections starts from 1
        $td_section_separator_array = array(0 => 'Post Page', 16 => 'Slides', 19 => 'Menu`s', 23 => 'Pages', 27 => 'Tabs');
        $td_section_counter = 0;
        foreach (td_fonts::$typography_sections as $font_section_settings_id => $font_section_name) {
            //create the section separators
            if (array_key_exists($td_section_counter, $td_section_separator_array)) {
                echo '<hr>
                      <div class="td-section-separator">' . $td_section_separator_array[$td_section_counter] . '</div>';
            }
            echo td_panel_generator::box_start($font_section_name, false);
            ?>
            <div class="td-box-row">
                <div class="td-box-description">
                    <span class="td-box-title td-title-on-row">FONT FAMILY</span>
                </div>
                <div class="td-box-control-full">
                    <?php 
            echo td_panel_generator::dropdown(array('ds' => 'td_fonts', 'item_id' => $font_section_settings_id, 'option_id' => 'font_family', 'values' => $this->td_typology_fonts_array));
            ?>
                </div>
            </div>


            <div class="td-box-row">
                <div class="td-box-description">
                    <span class="td-box-title td-title-on-row">FONT SIZE</span>
                </div>
                <div class="td-box-control-full">
                    <?php 
            echo td_panel_generator::dropdown(array('ds' => 'td_fonts', 'item_id' => $font_section_settings_id, 'option_id' => 'font_size', 'values' => $this->td_font_size_list));
            ?>
                </div>
            </div>


            <div class="td-box-row">
                <div class="td-box-description">
                    <span class="td-box-title td-title-on-row">LINE HEIGHT</span>
                </div>
                <div class="td-box-control-full">
                    <?php 
            echo td_panel_generator::dropdown(array('ds' => 'td_fonts', 'item_id' => $font_section_settings_id, 'option_id' => 'line_height', 'values' => $this->td_line_height_list));
            ?>
                </div>
            </div>


            <div class="td-box-row">
                <div class="td-box-description">
                    <span class="td-box-title td-title-on-row">FONT STYLE</span>
                </div>
                <div class="td-box-control-full">
                    <?php 
            echo td_panel_generator::dropdown(array('ds' => 'td_fonts', 'item_id' => $font_section_settings_id, 'option_id' => 'font_style', 'values' => $this->td_font_style_list));
            ?>
                </div>
            </div>


            <div class="td-box-row">
                <div class="td-box-description">
                    <span class="td-box-title td-title-on-row">FONT WEIGHT</span>
                    <p>Default font weight = normal</p>
                </div>
                <div class="td-box-control-full">
                    <?php 
            echo td_panel_generator::dropdown(array('ds' => 'td_fonts', 'item_id' => $font_section_settings_id, 'option_id' => 'font_weight', 'values' => $this->td_font_weight));
            ?>
                </div>
            </div>


            <div class="td-box-row">
                <div class="td-box-description">
                    <span class="td-box-title td-title-on-row">TEXT TRANSFORM</span>
                </div>
                <div class="td-box-control-full">
                    <?php 
            echo td_panel_generator::dropdown(array('ds' => 'td_fonts', 'item_id' => $font_section_settings_id, 'option_id' => 'text_transform', 'values' => $this->td_text_transform));
            ?>
                </div>
            </div>


            <div class="td-box-row">
                <div class="td-box-description">
                    <span class="td-box-title td-title-on-row">TEXT COLOR</span>
                </div>
                <div class="td-box-control-full">
                    <?php 
            echo td_panel_generator::color_piker(array('ds' => 'td_fonts', 'item_id' => $font_section_settings_id, 'option_id' => 'color', 'default_color' => ''));
            ?>
                </div>
            </div>


            <?php 
            echo td_panel_generator::box_end();
            $td_section_counter++;
        }
        //end foreach
    }
        <p>From here you can enable the thumbnail image that will be cropped for the modules &amp; blocks. If the thumbnail image is not enabled for a specific module that you use, the module will show a default placeholder with the size of the image and instructions about how to enable the thumb for that module</p>
        <p><strong style="color:red">Please regenerate your thumbnails if you change any of the thumb settings!</strong> - <a href="http://forum.tagdiv.com/existing-content/" target="_blank">read more</a></p>
    </div>
    <div class="td-box-row-margin-bottom"></div>
</div>


<?php 
foreach (td_api_thumb::get_all() as $thumb) {
    ?>
    <!-- THUMB -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title"><?php 
    echo $thumb['width'] . ' x ' . $thumb['height'];
    ?>
</span>
        </div>
        <div class="td-box-control-full">
            <?php 
    echo td_panel_generator::checkbox(array('ds' => 'td_option', 'option_id' => 'tds_thumb_' . $thumb['name'], 'true_value' => 'yes', 'false_value' => ''));
    ?>
            <div class="td-help-checkbox-inline">
                <?php 
    echo "<span>This thumb size is used for:</span> <ul><li>" . implode("</li><li>", $thumb['used_on']) . "</li></ul>";
    ?>
            </div>
        </div>
    </div>
<?php 
}
Ejemplo n.º 19
0
                <?php 
td_util::tooltip_html('
                        <h3>Custom sidebar:</h3>
                        <p>From here you can set a custom sidebar for this page only.</p>
                        <ul>
                            <li><strong>This setting overrides</strong> the Theme panel setting from <i>Template settings > Page template</i></li>
                            <li><strong>On default</strong> - the template will load the sidebar that is set in the Theme panel: <i>Template settings > Page template</i></li>
                            <li>This setting is intended to be use for content pages, When this template detects
                            that Visual Composer is used, it will switch to a full width layout (with no sidebar). </li>
                            <li>If you want to use a sidebar with Visual Composer please use the Widgetised Sidebar block</li>
                        </ul>
                    ', 'right');
?>
            </span>
            <?php 
echo td_panel_generator::sidebar_pulldown(array('ds' => 'td_page', 'item_id' => '', 'option_id' => 'td_sidebar', 'selected_value' => $mb->get_the_value('td_sidebar')));
?>
        </div>
    </div> <!-- /page option general -->




    <!-- unique articles tab -->
    <div class="td-page-option-panel td-page-option-unique-articles-2">

        <p>
            <strong>Note:</strong> We recommand to not use the Unique articles feature if you plan to use ajax blocks that have sub categories or pagination. This feature will make sure that only unique articles are loaded on the initial page load.
        </p>

        <div class="td-meta-box-row">
Ejemplo n.º 20
0
foreach ($td_translation_map as $key_id => $value) {
    // for each word in the $key_id array, not starting with (%) percent (internal variables like %CURRENT_PAGE% ),
    // we need to replace '_' with (') apostrophe
    //
    // we can't use $value instead of $key_id, because $value is a translated value
    //
    $arr_words = explode(' ', $key_id);
    foreach ($arr_words as &$word) {
        if (preg_match('/^%/', $word)) {
            continue;
        }
        $word = str_replace('_', '\'', $word);
    }
    $key = implode(' ', $arr_words);
    ?>
        <div class="td-box-row">
            <div class="td-box-description">
                <span class="td-box-title td-title-on-row"><?php 
    echo $key;
    ?>
</span>
                <p></p>
            </div>
            <div class="td-box-control-full">
                <?php 
    echo td_panel_generator::input(array('ds' => 'td_translate', 'option_id' => $key_id, 'placeholder' => $value));
    ?>
            </div>
        </div>
        <?php 
}
    <?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'));
}
echo td_panel_generator::radio_button_control(array('ds' => 'td_category', 'item_id' => $category_id, 'option_id' => 'tdc_bg_repeat', 'values' => array(array('text' => '默认', 'val' => ''), array('text' => '拉伸', 'val' => 'stretch'), array('text' => '切片', 'val' => 'tile'))));
?>
        </div>
    </div>

    <!-- Background color -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title">背景颜色</span>
            <p>使用纯色代替图片</p>
        </div>
        <div class="td-box-control-full">
            <?php 
echo td_panel_generator::color_picker(array('ds' => 'td_category', 'item_id' => $category_id, 'option_id' => 'tdc_bg_color', 'default_color' => ''));
?>
        </div>
    </div>

    <!-- Hide category tag on post -->
<div class="td-box-row">
    <div class="td-box-description">
        <span class="td-box-title">隐藏文章和分类页分类</span>
        <p>显示或隐藏单个文章页和分类页分类。如果你想隐藏分类排序理清,这是有用的。</p>
    </div>
    <div class="td-box-control-full">
        <?php 
echo td_panel_generator::checkbox(array('ds' => 'td_category', 'item_id' => $category_id, 'option_id' => 'tdc_hide_on_post', 'true_value' => 'hide', 'false_value' => ''));
?>
    </div>
</div>
Ejemplo n.º 23
0
?>
    </div>
</div>


<!-- HEADERS BACKGROUND COLOR -->
<div class="td-box-row">
	<div class="td-box-description">
		<span class="td-box-title">HEADERS BACKGROUND COLOR</span>
		<p>Select a global header background color</p>
	</div>
	<div class="td-box-control-full">
		<?php 
echo td_panel_generator::color_picker(array('ds' => 'td_option', 'option_id' => 'tds_header_color', 'default_color' => ''));
?>
	</div>
</div>


<!-- HEADERS TEXT COLOR -->
<div class="td-box-row">
	<div class="td-box-description">
		<span class="td-box-title">HEADERS TEXT COLOR</span>
		<p>Select a global header text color</p>
	</div>
	<div class="td-box-control-full">
		<?php 
echo td_panel_generator::color_picker(array('ds' => 'td_option', 'option_id' => 'tds_text_header_color', 'default_color' => ''));
?>
	</div>
</div>
Ejemplo n.º 24
0
    ?>
"/>
                </div>

				<div class="td-admin-title">
					<div class="td-progress-bar-wrap"><div class="td-progress-bar"></div></div>
					<h3 class="theme-name"><?php 
    echo $stack_params['text'];
    ?>
</h3>
				</div>

				<div class="td-admin-checkbox td-small-checkbox">
                    <div class="td-demo-install-content">
                        <?php 
    echo td_panel_generator::checkbox(array('ds' => 'td_import_theme_styles', 'option_id' => 'td_import_menus', 'true_value' => '', 'false_value' => 'no'));
    ?>
                        <p>Include content</p>
                    </div>
                        <p class="td-installed-text">
	                    <?php 
    if (!empty(td_global::$demo_list[$demo_id]['demo_installed_text'])) {
        echo td_global::$demo_list[$demo_id]['demo_installed_text'];
    } else {
        echo 'Demo installed!';
    }
    ?>
	                    </p>
				</div>

				<div class="theme-actions">
    </div>
    <div class="td-box-control-full td-panel-module">
        <?php 
echo td_panel_generator::visual_select_o(array('ds' => 'td_taxonomy', 'item_id' => $taxonomy_name, 'option_id' => 'tds_taxonomy_page_layout', 'values' => td_panel_generator::helper_display_modules('enabled_on_loops')));
?>
    </div>
</div>



<!-- Custom Sidebar + position -->
<div class="td-box-row">
    <div class="td-box-description">
        <span class="td-box-title">CUSTOM SIDEBAR + POSITION</span>
        <p>Sidebar position and custom sidebars</p>
    </div>
    <div class="td-box-control-full td-panel-sidebar-pos">
        <div class="td-display-inline-block">
            <?php 
echo td_panel_generator::visual_select_o(array('ds' => 'td_taxonomy', 'item_id' => $taxonomy_name, 'option_id' => 'tds_taxonomy_sidebar_pos', 'values' => array(array('text' => '', 'title' => '', 'val' => 'sidebar_left', 'img' => get_template_directory_uri() . '/includes/wp_booster/wp-admin/images/panel/sidebar-left.png'), array('text' => '', 'title' => '', 'val' => 'no_sidebar', 'img' => get_template_directory_uri() . '/includes/wp_booster/wp-admin/images/panel/sidebar-full.png'), array('text' => '', 'title' => '', 'val' => '', 'img' => get_template_directory_uri() . '/includes/wp_booster/wp-admin/images/panel/sidebar-right.png'))));
?>
            <div class="td-panel-control-comment td-text-align-right">Select sidebar position</div>
        </div>
        <div class="td-display-inline-block td_sidebars_pulldown_align">
            <?php 
echo td_panel_generator::sidebar_pulldown(array('ds' => 'td_taxonomy', 'item_id' => $taxonomy_name, 'option_id' => 'tds_taxonomy_sidebar'));
?>
            <div class="td-panel-control-comment td-text-align-right">Create or select an existing sidebar</div>
        </div>
    </div>
</div>
Ejemplo n.º 26
0
<?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'));
Ejemplo n.º 27
0
        <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'));
Ejemplo n.º 28
0
                            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');
Ejemplo n.º 29
0
function td_category_form_ajax($category_id)
{
    ob_start();
    ?>

    <!-- DISPLAY VIEW -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title">ARTICLE DISPLAY VIEW</span>
            <p>Select a module type, this is how your article list will be displayed</p>
        </div>
        <div class="td-box-control-full td-panel-module">
            <?php 
    echo td_panel_generator::visual_select_o(array('ds' => 'td_category', 'item_id' => $category_id, 'option_id' => 'tdc_layout', 'values' => td_panel_generator::helper_display_modules('default+enabled_on_loops')));
    ?>
        </div>
    </div>

    <!-- Custom Sidebar + position -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title">CUSTOM SIDEBAR + POSITION</span>
            <p>Sidebar position and custom sidebars</p>
        </div>
        <div class="td-box-control-full td-panel-sidebar-pos">
            <div class="td-display-inline-block">
                <?php 
    echo td_panel_generator::visual_select_o(array('ds' => 'td_category', 'item_id' => $category_id, 'option_id' => 'tdc_sidebar_pos', 'values' => array(array('text' => '', 'title' => '', 'val' => '', 'img' => get_template_directory_uri() . '/includes/wp_booster/wp-admin/images/panel/sidebar-default.png'), array('text' => '', 'title' => '', 'val' => 'sidebar_left', 'img' => get_template_directory_uri() . '/includes/wp_booster/wp-admin/images/panel/sidebar-left.png'), array('text' => '', 'title' => '', 'val' => 'no_sidebar', 'img' => get_template_directory_uri() . '/includes/wp_booster/wp-admin/images/panel/sidebar-full.png'), array('text' => '', 'title' => '', 'val' => 'sidebar_right', 'img' => get_template_directory_uri() . '/includes/wp_booster/wp-admin/images/panel/sidebar-right.png'))));
    ?>
                <div class="td-panel-control-comment td-text-align-right">Select sidebar position</div>
            </div>
            <div class="td-display-inline-block td_sidebars_pulldown_align">
                <?php 
    echo td_panel_generator::sidebar_pulldown(array('ds' => 'td_category', 'item_id' => $category_id, 'option_id' => 'tdc_sidebar_name'));
    ?>
                <div class="td-panel-control-comment td-text-align-right">Create or select an existing sidebar</div>
            </div>
        </div>
    </div>

    <!-- Show Featured slider -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title">SHOW CATEGORY BIG GRID</span>
            <p>Enable or disable the category big grid</p>
        </div>
        <div class="td-box-control-full">
            <?php 
    echo td_panel_generator::checkbox(array('ds' => 'td_category', 'item_id' => $category_id, 'option_id' => 'tdc_slider', 'true_value' => '', 'false_value' => 'yes'));
    ?>
        </div>
    </div>

    <!-- Category color -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title">CATEGORY TAG COLOR ON POST PAGE</span>
            <p>Pick a color for this category tag on post page</p>
        </div>
        <div class="td-box-control-full">
            <?php 
    echo td_panel_generator::color_picker(array('ds' => 'td_category', 'item_id' => $category_id, 'option_id' => 'tdc_color', 'default_color' => ''));
    ?>
        </div>
    </div>

    <!-- BACKGROUND UPLOAD -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title">BACKGROUND UPLOAD</span>
            <p>Upload your background image.</br> You can use:</p>
            <ul>
                <li>Single Image</li>
                <li>Pattern</li>
            </ul>
        </div>
        <div class="td-box-control-full">
            <?php 
    echo td_panel_generator::upload_image(array('ds' => 'td_category', 'item_id' => $category_id, 'option_id' => 'tdc_image'));
    ?>
        </div>
    </div>

    <!-- BACKGROUND STYLE -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title">BACKGROUND STYLE</span>
            <p>How the background will be displayed</p>
            <ul>
                <li><b>Stretch:</b> use this option when you are using a Single Image for you background and you want this image to fill the entire background.</li>
                <li><b>Tiled:</b> use this option when you are using a Pattern for you background.</li>
            </ul>
        </div>
        <div class="td-box-control-full">
            <?php 
    echo td_panel_generator::radio_button_control(array('ds' => 'td_category', 'item_id' => $category_id, 'option_id' => 'tdc_bg_repeat', 'values' => array(array('text' => 'Default', 'val' => ''), array('text' => 'Stretch', 'val' => 'stretch'), array('text' => 'Tiled', 'val' => 'tile'))));
    ?>
        </div>
    </div>

    <!-- Background color -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title">BACKGROUND COLOR</span>
            <p>Use a solid color instead of an image</p>
        </div>
        <div class="td-box-control-full">
            <?php 
    echo td_panel_generator::color_picker(array('ds' => 'td_category', 'item_id' => $category_id, 'option_id' => 'tdc_bg_color', 'default_color' => ''));
    ?>
        </div>
    </div>

    <!-- Hide category tag on post -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title">HIDE CATEGORY ON POST AND ON CATEGORY PAGES</span>
            <p>Show or hide category on single post page and on category pages. Useful if you want to have hidden categories to sort things up.</p>
        </div>
        <div class="td-box-control-full">
            <?php 
    echo td_panel_generator::checkbox(array('ds' => 'td_category', 'item_id' => $category_id, 'option_id' => 'tdc_hide_on_post', 'true_value' => 'hide', 'false_value' => ''));
    ?>
        </div>
    </div><?php 
    return ob_get_clean();
}
Ejemplo n.º 30
0
<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);