// show the $big_grid_styles_list only if we have big grids
// Newsmag as of 10 march is not using $big_grid_styles_list
if (!empty(td_global::$big_grid_styles_list)) {
    ?>
        <div class="td-box-row">
            <div class="td-box-description">
                <span class="td-box-title">Category top posts GRID STYLE</span>
                <p>Each category grid supports multiple styles</p>
            </div>
            <div class="td-box-control-full">
                <?php 
    $td_grid_style_values = array();
    foreach (td_global::$big_grid_styles_list as $big_grid_id => $params) {
        $td_grid_style_values[] = array('text' => $params['text'], 'val' => $big_grid_id);
    }
    echo td_panel_generator::dropdown(array('ds' => 'td_option', 'option_id' => 'tds_category_td_grid_style', 'values' => $td_grid_style_values));
    ?>
            </div>
        </div>
    <?php 
}
?>

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


    <!-- 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. For custom modules or tuning, read <a target="_blank" href="http://forum.tagdiv.com/api-modules-introduction/">the module API</a></p>
        <div class="td-box-control-full">
            <?php 
echo td_panel_generator::dropdown(array('ds' => 'td_option', 'option_id' => 'tds_more_articles_on_post_pages_number', 'values' => array(array('text' => '1', 'val' => ''), array('text' => '2', 'val' => 2), array('text' => '3', 'val' => 3), array('text' => '4', 'val' => 4), array('text' => '5', 'val' => 5), array('text' => '6', 'val' => 6))));
?>
        </div>
    </div>


    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title">DISABLE TIME</span>
            <p>If the user closes the More Articles box, this is the time (in days) to wait before seeing the box again</p>
        </div>
        <div class="td-box-control-full">
            <?php 
echo td_panel_generator::dropdown(array('ds' => 'td_option', 'option_id' => 'tds_more_articles_on_post_pages_time_to_wait', 'values' => array(array('text' => 'never', 'val' => ''), array('text' => 'for 1 day', 'val' => 1), array('text' => 'for 2 days', 'val' => 2), array('text' => 'for 3 days', 'val' => 3))));
?>
        </div>
    </div>

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




<!-- Advanced options -->
<?php 
echo td_panel_generator::box_start('Ajax view count (keep counting with cache plugins)', false);
?>
Esempio n. 3
0

<!-- MAIN MENU -->
<?php 
echo td_panel_generator::box_start('Main Menu', false);
?>

    <!-- MAIN MENU -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title">Header menu (main)</span>
            <p>Select a menu for the main header section</p>
        </div>
        <div class="td-box-control-full">
            <?php 
echo td_panel_generator::dropdown(array('ds' => 'wp_theme_menu_spot', 'option_id' => 'header-menu', 'values' => td_panel_generator::$td_user_created_menus));
?>
        </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 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'))));
?>
Esempio n. 4
0
echo td_panel_generator::visual_select_o(array('ds' => 'td_option', 'option_id' => 'tds_category_page_layout', 'values' => td_panel_generator::helper_display_modules('enabled_on_loops')));
?>
        </div>
    </div>


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

<div class="td-box-row">
    <div class="td-box-description">
        <span class="td-box-title">Pagination style</span>
        <p>Set a pagination style for all categories</p>
    </div>
    <div class="td-box-control-full">
        <?php 
echo td_panel_generator::dropdown(array('ds' => 'td_option', 'option_id' => 'tds_category_pagination_style', 'values' => array(array('val' => '', 'text' => 'Normal pagination'), array('val' => 'infinite', 'text' => 'Infinite loading'), array('val' => 'infinite_load_more', 'text' => 'Infinite loading + Load more'))));
?>
    </div>
</div>


<div class="td-box-section-separator"></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>
    </div>


    <!-- Copyright symbol -->
    <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_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">页脚菜单</span>
            <p>选择子页脚菜单</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::get_user_created_menus()));
?>
        </div>
    </div>
<?php 
echo td_panel_generator::box_end();
                <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>
Esempio n. 7
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
    }
Esempio n. 8
0
    <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' => 'content_bottom', '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' => 'content_bottom', 'option_id' => 'p_size', 'values' => td_panel_generator::$google_ad_sizes));
?>
            </span>

        </div>
    </div>

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



<?php 
//backround add
echo td_panel_generator::box_start('Background click Ad', false);
        <span class="td-box-title">MORE INFORMATION:</span>
        <p>Available translations: English, Dutch, Finnish, German, Greek, Hindi, Indonesian, Japanese, Marathi, Polish, Portuguese, Romanian, Russian, Spanish, Tamil, Thai, Turkish and Urdu. The rest are translated via google translate. Please note that the translations are loaded from our servers.</p>
        <p><strong style="margin-right: 2px">Note:</strong>English translation being the default translation of our theme, will set default values for your translate input fields.</p>
    </div>
</div>

<div class="td-box-row">
    <div class="td-box-description">
            <div class="td-box-control-full">
                <?php 
td_util::update_option('tds_language', '');
$languages[] = array('text' => 'Choose a language...', 'val' => '');
foreach (td_global::$translate_languages_list as $language_code => $language_name) {
    $languages[] = array('text' => $language_name, 'val' => $language_code);
}
echo td_panel_generator::dropdown(array('ds' => 'td_option', 'option_id' => 'tds_language', 'values' => $languages));
?>
            </div>
    </div>

    <a id="load_translation" class="td-big-button td-medium-button" href="">Load translation</a>

</div>

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



?>
        </div>
    </div>


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


    <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::dropdown(array('ds' => 'td_category', 'option_id' => 'tdc_category_pagination_style', 'item_id' => $category_id, 'values' => array(array('val' => '', 'text' => '从全局设置继承'), array('val' => 'normal', 'text' => '常规页码'), array('val' => 'infinite', 'text' => '无限加载'), array('val' => 'infinite_load_more', 'text' => '无限加载+加载更多'))));
?>
        </div>
    </div>
    <div class="td-box-section-separator"></div>

    <!-- Custom Sidebar + 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 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'))));
echo td_panel_generator::visual_select_o(array('ds' => 'td_option', 'option_id' => 'tds_category_page_layout', 'values' => td_panel_generator::helper_display_modules('enabled_on_loops')));
?>
        </div>
    </div>


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

<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::dropdown(array('ds' => 'td_option', 'option_id' => 'tds_category_pagination_style', 'values' => array(array('val' => '', 'text' => '正常分页'), array('val' => 'infinite', 'text' => '无限加载'), array('val' => 'infinite_load_more', 'text' => '无限加载 + 加载更多'))));
?>
    </div>
</div>


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


    <!-- Custom Sidebar + 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 td-panel-sidebar-pos">
?>
        </div>
    </div>


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


    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title">Pagination style</span>
            <p>Set a pagination style for this category</p>
        </div>
        <div class="td-box-control-full">
            <?php 
echo td_panel_generator::dropdown(array('ds' => 'td_category', 'option_id' => 'tdc_category_pagination_style', 'item_id' => $category_id, 'values' => array(array('val' => '', 'text' => 'Inherit from global settings'), array('val' => 'normal', 'text' => 'Normal pagination'), array('val' => 'infinite', 'text' => 'Infinite loading'), array('val' => 'infinite_load_more', 'text' => 'Infinite loading + Load more'))));
?>
        </div>
    </div>
    <div class="td-box-section-separator"></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>
</div>


<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>
    public function td_custom_typology_generate_font_controls()
    {
        ob_start();
        //get the sections start and end
        $section_name = td_util::get_http_post_val('section_name');
        ?>
		<div class="td-panel-fonts-header">
		    <div class="td-panel-font-description td-panel-font-family">Font family</div>
			<div class="td-panel-font-description td-panel-font-size">Size</div>
		    <div class="td-panel-font-description td-panel-font-line-height">Line height</div>
		    <div class="td-panel-font-description td-panel-font-style">Style</div>
		    <div class="td-panel-font-description td-panel-font-weight">Weight</div>
		    <div class="td-panel-font-description td-panel-font-transform">Transform</div>
		</div>
	    <?php 
        foreach (td_global::$typography_settings_list[$section_name] as $font_setting_id => $font_setting) {
            ?>
                <div class="td-box-row td-panel-font-typography">
	                <div class="td-box-description">

	                    <span class="td-box-title td-title-on-row">
		                    <?php 
            echo $font_setting['text'];
            ?>
	                    </span>
	                </div>
	                <div class="td-box-control-full">

		                <div class="td-panel-font-family">
			                <?php 
            echo td_panel_generator::dropdown(array('ds' => 'td_fonts', 'item_id' => $font_setting_id, 'option_id' => 'font_family', 'values' => $this->td_typology_fonts_array));
            ?>
		                </div>

	                    <?php 
            if ($font_setting['type'] != 'general_setting') {
                ?>

		                    <div class="td-panel-font-size">
			                    <?php 
                echo td_panel_generator::dropdown(array('ds' => 'td_fonts', 'item_id' => $font_setting_id, 'option_id' => 'font_size', 'values' => $this->td_font_size_list));
                ?>
		                    </div>
		                    <div class="td-panel-font-line-height">
		                        <?php 
                echo td_panel_generator::dropdown(array('ds' => 'td_fonts', 'item_id' => $font_setting_id, 'option_id' => 'line_height', 'values' => $this->td_line_height_list));
                ?>
		                    </div>
		                    <div class="td-panel-font-style">
		                        <?php 
                echo td_panel_generator::dropdown(array('ds' => 'td_fonts', 'item_id' => $font_setting_id, 'option_id' => 'font_style', 'values' => $this->td_font_style_list));
                ?>
		                    </div>
		                    <div class="td-panel-font-weight">
		                        <?php 
                echo td_panel_generator::dropdown(array('ds' => 'td_fonts', 'item_id' => $font_setting_id, 'option_id' => 'font_weight', 'values' => $this->td_font_weight));
                ?>
		                    </div>
		                    <div class="td-panel-font-transform">
		                        <?php 
                echo td_panel_generator::dropdown(array('ds' => 'td_fonts', 'item_id' => $font_setting_id, 'option_id' => 'text_transform', 'values' => $this->td_text_transform));
                ?>
		                    </div>

	                    <?php 
            }
            ?>

	                </div>
                </div><?php 
        }
        //end foreach
        return ob_get_clean();
    }