• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP td_panel_generator类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中td_panel_generator的典型用法代码示例。如果您正苦于以下问题:PHP td_panel_generator类的具体用法?PHP td_panel_generator怎么用?PHP td_panel_generator使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了td_panel_generator类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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'));
 }
开发者ID:vikasjain1595,项目名称:wordpresstheme,代码行数:16,代码来源:panel_theme_fonts.php


示例2: thumbs_panel

    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();
    }
开发者ID:vikasjain1595,项目名称:wordpresstheme,代码行数:40,代码来源:td_block_settings_ajax.php


示例3: render_inputs

    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 
        }
    }
开发者ID:Vatia13,项目名称:wordpress,代码行数:23,代码来源:panel_translations.php


示例4:

        <?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>
开发者ID:ryandong82,项目名称:colorfulladysite,代码行数:31,代码来源:td_pages.php


示例5:

        ?>


        <?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();
    }
}
?>


开发者ID:tuanlibra,项目名称:thptxuanang,代码行数:28,代码来源:td_panel_excerpts.php


示例6: 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
开发者ID:tuanlibra,项目名称:thptxuanang,代码行数:31,代码来源:td_panel_categories.php


示例7: foreach

                    }
                }
                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();
开发者ID:Che234,项目名称:quant-desarrollo,代码行数:30,代码来源:td_panel_generator.php


示例8: foreach

                    }
                }
                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();
开发者ID:tuanlibra,项目名称:thptxuanang,代码行数:30,代码来源:td_panel_generator.php


示例9:

        <?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>
开发者ID:luxifel,项目名称:Bionerd,代码行数:31,代码来源:td_posts.php


示例10:

        <?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>
开发者ID:weerapat,项目名称:wp-daily,代码行数:31,代码来源:td_main_menu.php


示例11:

        <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>
开发者ID:Che234,项目名称:andreatelo,代码行数:31,代码来源:td_set_page_with_loop.php


示例12:

                        <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');
?>
开发者ID:Che234,项目名称:quant-desarrollo,代码行数:31,代码来源:td_set_post_settings.php


示例13:

        <?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>
开发者ID:tuanlibra,项目名称:thptxuanang,代码行数:31,代码来源:td_top_menu.php


示例14: render_categories_form

    /**
     * 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>
//.........这里部分代码省略.........
开发者ID:Vatia13,项目名称:wordpress,代码行数:101,代码来源:panel_categories.php


示例15: __td



<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>

开发者ID:luxifel,项目名称:Bionerd,代码行数:27,代码来源:td_get_cpt_settings_by_post_type.php


示例16:

                <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>
开发者ID:tuanlibra,项目名称:thptxuanang,代码行数:31,代码来源:td_get_ad_spot_by_id.php


示例17: td_custom_typology_generate_font_controls

    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();
//.........这里部分代码省略.........
开发者ID:Vatia13,项目名称:wordpress,代码行数:101,代码来源:panel_theme_fonts.php


示例18: 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 
}
开发者ID:luxifel,项目名称:Bionerd,代码行数:31,代码来源:td_thumbs_on_modules_and_blocks.php


示例19: layout

                <?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>
                    ',  

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP td_util类代码示例发布时间:2022-05-23
下一篇:
PHP td_page_generator类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap