当前位置: 首页>>代码示例>>PHP>>正文


PHP td_panel_generator::checkbox方法代码示例

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


在下文中一共展示了td_panel_generator::checkbox方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: 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

示例2:

                <div class="td-panel-control-comment td-text-align-right">Create or select an existing sidebar</div>
            </div>
        </div>
    </div>



    <!-- Disable comments on pages -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title">DISABLE COMMENTS ON PAGES</span>
            <p>Enable or disable the comments on pages, on the entire site. This option is disabled by default</p>
        </div>
        <div class="td-box-control-full">
            <?php 
echo td_panel_generator::checkbox(array('ds' => 'td_option', 'option_id' => 'tds_disable_comments_pages', 'true_value' => '', 'false_value' => 'show_comments'));
?>
        </div>
    </div>



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




<!-- Search page -->
    <?php 
开发者ID:Che234,项目名称:andreatelo,代码行数:31,代码来源:td_panel_template_settings.php

示例3:

                                <?php 
echo td_panel_generator::checkbox(array('ds' => 'td_fonts_user_insert', 'option_id' => 'g_vietnamese', 'true_value' => 'vietnamese', 'false_value' => ''));
?>
                            </div>
                        </div>


                        <!-- google fonts settings-->
                        <div class="td-box-row">
                            <div class="td-box-description">
                                <span class="td-box-title">KHMER SUPPORT</span>
                                <p>Load the font file with support for khmer charset if possible</p>
                            </div>
                            <div class="td-box-control-full">
                                <?php 
echo td_panel_generator::checkbox(array('ds' => 'td_fonts_user_insert', 'option_id' => 'g_khmer', 'true_value' => 'khmer', 'false_value' => ''));
?>
                            </div>
                        </div>

                        <?php 
echo td_panel_generator::box_end();
?>
                    </div>

                </div>

            </div>

        </div>
开发者ID:tuanlibra,项目名称:thptxuanang,代码行数:30,代码来源:td_view_custom_fonts.php

示例4: array



    <!-- Background attachment -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title">BACKGROUND ATTACHMENT</span>
            <p>Background attachment</p>
        </div>
        <div class="td-box-control-full">
            <?php 
echo td_panel_generator::radio_button_control(array('ds' => 'td_option', 'option_id' => 'tds_site_background_attachment', 'values' => array(array('text' => 'Fixed', 'val' => 'fixed'), array('text' => 'Scroll', 'val' => ''))));
?>
        </div>
    </div>


    <!-- Stretch background -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title">STRETCH BACKGROUND</span>
            <p>Background image stretching <br>( Leave this option disabled if you are using background click ad)</p>
        </div>
        <div class="td-box-control-full">
            <?php 
echo td_panel_generator::checkbox(array('ds' => 'td_option', 'option_id' => 'tds_stretch_background', 'true_value' => 'yes', 'false_value' => ''));
?>
        </div>
    </div>

<?php 
echo td_panel_generator::box_end();
开发者ID:Vatia13,项目名称:wordpress,代码行数:29,代码来源:panel_background.php

示例5: default

?>


    <!-- text -->
    <div class="td-box-row">
        <div class="td-box-description td-box-full">
            <p>Enabling this feature will update the post view count using ajax on both pages and single post page. This feature is best used if you have a caching plugin active. On pages it will retrieve from the server the correct post view count. On single post page this feature will also increment the post view counter. When this feature is enabled, the default (classic) post counter incrementation is disabled. After enabling or disabling this feature please be sure to empty all caches.  </p>
        </div>
        <div class="td-box-row-margin-bottom"></div>
    </div>





    <!-- Enable / Disabled Ajax post count -->
    <div class="td-box-row">
        <div class="td-box-description td-no-short-description">
            <span class="td-box-title">ENABLE / DISABLE AJAX POST VIEW COUNT</span>
            <p>Usefull if you are using a caching plugin</p>
        </div>
        <div class="td-box-control-full">
            <?php 
echo td_panel_generator::checkbox(array('ds' => 'td_option', 'option_id' => 'tds_ajax_post_view_count', 'true_value' => 'enabled', 'false_value' => ''));
?>
        </div>

    </div>

<?php 
echo td_panel_generator::box_end();
开发者ID:vikasjain1595,项目名称:wordpresstheme,代码行数:31,代码来源:panel_post_settings.php

示例6:

<div class="td-box-row">
	<div class="td-box-description td-box-full">
		<p>当你启用此选项,新的排序选项将工作,它将在每个区块可选择(7天热门)。此排序选项将挑选最后7天热门的文章,按页面查看排序。此选项有一个小缺陷,它不与缓存插件一起工作。当启用缓存插件时,排序将在最后7天成为估计热门。</p>
	</div>
	<div class="td-box-row-margin-bottom"></div>
</div>

<!-- use 7 days post sorting -->
<div class="td-box-row">
	<div class="td-box-description">
		<span class="td-box-title">使用7天文章排序</span>
		<p>启用或禁用最新7天热门</p>
	</div>
	<div class="td-box-control-full">
		<?php 
echo td_panel_generator::checkbox(array('ds' => 'td_option', 'option_id' => 'tds_p_enable_7_days_count', 'true_value' => 'enabled', 'false_value' => ''));
?>
	</div>
</div>
<?php 
echo td_panel_generator::box_end();
?>







<?php 
//@todo run only on Newsmag - HACK
开发者ID:ryandong82,项目名称:colorfulladysite,代码行数:31,代码来源:td_panel_block_settings.php

示例7:

        <?php 
echo td_panel_generator::input(array('ds' => 'td_option', 'option_id' => 'tds_footer_copyright'));
?>
    </div>
</div>


<!-- Copyright symbol -->
<div class="td-box-row">
    <div class="td-box-description">
        <span class="td-box-title">COPYRIGHT SYMBOL</span>
        <p>Show or hide the footer copyright symbol</p>
    </div>
    <div class="td-box-control-full">
        <?php 
echo td_panel_generator::checkbox(array('ds' => 'td_option', 'option_id' => 'tds_footer_copy_symbol', 'true_value' => '', 'false_value' => 'no'));
?>
    </div>
</div>

<!-- Footer menu -->
<div class="td-box-row">
    <div class="td-box-description">
        <span class="td-box-title">FOOTER MENU</span>
        <p>Select a menu for the footer</p>
    </div>
    <div class="td-box-control-full">
        <?php 
echo td_panel_generator::dropdown(array('ds' => 'wp_theme_menu_spot', 'option_id' => 'footer-menu', 'values' => td_panel_generator::$td_user_created_menus));
?>
    </div>
开发者ID:Vatia13,项目名称:wordpress,代码行数:31,代码来源:panel_footer.php

示例8:

?>



<?php 
echo td_panel_generator::box_start('More Article Box', false);
?>

    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title">MORE ARTICLES</span>
            <p>Enable / Disable - More Articles option</p>
        </div>
        <div class="td-box-control-full">
            <?php 
echo td_panel_generator::checkbox(array('ds' => 'td_option', 'option_id' => 'tds_more_articles_on_post_pages_enable', 'true_value' => 'show', 'false_value' => ''));
?>
        </div>
    </div>



    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title">DISTANCE FROM THE TOP</span>
            <p>This is the distance from the top, that user have to scroll, before the window will appear, default 400</p>
        </div>
        <div class="td-box-control-full">
            <?php 
echo td_panel_generator::input(array('ds' => 'td_option', 'option_id' => 'tds_more_articles_on_post_pages_distance_from_top'));
?>
开发者ID:Vatia13,项目名称:wordpress,代码行数:31,代码来源:panel_post_settings.php

示例9: array

            <?php 
echo td_panel_generator::input(array('ds' => 'td_option', 'option_id' => 'tds_background_click_url'));
?>
        </div>
    </div>


    <!-- ad taget -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title">Open in new window</span>
            <p>If enabled, this option will open the URL in a new window. Leave disabled for the URL to be loaded in current page</p>
        </div>
        <div class="td-box-control-full">
            <?php 
echo td_panel_generator::checkbox(array('ds' => 'td_option', 'option_id' => 'tds_background_click_target', 'true_value' => '_blank', 'false_value' => ''));
?>
        </div>
    </div>

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

<?php 
echo td_panel_generator::ajax_box('Post template style 1 ', array('td_ajax_calling_file' => basename(__FILE__), 'td_ajax_box_id' => 'td_get_ad_spot_by_id', 'ad_spot_id' => 'post_style_1'));
?>

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

示例10:

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

示例11: array

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

示例12: 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

示例13: 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

示例14:

                <li>[tagDiv] Block 14</li>
                <li>[tagDiv] Block 15</li>
                <li>[tagDiv] Slide</li>
            </ul>
        </div>



        <div class="td-box-row">
            <div class="td-box-description">
                <span class="td-box-title">Smart sidebar</span>
                <p>Enable / Disable the smart sidebar on all templates</p>
            </div>
            <div class="td-box-control-full">
                <?php 
echo td_panel_generator::checkbox(array('ds' => 'td_option', 'option_id' => 'tds_smart_sidebar', 'true_value' => 'enabled', 'false_value' => ''));
?>
            </div>
        </div>

        <div class="td-box-row-margin-bottom"></div>
    </div>
<?php 
echo td_panel_generator::box_end();
?>




<!-- 404 template -->
    <?php 
开发者ID:vikasjain1595,项目名称:wordpresstheme,代码行数:31,代码来源:panel_template_settings.php

示例15: format

    </div>



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


    <!-- Date: enable disable -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title">SHOW DATE</span>
            <p>Hide or show the date on the top menu</p>
        </div>
        <div class="td-box-control-full">
            <?php 
echo td_panel_generator::checkbox(array('ds' => 'td_option', 'option_id' => 'tds_data_top_menu', 'true_value' => 'show', 'false_value' => ''));
?>
        </div>
    </div>



    <!-- Date: format -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title">DATE FORMAT</span>
            <p>Default value: l, F j, Y. <a href="http://php.net/manual/en/function.date.php">Read more</a> about the date format (it's the same with the php date function)</p>
        </div>
        <div class="td-box-control-full">
            <?php 
echo td_panel_generator::input(array('ds' => 'td_option', 'option_id' => 'tds_data_time_format'));
开发者ID:Che234,项目名称:andreatelo,代码行数:31,代码来源:td_panel_header.php


注:本文中的td_panel_generator::checkbox方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。