<div class="td-box-description td-box-full">
            <span class="td-box-title">Just a tip:</span>
            <p>Adding a text as excerpt on post edit page (Excerpt box), will overwrite the theme excerpts</p>
        </div>
        <div class="td-box-row-margin-bottom"></div>
    </div>

    <!-- BACKGROUND UPLOAD -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class=" td-box-title">EXCERPTS TYPE</span>
            <p>Set the excerpt type</p>
        </div>
        <div class="td-box-control-full">
            <?php 
echo td_panel_generator::radio_button_control(array('ds' => 'td_option', 'option_id' => 'tds_excerpts_type', 'values' => array(array('text' => 'On Words', 'val' => ''), array('text' => 'On Letters', 'val' => 'letters'))));
?>
        </div>
    </div>

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







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();
}
<!-- RESPONSIVE SETTINGS -->
<?php 
echo td_panel_generator::box_start('Responsive settings');
?>

    <!-- Responsive -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title">RESPONSIVE</span>
            <p>Set your site dimension</p>
        </div>
        <div class="td-box-control-full">
            <?php 
echo td_panel_generator::radio_button_control(array('ds' => 'td_option', 'option_id' => 'tds_responsive', 'values' => array(array('text' => 'Full responsive (1264px)', 'val' => ''), array('text' => 'Full responsive (980px)', 'val' => '980_responsive'), array('text' => '980px fixed layout', 'val' => '980'), array('text' => '1264px fixed layout', 'val' => '1264'))));
?>
        </div>
    </div>



<?php 
echo td_panel_generator::box_end();
Esempio n. 4
0
            <?php 
echo td_panel_generator::radio_button_control(array('ds' => 'td_option', 'option_id' => 'tds_snap_menu', 'values' => array(array('text' => '<strong>Normal menu</strong> - (not sticky)', 'val' => ''), array('text' => '<strong>Always sticky</strong> - stays at the top of the page', 'val' => 'snap'), array('text' => '<strong>Smart snap </strong> - (mobile)', 'val' => 'smart_snap_mobile'), array('text' => '<strong>Smart snap </strong> - (always)', 'val' => 'smart_snap_always'))));
?>
        </div>
    </div>

	<!-- SHOW THE MOBILE LOGO ON THE STICKY MENU -->
	<div class="td-box-row">
		<div class="td-box-description">
			<span class="td-box-title">LOGO ON STICKY MENU</span>
			<p>Show / Hide the Logo on sticky menu</p>
			<p><strong>Notice: </strong>If you choose <strong>Mobile logo</strong>, upload a logo in <strong>Logo for Mobile</strong> section</p>
		</div>
		<div class="td-box-control-full">
			<?php 
echo td_panel_generator::radio_button_control(array('ds' => 'td_option', 'option_id' => 'tds_logo_on_sticky', 'values' => array(array('text' => '<strong>Disabled</strong>', 'val' => ''), array('text' => '<strong>Header logo </strong> - show the header logo', 'val' => 'show_header_logo'), array('text' => '<strong>Mobile logo </strong> - show the mobile logo', 'val' => 'show'))));
?>
		</div>
	</div>

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


<!-- LOGO -->
<?php 
echo td_panel_generator::box_start('Logo &amp; Favicon', false);
?>

    <!-- LOGO UPLOAD -->
Esempio n. 5
0
            <?php 
echo td_panel_generator::radio_button_control(array('ds' => 'td_option', 'option_id' => 'tds_site_background_position_x', 'values' => array(array('text' => 'Left', 'val' => ''), array('text' => 'Center', 'val' => 'center'), array('text' => 'Right', 'val' => 'right'))));
?>
        </div>
    </div>


    <!-- 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 class="td-box-control-full">
            <?php 
echo td_panel_generator::checkbox(array('ds' => 'td_option', 'option_id' => 'tds_animation_stack', 'true_value' => '', 'false_value' => 'no'));
?>
        </div>
    </div>

	<div class="td-box-row">
		<div class="td-box-description">
			<span class="td-box-title">Loading effect</span>
			<p>You can choose one of the following effects which will be used at the first images loading.</p>
		</div>
		<div class="td-box-control-full">
			<?php 
echo td_panel_generator::radio_button_control(array('ds' => 'td_option', 'option_id' => 'tds_animation_stack_effect', 'values' => td_global::$td_animation_stack_effects));
?>
		</div>
	</div>
<?php 
echo td_panel_generator::box_end();
?>



<!-- smooth scroll -->
<?php 
echo td_panel_generator::box_start('Smooth scroll', false);
?>
    <!-- text -->
    <div class="td-box-row">
        <div class="td-box-control-full">
            <?php 
echo td_panel_generator::radio_button_control(array('ds' => 'td_option', 'option_id' => 'tds_footer_background_size', 'values' => array(array('text' => '自动', 'val' => ''), array('text' => '全宽', 'val' => '100% auto'), array('text' => '全高', 'val' => 'auto 100%'), array('text' => '封面', 'val' => 'cover'), array('text' => '包含', 'val' => 'contain'))));
?>
        </div>
    </div>

    <!-- Background position -->
    <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::radio_button_control(array('ds' => 'td_option', 'option_id' => 'tds_footer_background_position', 'values' => array(array('text' => '下', 'val' => ''), array('text' => '中', 'val' => 'center center'), array('text' => '上', 'val' => 'center top'))));
?>
        </div>
    </div>

    <!-- Background opacity -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title">背景透明度</span>
            <p>设置背景图片透明度(例如:0.3)</p>
        </div>
        <div class="td-box-control-full">
            <?php 
echo td_panel_generator::input(array('ds' => 'td_option', 'option_id' => 'tds_footer_background_opacity'));
?>
        </div>
    </div>


    <!-- Related article - Type -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title">RELATED ARTICLE - TYPE</span>
            <p>How to pick the related articles:</p>
            <ul>
                <li>by category - pick posts from that have at least one category in common with the current post</li>
                <li>by tags - pick posts that have at least one tag in common with the current post</li>
            </ul>
        </div>
        <div class="td-box-control-full">
            <?php 
echo td_panel_generator::radio_button_control(array('ds' => 'td_option', 'option_id' => 'tds_similar_articles_type', 'values' => array(array('text' => 'by category', 'val' => ''), array('text' => 'by tag', 'val' => 'by_tag'))));
?>
        </div>
    </div>

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



<!-- sharing -->
<?php 
echo td_panel_generator::box_start('Sharing', false);
?>
        </div>
    </div>

    <!-- BACKGROUND STYLE -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title">背景风格</span>
            <p>背景如何显示</p>
            <ul>
                <li><b>伸展:</b> 当你为你的背景使用单张图片,且你想此图片填充整个背景时使用此选项</li>
                <li><b>切片:</b> 当你为你的背景使用图案时使用此选项.</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' => '默认', '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>


    <!-- Related articles count -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title">RELATED ARTICLE - COUNT</span>
            <p>How many related articles to show:</p>
            <ul>
                <li>one row has 3 articles when the layout is with sidebar</li>
                <li>one row has 5 articles when the layout is without sidebar</li>
            </ul>
        </div>
        <div class="td-box-control-full">
            <?php 
echo td_panel_generator::radio_button_control(array('ds' => 'td_option', 'option_id' => 'tds_similar_articles_rows', 'values' => array(array('text' => '1 row of related posts (3/5)', 'val' => ''), array('text' => '2 rows of related posts (6/10)', 'val' => '2'), array('text' => '3 rows of related posts (9/15)', 'val' => '3'), array('text' => '4 rows of related posts (12/20)', 'val' => '4'))));
?>
        </div>
    </div>

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



<!-- sharing -->
<?php 
echo td_panel_generator::box_start('Sharing', false);
?>
Esempio n. 11
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
    }


    <!-- Related articles count -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title">相关文章 - 计数</span>
            <p>显示多少相关文章:</p>
            <ul>
                <li>当布局带侧边栏时一行有3个文章</li>
                <li>当布局无侧边栏时一行有5个文章</li>
            </ul>
        </div>
        <div class="td-box-control-full">
            <?php 
echo td_panel_generator::radio_button_control(array('ds' => 'td_option', 'option_id' => 'tds_similar_articles_rows', 'values' => array(array('text' => '1行相关文章 (3/5)', 'val' => ''), array('text' => '2行相关文章 (6/10)', 'val' => '2'), array('text' => '3行相关文章 (9/15)', 'val' => '3'), array('text' => '4行相关文章 (12/20)', 'val' => '4'))));
?>
        </div>
    </div>

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



<!-- sharing -->
<?php 
echo td_panel_generator::box_start('分享', false);
?>
Esempio n. 13
0
        <?php 
echo td_panel_generator::radio_button_control(array('ds' => 'td_option', 'option_id' => 'tds_menu_icon_color', 'values' => array(array('text' => 'Black', 'val' => ''), array('text' => 'White', 'val' => '2'))));
?>
    </div>
</div>


<!-- STICKY MENU -->
<div class="td-box-row">
    <div class="td-box-description">
        <span class="td-box-title">STICKY MENU</span>
        <p>How to display the header menu on scroll</p>
    </div>
    <div class="td-box-control-full">
        <?php 
echo td_panel_generator::radio_button_control(array('ds' => 'td_option', 'option_id' => 'tds_snap_menu', 'values' => array(array('text' => '<strong>Normal menu</strong> - (not sticky)', 'val' => ''), array('text' => '<strong>Always snap</strong> - stays at the top of the page', 'val' => 'snap'), array('text' => '<strong>Smart snap </strong> - (mobile)', 'val' => 'smart_snap_mobile'), array('text' => '<strong>Smart snap </strong> - (always)', 'val' => 'smart_snap_always'))));
?>
    </div>
</div>





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


<!-- LOGO -->
<?php 
            <?php 
echo td_panel_generator::radio_button_control(array('ds' => 'td_option', 'option_id' => 'tds_snap_menu', 'values' => array(array('text' => '<strong>正常菜单</strong> - (无粘性)', 'val' => ''), array('text' => '<strong>始终粘性</strong> - 停留在页面顶部', 'val' => 'snap'), array('text' => '<strong>智能捕捉 </strong> - (手机)', 'val' => 'smart_snap_mobile'), array('text' => '<strong>智能捕捉 </strong> - (始终)', 'val' => 'smart_snap_always'))));
?>
        </div>
    </div>

	<!-- SHOW THE MOBILE LOGO ON THE STICKY MENU -->
	<div class="td-box-row">
		<div class="td-box-description">
			<span class="td-box-title">粘性菜单LOGO</span>
			<p>显示/隐藏粘性菜单LOGO</p>
			<p><strong>注意:</strong>如果你选择<strong>手机logo</strong>,在手机logo部分上传logo</p>
		</div>
		<div class="td-box-control-full">
			<?php 
echo td_panel_generator::radio_button_control(array('ds' => 'td_option', 'option_id' => 'tds_logo_on_sticky', 'values' => array(array('text' => '<strong>禁用</strong>', 'val' => ''), array('text' => '<strong>页眉 logo </strong> - 显示页眉 logo', 'val' => 'show_header_logo'), array('text' => '<strong>手机 logo </strong> - 显示手机 logo', 'val' => 'show'))));
?>
		</div>
	</div>

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


<!-- LOGO -->
<?php 
echo td_panel_generator::box_start('Logo 和收藏图标', false);
?>

    <!-- LOGO UPLOAD -->
Esempio n. 15
0
echo td_panel_generator::radio_button_control(array('ds' => 'td_option', 'option_id' => 'tds_similar_articles_type', 'values' => array(array('text' => 'by category', 'val' => ''), array('text' => 'by tag', 'val' => 'by_tag'), array('text' => 'by author', 'val' => 'by_auth'))));
?>
        </div>
    </div>


    <!-- Similar article -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title">SIMILAR ARTICLE</span>
            <p>How many similar article to show
            </p>
        </div>
        <div class="td-box-control-full">
            <?php 
echo td_panel_generator::radio_button_control(array('ds' => 'td_option', 'option_id' => 'tds_similar_articles_count', 'values' => array(array('text' => '2 posts', 'val' => ''), array('text' => '4 posts', 'val' => '4'), array('text' => '6 posts', 'val' => '6'), array('text' => '8 posts', 'val' => '8'))));
?>
        </div>
    </div>
<?php 
echo td_panel_generator::box_end();
?>



<!-- sharing -->
<?php 
echo td_panel_generator::box_start('Sharing', false);
?>