function td_template_include_filter($wordpress_template_path) { // intercept the WordPress requested template, and if it's single we put our own. if (is_single() and ($wordpress_template_path == TEMPLATEPATH . '/single.php' or $wordpress_template_path == STYLESHEETPATH . '/single.php')) { global $post; // if we are on a custom post type, leave the defaul loaded wordpress template if ($post->post_type != 'post') { return $wordpress_template_path; } // read the global setting $single_template_id = td_util::get_option('td_default_site_post_template'); // check if we have a specific template $td_post_theme_settings = get_post_meta($post->ID, 'td_post_theme_settings', true); if (!empty($td_post_theme_settings['td_post_template'])) { $single_template_id = $td_post_theme_settings['td_post_template']; } if (!empty($single_template_id)) { // try to find the template in the API $single_template_path = ''; try { $single_template_path = td_api_single_template::get_key($single_template_id, 'file'); } catch (ErrorException $ex) { td_util::error(__FILE__, "The template {$single_template_id} isn't set. Did you disable a tagDiv plugin?"); // this does not stop execution } // we have the file in the API, now we make sure that the file exists on disk if (!empty($single_template_path) and file_exists($single_template_path)) { $wordpress_template_path = $single_template_path; } else { td_util::error(__FILE__, "The path {$single_template_path} of the {$single_template_id} template not found. Did you disable a tagDiv plugin?"); // this does not stop execution } } } else { if (td_global::$is_woocommerce_installed and is_single() and ($wordpress_template_path == TEMPLATEPATH . '/woocommerce/single-product.php' or $wordpress_template_path == STYLESHEETPATH . '/woocommerce/single-product.php')) { //echo 'SINGLE PRODUCT detected<br>'; } } return $wordpress_template_path; }
/** * v3 23 ian 2015 * @param $thumbType * @return string */ function get_image($thumbType) { global $page; // if ( //check to see if the current single template is configured to show the featured image on the second page // !isset( td_global::$single_templates_list[td_global::$cur_single_template]['show_featured_image_on_all_pages'] ) // or td_global::$single_templates_list[td_global::$cur_single_template]['show_featured_image_on_all_pages'] === false // ){ if (td_api_single_template::_check_show_featured_image_on_all_pages(td_global::$cur_single_template) === false) { //the post is configured to show the featured image only on the first page if (!empty($page) and $page > 1) { return ''; } } //do not show the featured image if the global setting is set to hide - show the video preview regardless of the setting if (td_util::get_option('tds_show_featured_image') == 'hide' and get_post_format($this->post->ID) != 'video') { return ''; } //handle video post format if (get_post_format($this->post->ID) == 'video') { //if it's a video post... $td_post_video = get_post_meta($this->post->ID, 'td_post_video', true); $td_video_support = new td_video_support(); //render the video if the post has a video in the featured video section of the post if (!empty($td_post_video['td_video'])) { return $td_video_support->renderVideo($td_post_video['td_video']); } } else { //if it's a normal post, show the default thumb if ($this->post_has_thumb) { //get the featured image id + full info about the 640px wide one $featured_image_id = get_post_thumbnail_id($this->post->ID); $featured_image_info = td_util::attachment_get_full_info($featured_image_id, $thumbType); //get the full size for the popup $featured_image_full_size_src = td_util::attachment_get_src($featured_image_id, 'full'); $buffy = ''; $show_td_modal_image = td_util::get_option('tds_featured_image_view_setting'); if (is_single()) { if ($show_td_modal_image != 'no_modal') { //wrap the image_html with a link + add td-modal-image class $image_html = '<a href="' . $featured_image_full_size_src['src'] . '" data-caption="' . esc_attr($featured_image_info['caption'], ENT_QUOTES) . '">'; $image_html .= '<img width="' . $featured_image_info['width'] . '" height="' . $featured_image_info['height'] . '" itemprop="image" class="entry-thumb td-modal-image" src="' . $featured_image_info['src'] . '" alt="' . $featured_image_info['alt'] . '" title="' . $featured_image_info['title'] . '"/>'; $image_html .= '</a>'; } else { //no_modal $image_html = '<img width="' . $featured_image_info['width'] . '" height="' . $featured_image_info['height'] . '" itemprop="image" class="entry-thumb" src="' . $featured_image_info['src'] . '" alt="' . $featured_image_info['alt'] . '" title="' . $featured_image_info['title'] . '"/>'; } } else { //on blog index page $image_html = '<a href="' . $this->href . '"><img width="' . $featured_image_info['width'] . '" height="' . $featured_image_info['height'] . '" itemprop="image" class="entry-thumb" src="' . $featured_image_info['src'] . '" alt="' . $featured_image_info['alt'] . '" title="' . $featured_image_info['title'] . '"/></a>'; } $buffy .= '<div class="td-post-featured-image">'; // caption - put html5 wrapper on when we have a caption if (!empty($featured_image_info['caption'])) { $buffy .= '<figure>'; $buffy .= $image_html; $buffy .= '<figcaption class="wp-caption-text">' . $featured_image_info['caption'] . '</figcaption>'; $buffy .= '</figure>'; } else { $buffy .= $image_html; } $buffy .= '</div>'; return $buffy; } else { return ''; //the post has no thumb } } }
<!-- Default site post template --> <?php echo td_panel_generator::box_start('Default post template (site wide)', false); ?> <!-- Default post template --> <div class="td-box-row"> <div class="td-box-description"> <span class="td-box-title">DEFAULT SITE POST TEMPLATE</span> <p>Setting this option will make all post pages, that don't have a post template set, to be displayed using this template. You can overwrite this setting on a per post basis.</p> </div> <div class="td-box-control-full"> <?php echo td_panel_generator::visual_select_o(array('ds' => 'td_option', 'option_id' => 'td_default_site_post_template', 'values' => td_api_single_template::_helper_td_global_list_to_panel_values())); ?> </div> </div> <?php echo td_panel_generator::box_end(); ?> <!-- featured images -->
function wp_head_hook_background_logic() { global $post, $paged; $background_params = array('is_boxed_layout' => false, 'is_stretched_bg' => false, 'theme_bg_image' => td_util::get_option('tds_site_background_image'), 'theme_bg_repeat' => td_util::get_option('tds_site_background_repeat'), 'theme_bg_position' => td_util::get_option('tds_site_background_position_x'), 'theme_bg_attachment' => td_util::get_option('tds_site_background_attachment'), 'theme_bg_color' => td_util::get_option('tds_site_background_color'), 'td_ad_background_click_link' => stripslashes(td_util::get_option('tds_background_click_url')), 'td_ad_background_click_target' => td_util::get_option('tds_background_click_target')); /* -------------------------------------------------------------------------- Read the background settings */ // is stretch background? if (td_util::get_option('tds_stretch_background') == 'yes') { $background_params['is_stretched_bg'] = true; } // activate the boxed layout - if we have an image or color if ($background_params['theme_bg_image'] != '' or $background_params['theme_bg_color'] != '') { $background_params['is_boxed_layout'] = true; } /* -------------------------------------------------------------------------- we are on a category */ if (is_category()) { // try to read the category settings $post_primary_category_id = intval(get_query_var('cat')); //we are on a category, get the id @todo verify this, get_query_var('cat') may not work with permalinks $background_params = $this->get_category_bg_settings($post_primary_category_id, $background_params); } elseif (is_page()) { $td_page = get_query_var('page') ? get_query_var('page') : 1; //rewrite the global var $td_paged = get_query_var('paged') ? get_query_var('paged') : 1; //rewrite the global var if ($td_paged > $td_page) { $paged = $td_paged; } else { $paged = $td_page; } if (!empty($post->post_content) and strpos($post->post_content, 'td_block_homepage_full_1') !== false and (empty($paged) or $paged < 2)) { // deactivate the background only on td_block_homepage_full_1 + page 1. // on the second page, load it with the normal site wide background //$background_params['theme_bg_image'] = ''; return; // THIS SHORTCODE disables the background AND background color! } } elseif (is_singular('post')) { //is_single runs on all the posts types, that's why we need is_singular // try to read the background settings for the parent category of this post $post_primary_category_id = intval(td_global::get_primary_category_id()); // we are on single post - get the primary category id $background_params = $this->get_category_bg_settings($post_primary_category_id, $background_params); // read the per post single_template $post_meta_values = get_post_meta($post->ID, 'td_post_theme_settings', true); // if we don't have any single_template set on this post, try to laod the default global setting if (empty($post_meta_values['td_post_template'])) { $td_site_post_template = td_util::get_option('td_default_site_post_template'); } else { $td_site_post_template = $post_meta_values['td_post_template']; } if (!empty($td_site_post_template)) { // we have a single_template set on a per post basis or on the global setting in the pane > post settings -> default post template (site wide) // overwrite the theme_bg_image with the featured image if needed if (td_api_single_template::get_key($td_site_post_template, 'bg_use_featured_image_as_background') === true) { $background_params['theme_bg_image'] = td_util::get_featured_image_src($post->ID, 'full'); $background_params['is_stretched_bg'] = true; } // disable the background image if needed - used by singe_post_templates that implement their own backgrounds if (td_api_single_template::get_key($td_site_post_template, 'bg_disable_background') === true) { $background_params['theme_bg_image'] = ''; $background_params['theme_bg_color'] = ''; } // overwrite the box layout settings with the ones provided here switch (td_api_single_template::get_key($td_site_post_template, 'bg_box_layout_config')) { case 'auto': // do nothing - the site will load the site wide boxed layout settings break; case 'td-boxed-layout': //force a boxed layout regardless if the site has a bg image or bg color $background_params['is_boxed_layout'] = true; break; case 'td-full-layout': //force a full layout regardless if the site has a bg image or bg color $background_params['is_boxed_layout'] = false; break; } } } // WE HAVE TO HAVE A IMAGE OR COLOR - @todo wtf needs to be refactorized new td_background_render($background_params); }
get_sidebar(); ?> </div> </div> <?php break; case 'no_sidebar': td_global::$load_featured_img_from_template = 'td_1068x0'; ?> <div class="td-pb-span12 td-main-content" role="main"> <div class="td-ss-main-content"> <?php locate_template('loop-single.php', true); comments_template('', true); ?> </div> </div> <?php break; } ?> </div> <!-- /.td-pb-row --> </div> <!-- /.td-container --> </div> <!-- /.td-main-content-wrap --> <?php } else { //the user has selected a different template & we make sure we only load our templates - the list of allowed templates is in includes/wp_booster/td_global.php td_api_single_template::_helper_show_single_template($td_post_theme_settings['td_post_template']); } get_footer();
<span class="td-page-o-custom-label"> Post template: <?php td_util::tooltip_html(' <h3>Post templates:</h3> <p>Testing this When the default post template is set, the theme wiWhen the default post template is set, the theme wi</p> <ul> <li><strong>This setting overrides</strong> the Theme panel setting from <i>Post settings > Default post template</i></li> <li><strong>On default</strong> - the post will load the template that is set in the Theme panel: <i>Post settings > Default post template</i></li> </ul> ', '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' => 'td_post_template', 'values' => td_api_single_template::_helper_td_global_list_to_panel_values(), 'selected_value' => $mb->get_the_value('td_post_template'))); ?> </div> </div> <!-- primary category --> <div class="td-meta-box-row"> <span class="td-page-o-custom-label"> Primary category: <?php td_util::tooltip_html(' <h3>Primary category explained:</h3> <p>In ' . TD_THEME_NAME . ' theme each post has a <i>Primary category</i> and all the settings from that category will be trasfered to the post. The Primary category will also be used as a category label that appears on the thumbs and the category breadcrumb</p>
/** * setup the global theme specific variables * @depends td_global */ static function td_global_after() { /** * js files list */ td_global::$js_files = array('td_external' => '/includes/wp_booster/js_dev/td_external.js', 'td_detect' => '/includes/wp_booster/js_dev/td_detect.js', 'td_viewport' => '/includes/wp_booster/js_dev/td_viewport.js', 'td_menu' => '/includes/wp_booster/js_dev/td_menu.js', 'td_local_cache' => '/includes/wp_booster/js_dev/td_local_cache.js', 'td_util' => '/includes/wp_booster/js_dev/td_util.js', 'td_affix' => '/includes/wp_booster/js_dev/td_affix.js', 'td_site' => '/includes/wp_booster/js_dev/td_site.js', 'td_loading_box' => '/includes/wp_booster/js_dev/td_loading_box.js', 'td_ajax_search' => '/includes/wp_booster/js_dev/td_ajax_search.js', 'td_post_images' => '/includes/wp_booster/js_dev/td_post_images.js', 'td_blocks' => '/includes/wp_booster/js_dev/td_blocks.js', 'td_login' => '/includes/wp_booster/js_dev/td_login.js', 'td_style_customizer' => '/includes/wp_booster/js_dev/td_style_customizer.js', 'td_trending_now' => '/includes/wp_booster/js_dev/td_trending_now.js', 'td_history' => '/includes/wp_booster/js_dev/td_history.js', 'td_smart_sidebar' => '/includes/wp_booster/js_dev/td_smart_sidebar.js', 'td_infinite_loader' => '/includes/wp_booster/js_dev/td_infinite_loader.js', 'td_smooth_scroll' => '/includes/wp_booster/js_dev/td_smooth_scroll.js', 'vimeo_froogaloop' => '/includes/wp_booster/js_dev/vimeo_froogaloop.js', 'td_custom_events' => '/includes/js_files/td_custom_events.js', 'td_events' => '/includes/wp_booster/js_dev/td_events.js', 'td_ajax_count' => '/includes/wp_booster/js_dev/td_ajax_count.js', 'td_video_playlist' => '/includes/wp_booster/js_dev/td_video_playlist.js', 'td_slide' => '/includes/wp_booster/js_dev/td_slide.js', 'td_pulldown' => '/includes/wp_booster/js_dev/td_pulldown.js', 'td_fps' => '/includes/js_files/td_fps.js', 'td_animation_scroll' => '/includes/wp_booster/js_dev/td_animation_scroll.js', 'td_backstr' => '/includes/wp_booster/js_dev/td_backstr.js', 'td_animation_stack' => '/includes/wp_booster/js_dev/td_animation_stack.js', 'td_main' => '/includes/js_files/td_main.js', 'td_last_init' => '/includes/wp_booster/js_dev/td_last_init.js'); /** * td_viewport intervals in crescendo order */ td_global::$td_viewport_intervals = array(array("limit_bottom" => 767, "sidebar_width" => 228), array("limit_bottom" => 1018, "sidebar_width" => 300), array("limit_bottom" => 1140, "sidebar_width" => 324)); /** * - td animation stack effects used in the 'loading animation image' theme panel section * - the first element is a special case, it representing the default type 'type0' @see animation-stack.less * - the 'val' parameter is the type effect * - the 'specific_selectors' parameter is the css selector used to look for new elements inside of some specific sections [ex. at ajax req] * - the 'general_selectors' parameter is the css selector used to look for elements on extended sections [ex. entire page] * - Important! the 'general_selectors' is not used by the default 'type0' */ td_global::$td_animation_stack_effects = array(array('text' => 'Fade [full]', 'val' => '', 'specific_selectors' => '.entry-thumb, img', 'general_selectors' => '.td-animation-stack img, .post img'), array('text' => 'Fade & Scale', 'val' => 'type1', 'specific_selectors' => '.entry-thumb, img[class*="wp-image-"], a.td-sml-link-to-image > img', 'general_selectors' => '.td-animation-stack .entry-thumb, .post .entry-thumb, .post img[class*="wp-image-"], .post a.td-sml-link-to-image > img'), array('text' => 'Up fade', 'val' => 'type2', 'specific_selectors' => '.entry-thumb, img[class*="wp-image-"], a.td-sml-link-to-image > img', 'general_selectors' => '.td-animation-stack .entry-thumb, .post .entry-thumb, .post img[class*="wp-image-"], a.td-sml-link-to-image > img')); /** * single template list */ td_api_single_template::add('single_template', array('file' => td_global::$get_template_directory . '/single.php', 'text' => 'Single template', 'img' => td_global::$get_template_directory_uri . '/images/panel/single_templates/single_template_0.png', 'show_featured_image_on_all_pages' => false, 'bg_disable_background' => false, 'bg_box_layout_config' => 'auto', 'bg_use_featured_image_as_background' => false)); td_api_single_template::add('single_template_1', array('file' => td_global::$get_template_directory . '/single_template_1.php', 'text' => 'Single template 1', 'img' => td_global::$get_template_directory_uri . '/images/panel/single_templates/single_template_1.png', 'show_featured_image_on_all_pages' => false, 'bg_disable_background' => false, 'bg_box_layout_config' => 'auto', 'bg_use_featured_image_as_background' => false)); td_api_single_template::add('single_template_2', array('file' => td_global::$get_template_directory . '/single_template_2.php', 'text' => 'Single template 2', 'img' => td_global::$get_template_directory_uri . '/images/panel/single_templates/single_template_2.png', 'show_featured_image_on_all_pages' => false, 'bg_disable_background' => false, 'bg_box_layout_config' => 'auto', 'bg_use_featured_image_as_background' => false)); td_api_single_template::add('single_template_3', array('file' => td_global::$get_template_directory . '/single_template_3.php', 'text' => 'Single template 3', 'img' => td_global::$get_template_directory_uri . '/images/panel/single_templates/single_template_3.png', 'show_featured_image_on_all_pages' => true, 'bg_disable_background' => false, 'bg_box_layout_config' => 'auto', 'bg_use_featured_image_as_background' => false)); td_api_single_template::add('single_template_4', array('file' => td_global::$get_template_directory . '/single_template_4.php', 'text' => 'Single template 4', 'img' => td_global::$get_template_directory_uri . '/images/panel/single_templates/single_template_4.png', 'show_featured_image_on_all_pages' => true, 'bg_disable_background' => false, 'bg_box_layout_config' => 'auto', 'bg_use_featured_image_as_background' => false)); td_api_single_template::add('single_template_5', array('file' => td_global::$get_template_directory . '/single_template_5.php', 'text' => 'Single template 5', 'img' => td_global::$get_template_directory_uri . '/images/panel/single_templates/single_template_5.png', 'show_featured_image_on_all_pages' => false, 'bg_disable_background' => false, 'bg_box_layout_config' => 'auto', 'bg_use_featured_image_as_background' => false)); td_api_single_template::add('single_template_6', array('file' => td_global::$get_template_directory . '/single_template_6.php', 'text' => 'Single template 6', 'img' => td_global::$get_template_directory_uri . '/images/panel/single_templates/single_template_6.png', 'show_featured_image_on_all_pages' => true, 'disable_background' => false, 'use_featured_image_as_background' => true, 'bg_disable_background' => false, 'bg_box_layout_config' => 'auto', 'bg_use_featured_image_as_background' => false)); td_api_single_template::add('single_template_7', array('file' => td_global::$get_template_directory . '/single_template_7.php', 'text' => 'Single template 7', 'img' => td_global::$get_template_directory_uri . '/images/panel/single_templates/single_template_7.png', 'show_featured_image_on_all_pages' => true, 'bg_disable_background' => false, 'bg_box_layout_config' => 'auto', 'bg_use_featured_image_as_background' => false)); td_api_single_template::add('single_template_8', array('file' => td_global::$get_template_directory . '/single_template_8.php', 'text' => 'Single template 8', 'img' => td_global::$get_template_directory_uri . '/images/panel/single_templates/single_template_8.png', 'show_featured_image_on_all_pages' => true, 'bg_disable_background' => false, 'bg_box_layout_config' => 'td-boxed-layout', 'bg_use_featured_image_as_background' => true)); td_api_single_template::add('single_template_9', array('file' => td_global::$get_template_directory . '/single_template_9.php', 'text' => 'Single template 9', 'img' => td_global::$get_template_directory_uri . '/images/panel/single_templates/single_template_9.png', 'show_featured_image_on_all_pages' => false, 'bg_disable_background' => false, 'bg_box_layout_config' => 'auto', 'bg_use_featured_image_as_background' => false)); td_api_single_template::add('single_template_10', array('file' => td_global::$get_template_directory . '/single_template_10.php', 'text' => 'Single template 10', 'img' => td_global::$get_template_directory_uri . '/images/panel/single_templates/single_template_10.png', 'show_featured_image_on_all_pages' => true, 'bg_disable_background' => false, 'bg_box_layout_config' => 'auto', 'bg_use_featured_image_as_background' => false)); td_api_single_template::add('single_template_11', array('file' => td_global::$get_template_directory . '/single_template_11.php', 'text' => 'Single template 11', 'img' => td_global::$get_template_directory_uri . '/images/panel/single_templates/single_template_11.png', 'show_featured_image_on_all_pages' => true, 'bg_disable_background' => false, 'bg_box_layout_config' => 'auto', 'bg_use_featured_image_as_background' => false)); /** * smart lists */ td_api_smart_list::add('td_smart_list_1', array('file' => td_global::$get_template_directory . '/includes/smart_lists/td_smart_list_1.php', 'text' => 'Smart list 1', 'img' => td_global::$get_template_directory_uri . '/images/panel/smart_lists/td_smart_list_1.png')); td_api_smart_list::add('td_smart_list_2', array('file' => td_global::$get_template_directory . '/includes/smart_lists/td_smart_list_2.php', 'text' => 'Smart list 2', 'img' => td_global::$get_template_directory_uri . '/images/panel/smart_lists/td_smart_list_2.png')); td_api_smart_list::add('td_smart_list_3', array('file' => td_global::$get_template_directory . '/includes/smart_lists/td_smart_list_3.php', 'text' => 'Smart list 3', 'img' => td_global::$get_template_directory_uri . '/images/panel/smart_lists/td_smart_list_3.png')); td_api_smart_list::add('td_smart_list_4', array('file' => td_global::$get_template_directory . '/includes/smart_lists/td_smart_list_4.php', 'text' => 'Smart list 4', 'img' => td_global::$get_template_directory_uri . '/images/panel/smart_lists/td_smart_list_4.png')); td_api_smart_list::add('td_smart_list_5', array('file' => td_global::$get_template_directory . '/includes/smart_lists/td_smart_list_5.php', 'text' => 'Smart list 5', 'img' => td_global::$get_template_directory_uri . '/images/panel/smart_lists/td_smart_list_5.png')); /** * modules list */ td_api_module::add('td_module_1', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_1.php', 'text' => 'Module 1', 'img' => td_global::$get_template_directory_uri . '/images/panel/modules/td_module_1.png', 'used_on_blocks' => array('td_block_3'), 'excerpt_title' => 12, 'excerpt_content' => '', 'enabled_on_more_articles_box' => true, 'enabled_on_loops' => true, 'uses_columns' => true, 'category_label' => true, 'class' => 'td_module_wrap td-animation-stack')); td_api_module::add('td_module_2', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_2.php', 'text' => 'Module 2', 'img' => td_global::$get_template_directory_uri . '/images/panel/modules/td_module_2.png', 'used_on_blocks' => array('td_block_2', 'td_block_4'), 'excerpt_title' => 12, 'excerpt_content' => 25, 'enabled_on_more_articles_box' => true, 'enabled_on_loops' => true, 'uses_columns' => true, 'category_label' => true, 'class' => 'td_module_wrap td-animation-stack')); td_api_module::add('td_module_3', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_3.php', 'text' => 'Module 3', 'img' => td_global::$get_template_directory_uri . '/images/panel/modules/td_module_3.png', 'used_on_blocks' => array('td_block_5'), 'excerpt_title' => 12, 'excerpt_content' => '', 'enabled_on_more_articles_box' => true, 'enabled_on_loops' => true, 'uses_columns' => true, 'category_label' => true, 'class' => 'td_module_wrap td-animation-stack')); td_api_module::add('td_module_4', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_4.php', 'text' => 'Module 4', 'img' => td_global::$get_template_directory_uri . '/images/panel/modules/td_module_4.png', 'used_on_blocks' => array('td_block_1', 'td_block_17'), 'excerpt_title' => 12, 'excerpt_content' => 25, 'enabled_on_more_articles_box' => true, 'enabled_on_loops' => true, 'uses_columns' => true, 'category_label' => true, 'class' => 'td_module_wrap td-animation-stack')); td_api_module::add('td_module_5', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_5.php', 'text' => 'Module 5', 'img' => td_global::$get_template_directory_uri . '/images/panel/modules/td_module_5.png', 'used_on_blocks' => array('td_block_6'), 'excerpt_title' => 12, 'excerpt_content' => 25, 'enabled_on_more_articles_box' => true, 'enabled_on_loops' => true, 'uses_columns' => true, 'category_label' => true, 'class' => 'td_module_wrap td-animation-stack')); td_api_module::add('td_module_6', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_6.php', 'text' => 'Module 6', 'img' => td_global::$get_template_directory_uri . '/images/panel/modules/td_module_6.png', 'used_on_blocks' => array('td_block_1', 'td_block_2', 'td_block_7', 'td_block_16'), 'excerpt_title' => 12, 'excerpt_content' => '', 'enabled_on_more_articles_box' => true, 'enabled_on_loops' => true, 'uses_columns' => true, 'category_label' => true, 'class' => 'td_module_wrap td-animation-stack')); td_api_module::add('td_module_7', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_7.php', 'text' => 'Module 7', 'img' => td_global::$get_template_directory_uri . '/images/panel/modules/td_module_7.png', 'used_on_blocks' => array('td_block_8'), 'excerpt_title' => 12, 'excerpt_content' => '', 'enabled_on_more_articles_box' => true, 'enabled_on_loops' => true, 'uses_columns' => true, 'category_label' => true, 'class' => 'td_module_wrap td-animation-stack')); td_api_module::add('td_module_8', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_8.php', 'text' => 'Module 8', 'img' => td_global::$get_template_directory_uri . '/images/panel/modules/td_module_8.png', 'used_on_blocks' => array('td_block_9', 'td_block_17'), 'excerpt_title' => 15, 'excerpt_content' => '', 'enabled_on_more_articles_box' => true, 'enabled_on_loops' => true, 'uses_columns' => true, 'category_label' => true, 'class' => 'td_module_wrap')); td_api_module::add('td_module_9', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_9.php', 'text' => 'Module 9', 'img' => td_global::$get_template_directory_uri . '/images/panel/modules/td_module_9.png', 'used_on_blocks' => array('td_block_10'), 'excerpt_title' => 15, 'excerpt_content' => '', 'enabled_on_more_articles_box' => true, 'enabled_on_loops' => true, 'uses_columns' => true, 'category_label' => true, 'class' => 'td_module_wrap')); td_api_module::add('td_module_10', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_10.php', 'text' => 'Module 10', 'img' => td_global::$get_template_directory_uri . '/images/panel/modules/td_module_10.png', 'used_on_blocks' => array('td_block_11', 'td_block_18'), 'excerpt_title' => 15, 'excerpt_content' => 25, 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => true, 'uses_columns' => false, 'category_label' => true, 'class' => 'td_module_wrap td-animation-stack')); td_api_module::add('td_module_11', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_11.php', 'text' => 'Module 11', 'img' => td_global::$get_template_directory_uri . '/images/panel/modules/td_module_11.png', 'used_on_blocks' => array('td_block_12'), 'excerpt_title' => 15, 'excerpt_content' => 35, 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => true, 'uses_columns' => false, 'category_label' => true, 'class' => 'td_module_wrap td-animation-stack')); td_api_module::add('td_module_12', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_12.php', 'text' => 'Module 12', 'img' => td_global::$get_template_directory_uri . '/images/panel/modules/td_module_12.png', 'used_on_blocks' => '', 'excerpt_title' => 30, 'excerpt_content' => 60, 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => true, 'uses_columns' => false, 'category_label' => true, 'class' => 'td_module_wrap td-animation-stack')); td_api_module::add('td_module_13', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_13.php', 'text' => 'Module 13', 'img' => td_global::$get_template_directory_uri . '/images/panel/modules/td_module_13.png', 'used_on_blocks' => '', 'excerpt_title' => 30, 'excerpt_content' => '', 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => true, 'uses_columns' => false, 'category_label' => true, 'class' => 'td_module_wrap td-animation-stack')); td_api_module::add('td_module_14', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_14.php', 'text' => 'Module 14', 'img' => td_global::$get_template_directory_uri . '/images/panel/modules/td_module_14.png', 'used_on_blocks' => array('td_block_13', 'td_block_20'), 'excerpt_title' => 30, 'excerpt_content' => 40, 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => true, 'uses_columns' => false, 'category_label' => true, 'class' => 'td_module_wrap td-animation-stack')); td_api_module::add('td_module_15', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_15.php', 'text' => 'Module 15', 'img' => td_global::$get_template_directory_uri . '/images/panel/modules/td_module_15.png', 'used_on_blocks' => '', 'excerpt_title' => '', 'excerpt_content' => '', 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => true, 'uses_columns' => false, 'category_label' => true, 'class' => 'td-animation-stack')); td_api_module::add('td_module_16', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_16.php', 'text' => 'Module 16', 'img' => td_global::$get_template_directory_uri . '/images/panel/modules/td_module_16.png', 'used_on_blocks' => array('Search Page'), 'excerpt_title' => 15, 'excerpt_content' => 25, 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => true, 'uses_columns' => false, 'category_label' => true, 'class' => 'td_module_wrap td-animation-stack')); td_api_module::add('td_module_mx1', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_mx1.php', 'text' => 'Module MX1', 'img' => '', 'used_on_blocks' => array('td_block_14', 'td_block_19'), 'excerpt_title' => 25, 'excerpt_content' => '', 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => false, 'uses_columns' => false, 'category_label' => true, 'class' => 'td_module_wrap td-animation-stack')); td_api_module::add('td_module_mx2', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_mx2.php', 'text' => 'Module MX2', 'img' => '', 'used_on_blocks' => array('td_block_18', 'td_block_19', 'Search live'), 'excerpt_title' => 25, 'excerpt_content' => '', 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => false, 'uses_columns' => false, 'category_label' => true, 'class' => 'td_module_wrap td-animation-stack')); td_api_module::add('td_module_mx3', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_mx3.php', 'text' => 'Module MX3', 'img' => '', 'used_on_blocks' => array('td_block_13', 'td_block_20'), 'excerpt_title' => 25, 'excerpt_content' => '', 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => false, 'uses_columns' => false, 'category_label' => true, 'class' => 'td_module_wrap td-animation-stack')); td_api_module::add('td_module_mx4', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_mx4.php', 'text' => 'Module MX4', 'img' => '', 'used_on_blocks' => array('td_block_15'), 'excerpt_title' => 12, 'excerpt_content' => '', 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => false, 'uses_columns' => false, 'category_label' => true, 'class' => 'td_module_wrap td-animation-stack')); td_api_module::add('td_module_mx5', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_mx5.php', 'text' => 'Module MX5', 'img' => '', 'used_on_blocks' => array('td_block_big_grid_1', 'td_block_big_grid_3', 'td_block_big_grid_4', 'td_block_big_grid_6'), 'excerpt_title' => 25, 'excerpt_content' => '', 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => false, 'uses_columns' => false, 'category_label' => true, 'class' => 'td-animation-stack')); td_api_module::add('td_module_mx6', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_mx6.php', 'text' => 'Module MX6', 'img' => '', 'used_on_blocks' => array('td_block_big_grid_1', 'td_block_big_grid_3', 'td_block_big_grid_7'), 'excerpt_title' => 25, 'excerpt_content' => '', 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => false, 'uses_columns' => false, 'category_label' => true, 'class' => 'td-animation-stack')); td_api_module::add('td_module_mx7', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_mx7.php', 'text' => 'Module MX7', 'img' => '', 'used_on_blocks' => array('td_block_16'), 'excerpt_title' => 25, 'excerpt_content' => 16, 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => false, 'uses_columns' => false, 'category_label' => true, 'class' => 'td_module_wrap td-animation-stack')); td_api_module::add('td_module_mx8', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_mx8.php', 'text' => 'Module MX8', 'img' => '', 'used_on_blocks' => array('td_block_18'), 'excerpt_title' => 25, 'excerpt_content' => '', 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => false, 'uses_columns' => false, 'category_label' => true, 'class' => 'td_module_wrap td-animation-stack')); td_api_module::add('td_module_mx9', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_mx9.php', 'text' => 'Module MX9', 'img' => '', 'used_on_blocks' => array('td_block_big_grid_2'), 'excerpt_title' => 25, 'excerpt_content' => '', 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => false, 'uses_columns' => false, 'category_label' => true, 'class' => 'td-animation-stack')); td_api_module::add('td_module_mx10', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_mx10.php', 'text' => 'Module MX10', 'img' => '', 'used_on_blocks' => array('td_block_big_grid_2'), 'excerpt_title' => 25, 'excerpt_content' => '', 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => false, 'uses_columns' => false, 'category_label' => true, 'class' => 'td-animation-stack')); td_api_module::add('td_module_mx11', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_mx11.php', 'text' => 'Module MX11', 'img' => '', 'used_on_blocks' => array('td_block_big_grid_3'), 'excerpt_title' => 25, 'excerpt_content' => '', 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => false, 'uses_columns' => false, 'category_label' => true, 'class' => 'td-animation-stack')); td_api_module::add('td_module_mx12', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_mx12.php', 'text' => 'Module MX12', 'img' => '', 'used_on_blocks' => array('td_block_big_grid_5', 'td_block_big_grid_7', 'td_block_big_grid_8'), 'excerpt_title' => 25, 'excerpt_content' => '', 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => false, 'uses_columns' => false, 'category_label' => true, 'class' => 'td-animation-stack')); td_api_module::add('td_module_mx13', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_mx13.php', 'text' => 'Module MX13', 'img' => '', 'used_on_blocks' => array('td_block_big_grid_6'), 'excerpt_title' => 25, 'excerpt_content' => '', 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => false, 'uses_columns' => false, 'category_label' => true, 'class' => 'td-animation-stack')); td_api_module::add('td_module_mx14', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_mx14.php', 'text' => 'Module MX14', 'img' => '', 'used_on_blocks' => array('td_block_big_grid_8'), 'excerpt_title' => 25, 'excerpt_content' => '', 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => false, 'uses_columns' => false, 'category_label' => true, 'class' => 'td-animation-stack')); td_api_module::add('td_module_mx_empty', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_mx_empty.php', 'text' => 'Module MX Empty', 'img' => '', 'used_on_blocks' => array('td_block_big_grid_1'), 'excerpt_title' => '', 'excerpt_content' => '', 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => false, 'uses_columns' => false, 'category_label' => false, 'class' => 'td-animation-stack')); td_api_module::add('td_module_related_posts', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_related_posts.php', 'text' => 'Related posts module', 'img' => '', 'used_on_blocks' => array('td_block_related_posts'), 'excerpt_title' => 25, 'excerpt_content' => '', 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => false, 'uses_columns' => false, 'category_label' => true, 'class' => 'td-animation-stack')); td_api_module::add('td_module_mega_menu', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_mega_menu.php', 'text' => 'Mega menu module', 'img' => '', 'used_on_blocks' => array('td_block_mega_menu'), 'excerpt_title' => '12', 'excerpt_content' => '', 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => false, 'uses_columns' => false, 'category_label' => true, 'class' => '')); td_api_module::add('td_module_slide', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_slide.php', 'text' => 'Slider module', 'img' => '', 'used_on_blocks' => array('td_block_slide'), 'excerpt_title' => 25, 'excerpt_content' => '', 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => false, 'uses_columns' => false, 'category_label' => true, 'class' => 'td-animation-stack')); td_api_module::add('td_module_trending_now', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_trending_now.php', 'text' => 'Trending now module', 'img' => '', 'used_on_blocks' => '', 'excerpt_title' => 25, 'excerpt_content' => '', 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => false, 'uses_columns' => false, 'category_label' => false, 'class' => '')); td_api_module::add('td_module_single', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_single.php', 'text' => 'Single Module', 'img' => '', 'used_on_blocks' => '', 'excerpt_title' => '', 'excerpt_content' => '', 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => false, 'uses_columns' => false, 'category_label' => false, 'class' => '')); /** * the thumbs used by the theme * Thumb id => array parameters. Wp booster only cuts if the option is set from theme panel */ td_api_thumb::add('td_80x60', array('name' => 'td_80x60', 'width' => 80, 'height' => 60, 'crop' => array('center', 'top'), 'post_format_icon_size' => 'small', 'used_on' => array('MX2', 'Block 18', 'Block 19', 'Live search', 'tagDiv Image Gallery thumbs'))); td_api_thumb::add('td_100x70', array('name' => 'td_100x70', 'width' => 100, 'height' => 70, 'crop' => array('center', 'top'), 'post_format_icon_size' => 'small', 'used_on' => array('Module 6, 7', 'Block 1, 2, 7, 8, 16'))); td_api_thumb::add('td_218x150', array('name' => 'td_218x150', 'width' => 218, 'height' => 150, 'crop' => array('center', 'top'), 'post_format_icon_size' => 'normal', 'used_on' => array('Module 10, MX4, MX7, MX13, Mega menu, Related posts', 'Block 11, 15, 16, 18, Big grid 6'))); td_api_thumb::add('td_265x198', array('name' => 'td_265x198', 'width' => 265, 'height' => 198, 'crop' => array('center', 'top'), 'post_format_icon_size' => 'normal', 'used_on' => array('Big grid 1, 3, 7 - small image'))); td_api_thumb::add('td_324x160', array('name' => 'td_324x160', 'width' => 324, 'height' => 160, 'crop' => array('center', 'top'), 'post_format_icon_size' => 'normal', 'used_on' => array('Module 1, 2', 'Block 2, 3, 4, Big grid 2'))); td_api_thumb::add('td_324x235', array('name' => 'td_324x235', 'width' => 324, 'height' => 235, 'crop' => array('center', 'top'), 'post_format_icon_size' => 'normal', 'used_on' => array('Module 3, 4, 5, 11, MX3', 'Block 1, 5, 6, 13, 17, 20'))); td_api_thumb::add('td_324x400', array('name' => 'td_324x400', 'width' => 324, 'height' => 400, 'crop' => array('center', 'top'), 'post_format_icon_size' => 'normal', 'used_on' => array('Slide - 1 column'))); td_api_thumb::add('td_356x220', array('name' => 'td_356x220', 'width' => 356, 'height' => 220, 'crop' => array('center', 'top'), 'post_format_icon_size' => 'normal', 'used_on' => array('Module MX1, MX12', 'Block 14, 19, Big grid 5, 7, 8'))); td_api_thumb::add('td_356x364', array('name' => 'td_356x364', 'width' => 356, 'height' => 364, 'crop' => array('center', 'top'), 'post_format_icon_size' => 'normal', 'used_on' => array('Module MX14,', 'Big grid 8'))); td_api_thumb::add('td_533x261', array('name' => 'td_533x261', 'width' => 533, 'height' => 261, 'crop' => array('center', 'top'), 'post_format_icon_size' => 'normal', 'used_on' => array('Module MX11,', 'Big grid 3'))); td_api_thumb::add('td_534x462', array('name' => 'td_534x462', 'width' => 534, 'height' => 462, 'crop' => array('center', 'top'), 'post_format_icon_size' => 'normal', 'used_on' => array('Module MX5,', 'Big grid 1, 3, 4, 6'))); td_api_thumb::add('td_696x0', array('name' => 'td_696x0', 'width' => 696, 'height' => 0, 'crop' => array('center', 'top'), 'post_format_icon_size' => 'normal', 'used_on' => array('Default post template, Post template 2, Post template 11', 'Module 12, 13, 15', 'Smart list style 1, 2, 5, 6'))); td_api_thumb::add('td_696x385', array('name' => 'td_696x385', 'width' => 696, 'height' => 385, 'crop' => array('center', 'top'), 'post_format_icon_size' => 'normal', 'used_on' => array('Module 14, MX8', 'Block 13, 18, 20', 'Slide - 2 columns'))); td_api_thumb::add('td_741x486', array('name' => 'td_741x486', 'width' => 741, 'height' => 486, 'crop' => array('center', 'top'), 'post_format_icon_size' => 'normal', 'used_on' => array('MX9', 'Big grid 2'))); td_api_thumb::add('td_1068x580', array('name' => 'td_1068x580', 'width' => 1068, 'height' => 580, 'crop' => array('center', 'top'), 'post_format_icon_size' => 'normal', 'used_on' => array('Slide - 3 column'))); td_api_thumb::add('td_1068x0', array('name' => 'td_1068x0', 'width' => 1068, 'height' => 0, 'crop' => array('center', 'top'), 'post_format_icon_size' => 'normal', 'used_on' => array('Post template 3, Post template 4, Post template 9, Post template 10', 'Smart list style 1, 2, 5, 6'))); td_api_thumb::add('td_0x420', array('name' => 'td_0x420', 'width' => 0, 'height' => 420, 'crop' => array('center', 'top'), 'post_format_icon_size' => 'normal', 'used_on' => array('tagDiv Image Gallery'))); /** * the headers */ td_api_header_style::add('1', array('text' => '<strong>Style 1 - </strong> Default', 'file' => td_global::$get_template_directory . '/parts/header/header-style-1.php')); td_api_header_style::add('2', array('text' => '<strong>Style 2 - </strong> Top menus', 'file' => td_global::$get_template_directory . '/parts/header/header-style-2.php')); td_api_header_style::add('3', array('text' => '<strong>Style 3 - </strong> Boxed dark menu', 'file' => td_global::$get_template_directory . '/parts/header/header-style-3.php')); td_api_header_style::add('4', array('text' => '<strong>Style 4 - </strong> Boxed dark menu with logo', 'file' => td_global::$get_template_directory . '/parts/header/header-style-4.php')); td_api_header_style::add('5', array('text' => '<strong>Style 5 - </strong> Full dark menu with logo', 'file' => td_global::$get_template_directory . '/parts/header/header-style-5.php')); td_api_header_style::add('6', array('text' => '<strong>Style 6 - </strong> Full dark menu on right with logo', 'file' => td_global::$get_template_directory . '/parts/header/header-style-6.php')); td_api_header_style::add('7', array('text' => '<strong>Style 7 - </strong> Hibryd menu on right with logo', 'file' => td_global::$get_template_directory . '/parts/header/header-style-7.php')); td_api_header_style::add('8', array('text' => '<strong>Style 8 - </strong> Hibryd menu 2', 'file' => td_global::$get_template_directory . '/parts/header/header-style-8.php')); td_api_header_style::add('9', array('text' => '<strong>Style 9 - </strong> Full logo on top', 'file' => td_global::$get_template_directory . '/parts/header/header-style-9.php')); td_api_header_style::add('10', array('text' => '<strong>Style 10 - </strong> Full logo on top + center menu', 'file' => td_global::$get_template_directory . '/parts/header/header-style-10.php')); td_api_header_style::add('11', array('text' => '<strong>Style 11 - </strong> Top menus + bottom full logo', 'file' => td_global::$get_template_directory . '/parts/header/header-style-11.php')); td_api_header_style::add('12', array('text' => '<strong>Style 12 - </strong> Top colored menu with logo', 'file' => td_global::$get_template_directory . '/parts/header/header-style-12.php')); /** * the styles for big grids. This styles will show up in the panel @see td_panel_categories.php and on each big grid block * This has to be before the blocks are added! The grids blocks are made with this */ td_global::$big_grid_styles_list = array('td-grid-style-1' => array('text' => 'Grid style 1'), 'td-grid-style-2' => array('text' => 'Grid style 2'), 'td-grid-style-3' => array('text' => 'Grid style 3'), 'td-grid-style-4' => array('text' => 'Grid style 4'), 'td-grid-style-5' => array('text' => 'Grid style 5')); /** * the blocks */ td_api_block::add('td_block_1', array('map_in_visual_composer' => true, "name" => 'Block 1', "base" => 'td_block_1', "class" => 'td_block_1', "controls" => "full", "category" => 'Blocks', 'icon' => 'icon-pagebuilder-td_block_1', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_1.php', "params" => array_merge(self::get_map_block_general_array(), self::get_map_filter_array(), self::get_map_block_ajax_filter_array(), self::get_map_block_pagination_array()))); td_api_block::add('td_block_2', array('map_in_visual_composer' => true, "name" => 'Block 2', "base" => 'td_block_2', "class" => 'td_block_2', "controls" => "full", "category" => 'Blocks', 'icon' => 'icon-pagebuilder-td_block_2', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_2.php', "params" => array_merge(self::get_map_block_general_array(), self::get_map_filter_array(), self::get_map_block_ajax_filter_array(), self::get_map_block_pagination_array()))); td_api_block::add('td_block_3', array('map_in_visual_composer' => true, "name" => 'Block 3', "base" => 'td_block_3', "class" => 'td_block_3', "controls" => "full", "category" => 'Blocks', 'icon' => 'icon-pagebuilder-td_block_3', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_3.php', "params" => array_merge(self::get_map_block_general_array(), self::get_map_filter_array(), self::get_map_block_ajax_filter_array(), self::get_map_block_pagination_array()))); td_api_block::add('td_block_4', array('map_in_visual_composer' => true, "name" => 'Block 4', "base" => 'td_block_4', "class" => 'td_block_4', "controls" => "full", "category" => 'Blocks', 'icon' => 'icon-pagebuilder-td_block_4', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_4.php', "params" => array_merge(self::get_map_block_general_array(), self::get_map_filter_array(), self::get_map_block_ajax_filter_array(), self::get_map_block_pagination_array()))); td_api_block::add('td_block_5', array('map_in_visual_composer' => true, "name" => 'Block 5', "base" => 'td_block_5', "class" => 'td_block_5', "controls" => "full", "category" => 'Blocks', 'icon' => 'icon-pagebuilder-td_block_5', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_5.php', "params" => array_merge(self::get_map_block_general_array(), self::get_map_filter_array(), self::get_map_block_ajax_filter_array(), self::get_map_block_pagination_array()))); td_api_block::add('td_block_6', array('map_in_visual_composer' => true, "name" => 'Block 6', "base" => 'td_block_6', "class" => 'td_block_6', "controls" => "full", "category" => 'Blocks', 'icon' => 'icon-pagebuilder-td_block_6', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_6.php', "params" => array_merge(self::get_map_block_general_array(), self::get_map_filter_array(), self::get_map_block_ajax_filter_array(), self::get_map_block_pagination_array()))); td_api_block::add('td_block_7', array('map_in_visual_composer' => true, "name" => 'Block 7', "base" => 'td_block_7', "class" => 'td_block_7', "controls" => "full", "category" => 'Blocks', 'icon' => 'icon-pagebuilder-td_block_7', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_7.php', "params" => array_merge(self::get_map_block_general_array(), self::get_map_filter_array(), self::get_map_block_ajax_filter_array(), self::get_map_block_pagination_array()))); td_api_block::add('td_block_8', array('map_in_visual_composer' => true, "name" => 'Block 8', "base" => 'td_block_8', "class" => 'td_block_8', "controls" => "full", "category" => 'Blocks', 'icon' => 'icon-pagebuilder-td_block_8', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_8.php', "params" => array_merge(self::get_map_block_general_array(), self::get_map_filter_array(), self::get_map_block_ajax_filter_array(), self::get_map_block_pagination_array()))); td_api_block::add('td_block_9', array('map_in_visual_composer' => true, "name" => 'Block 9', "base" => 'td_block_9', "class" => 'td_block_9', "controls" => "full", "category" => 'Blocks', 'icon' => 'icon-pagebuilder-td_block_9', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_9.php', "params" => array_merge(self::get_map_block_general_array(), self::get_map_filter_array(), self::get_map_block_ajax_filter_array(), self::get_map_block_pagination_array()))); td_api_block::add('td_block_10', array('map_in_visual_composer' => true, "name" => 'Block 10', "base" => 'td_block_10', "class" => 'td_block_10', "controls" => "full", "category" => 'Blocks', 'icon' => 'icon-pagebuilder-td_block_10', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_10.php', "params" => array_merge(self::get_map_block_general_array(), self::get_map_filter_array(), self::get_map_block_ajax_filter_array(), self::get_map_block_pagination_array()))); td_api_block::add('td_block_11', array('map_in_visual_composer' => true, "name" => 'Block 11', "base" => 'td_block_11', "class" => 'td_block_11', "controls" => "full", "category" => 'Blocks', 'icon' => 'icon-pagebuilder-td_block_11', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_11.php', "params" => array_merge(self::get_map_block_general_array(), self::get_map_filter_array(), self::get_map_block_ajax_filter_array(), self::get_map_block_pagination_array()))); td_api_block::add('td_block_12', array('map_in_visual_composer' => true, "name" => 'Block 12', "base" => 'td_block_12', "class" => 'td_block_12', "controls" => "full", "category" => 'Blocks', 'icon' => 'icon-pagebuilder-td_block_12', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_12.php', "params" => array_merge(self::get_map_block_general_array(), self::get_map_filter_array(), self::get_map_block_ajax_filter_array(), self::get_map_block_pagination_array()))); td_api_block::add('td_block_13', array('map_in_visual_composer' => true, "name" => 'Block 13', "base" => 'td_block_13', "class" => 'td_block_13', "controls" => "full", "category" => 'Blocks', 'icon' => 'icon-pagebuilder-td_block_13', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_13.php', "params" => array_merge(self::get_map_block_general_array(), self::get_map_filter_array(), self::get_map_block_ajax_filter_array(), self::get_map_block_pagination_array()))); td_api_block::add('td_block_14', array('map_in_visual_composer' => true, "name" => 'Block 14', "base" => 'td_block_14', "class" => 'td_block_14', "controls" => "full", "category" => 'Blocks', 'icon' => 'icon-pagebuilder-td_block_14', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_14.php', "params" => array_merge(self::get_map_block_general_array(), self::get_map_filter_array(), self::get_map_block_ajax_filter_array(), self::get_map_block_pagination_array()))); td_api_block::add('td_block_15', array('map_in_visual_composer' => true, "name" => 'Block 15', "base" => 'td_block_15', "class" => 'td_block_15', "controls" => "full", "category" => 'Blocks', 'icon' => 'icon-pagebuilder-td_block_15', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_15.php', "params" => array_merge(self::get_map_block_general_array(), self::get_map_filter_array(), self::get_map_block_ajax_filter_array(), self::get_map_block_pagination_array()))); td_api_block::add('td_block_16', array('map_in_visual_composer' => true, "name" => 'Block 16', "base" => 'td_block_16', "class" => 'td_block_16', "controls" => "full", "category" => 'Blocks', 'icon' => 'icon-pagebuilder-td_block_16', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_16.php', "params" => array_merge(self::get_map_block_general_array(), self::get_map_filter_array(), self::get_map_block_ajax_filter_array(), self::get_map_block_pagination_array()))); td_api_block::add('td_block_17', array('map_in_visual_composer' => true, "name" => 'Block 17', "base" => 'td_block_17', "class" => 'td_block_17', "controls" => "full", "category" => 'Blocks', 'icon' => 'icon-pagebuilder-td_block_17', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_17.php', "params" => array_merge(self::get_map_block_general_array(), self::get_map_filter_array(), self::get_map_block_ajax_filter_array(), self::get_map_block_pagination_array()))); td_api_block::add('td_block_18', array('map_in_visual_composer' => true, "name" => 'Block 18', "base" => 'td_block_18', "class" => 'td_block_18', "controls" => "full", "category" => 'Blocks', 'icon' => 'icon-pagebuilder-td_block_18', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_18.php', "params" => array_merge(self::get_map_block_general_array(), self::get_map_filter_array(), self::get_map_block_ajax_filter_array(), self::get_map_block_pagination_array()))); td_api_block::add('td_block_19', array('map_in_visual_composer' => true, "name" => 'Block 19', "base" => 'td_block_19', "class" => 'td_block_19', "controls" => "full", "category" => 'Blocks', 'icon' => 'icon-pagebuilder-td_block_19', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_19.php', "params" => array_merge(self::get_map_block_general_array(), self::get_map_filter_array(), self::get_map_block_ajax_filter_array(), self::get_map_block_pagination_array()))); td_api_block::add('td_block_20', array('map_in_visual_composer' => true, "name" => 'Block 20', "base" => 'td_block_20', "class" => 'td_block_20', "controls" => "full", "category" => 'Blocks', 'icon' => 'icon-pagebuilder-td_block_20', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_20.php', "params" => array_merge(self::get_map_block_general_array(), self::get_map_filter_array(), self::get_map_block_ajax_filter_array(), self::get_map_block_pagination_array()))); td_api_block::add('td_block_21', array('map_in_visual_composer' => true, "name" => 'Block 21', "base" => 'td_block_21', "class" => 'td_block_21', "controls" => "full", "category" => 'Blocks', 'icon' => 'icon-pagebuilder-td_block_21', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_21.php', "params" => array_merge(self::get_map_block_general_array(), self::get_map_filter_array(), self::get_map_block_ajax_filter_array(), self::get_map_block_pagination_array()))); td_api_block::add('td_block_big_grid_1', array('map_in_visual_composer' => true, "name" => 'Big Grid 1', "base" => 'td_block_big_grid_1', "class" => 'td_block_big_grid_1', "controls" => "full", "category" => 'Blocks', 'icon' => 'icon-pagebuilder-td_block_big_grid_1', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_big_grid_1.php', "params" => self::td_block_big_grid_params())); td_api_block::add('td_block_big_grid_2', array('map_in_visual_composer' => true, "name" => 'Big Grid 2', "base" => 'td_block_big_grid_2', "class" => 'td_block_big_grid_2', "controls" => "full", "category" => 'Blocks', 'icon' => 'icon-pagebuilder-td_block_big_grid_2', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_big_grid_2.php', "params" => self::td_block_big_grid_params())); td_api_block::add('td_block_big_grid_3', array('map_in_visual_composer' => true, "name" => 'Big Grid 3', "base" => 'td_block_big_grid_3', "class" => 'td_block_big_grid_3', "controls" => "full", "category" => 'Blocks', 'icon' => 'icon-pagebuilder-td_block_big_grid_3', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_big_grid_3.php', "params" => self::td_block_big_grid_params())); td_api_block::add('td_block_big_grid_4', array('map_in_visual_composer' => true, "name" => 'Big Grid 4', "base" => 'td_block_big_grid_4', "class" => 'td_block_big_grid_4', "controls" => "full", "category" => 'Blocks', 'icon' => 'icon-pagebuilder-td_block_big_grid_4', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_big_grid_4.php', "params" => self::td_block_big_grid_params())); td_api_block::add('td_block_big_grid_5', array('map_in_visual_composer' => true, "name" => 'Big Grid 5', "base" => 'td_block_big_grid_5', "class" => 'td_block_big_grid_5', "controls" => "full", "category" => 'Blocks', 'icon' => 'icon-pagebuilder-td_block_big_grid_5', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_big_grid_5.php', "params" => self::td_block_big_grid_params())); td_api_block::add('td_block_big_grid_6', array('map_in_visual_composer' => true, "name" => 'Big Grid 6', "base" => 'td_block_big_grid_6', "class" => 'td_block_big_grid_6', "controls" => "full", "category" => 'Blocks', 'icon' => 'icon-pagebuilder-td_block_big_grid_6', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_big_grid_6.php', "params" => self::td_block_big_grid_params())); td_api_block::add('td_block_big_grid_7', array('map_in_visual_composer' => true, "name" => 'Big Grid 7', "base" => 'td_block_big_grid_7', "class" => 'td_block_big_grid_7', "controls" => "full", "category" => 'Blocks', 'icon' => 'icon-pagebuilder-td_block_big_grid_7', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_big_grid_7.php', "params" => self::td_block_big_grid_params())); td_api_block::add('td_block_big_grid_8', array('map_in_visual_composer' => true, "name" => 'Big Grid 8', "base" => 'td_block_big_grid_8', "class" => 'td_block_big_grid_8', "controls" => "full", "category" => 'Blocks', 'icon' => 'icon-pagebuilder-td_block_big_grid_8', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_big_grid_8.php', "params" => self::td_block_big_grid_params())); td_api_block::add('td_block_big_grid_slide', array('map_in_visual_composer' => true, "name" => 'Big Grid Slide', "base" => 'td_block_big_grid_slide', "class" => 'td_block_big_grid_slide', "controls" => "full", "category" => 'Blocks', 'icon' => 'icon-pagebuilder-td_block_big_grid_slide', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_big_grid_slide.php', "params" => self::td_block_big_grid_slide_params())); td_api_block::add('td_block_trending_now', array('map_in_visual_composer' => true, "name" => 'News ticker', "base" => 'td_block_trending_now', "class" => 'td_block_trending_now', "controls" => "full", "category" => 'Blocks', 'icon' => 'icon-pagebuilder-td_block_trending_now', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_trending_now.php', "params" => self::td_block_trending_now_params())); td_api_block::add('td_block_video_youtube', array('map_in_visual_composer' => true, "name" => 'Video Playlist', "base" => "td_block_video_youtube", "class" => "td_block_video_playlist_youtube", "controls" => "full", "category" => 'Blocks', 'icon' => 'icon-pagebuilder-td-youtube', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_video_youtube.php', "params" => array(array("param_name" => "playlist_title", "type" => "textfield", "value" => "", "heading" => "Optional - custom title for this block:", "description" => "", "holder" => "div", "class" => ""), array("param_name" => "playlist_yt", "type" => "textfield", "value" => "", "heading" => "List of youtube id's separated by comma (ex: NRuE38Bl5Mo, 1ZgoluYjuZM, 0K-0vkFfUmY):", "description" => "", "holder" => "div", "class" => ""), array("param_name" => "playlist_auto_play", "type" => "dropdown", "value" => array('OFF' => '0', 'ON' => '1'), "heading" => "Autoplay ON / OFF:", "description" => "Autoplay does not work on mobile devices (android, windows phone, iOS)", "holder" => "div", "class" => "")))); td_api_block::add('td_block_video_vimeo', array('map_in_visual_composer' => true, "name" => 'Video Playlist', "base" => "td_block_video_vimeo", "class" => "td_block_video_playlist_vimeo", "controls" => "full", "category" => 'Blocks', 'icon' => 'icon-pagebuilder-td-vimeo', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_video_vimeo.php', "params" => array(array("param_name" => "playlist_title", "type" => "textfield", "value" => "", "heading" => "Optional - custom title for this block:", "description" => "", "holder" => "div", "class" => ""), array("param_name" => "playlist_v", "type" => "textfield", "value" => "", "heading" => "List of vimeo id's separated by comma (ex: 100888579, 84062802, 57863017):", "description" => "", "holder" => "div", "class" => ""), array("param_name" => "playlist_auto_play", "type" => "dropdown", "value" => array('OFF' => '0', 'ON' => '1'), "heading" => "Autoplay ON / OFF:", "description" => "", "holder" => "div", "class" => "")))); td_api_block::add('td_block_ad_box', array('map_in_visual_composer' => true, "name" => 'Ad box', "base" => 'td_block_ad_box', "class" => "", "controls" => "full", "category" => 'Blocks', 'icon' => 'icon-pagebuilder-ads', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_ad_box.php', "params" => array(array("param_name" => "spot_id", "type" => "dropdown", "value" => array('sidebar' => 'sidebar', 'content_inline' => 'content_inline', 'content_top' => 'content_top', 'content_bottom' => 'content_bottom', 'header' => 'header', 'custom_ad_1' => 'custom_ad_1', 'custom_ad_2' => 'custom_ad_2', 'custom_ad_3' => 'custom_ad_3', 'custom_ad_4' => 'custom_ad_4', 'custom_ad_5' => 'custom_ad_5'), "heading" => 'Use adspot :', "description" => "", "holder" => "div", "class" => ""), array("param_name" => "spot_title", "type" => "textfield", "value" => "", "heading" => 'Ad title:', "description" => "Optional - a title for the Ad, like - Advertisement - if you leave it blank the block will not have a title", "holder" => "div", "class" => "")))); td_api_block::add('td_block_authors', array('map_in_visual_composer' => true, "name" => 'Authors box', "base" => "td_block_authors", "class" => "", "controls" => "full", "category" => 'Blocks', 'icon' => 'icon-pagebuilder-td_block_authors', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_authors.php', "params" => array(array("param_name" => "custom_title", "type" => "textfield", "value" => 'OUR AUTHORS', "heading" => "Block title", "description" => "", "holder" => "div", "class" => ""), array("param_name" => "custom_url", "type" => "textfield", "value" => "", "heading" => 'Block title - custom url', "description" => "Optional - (when the module title is clicked)", "holder" => "div", "class" => ""), array("param_name" => "sort", "type" => "dropdown", "value" => array('- Sort by name -' => '', 'Sort by post count' => 'post_count'), "heading" => 'Sort authors by:', "description" => "", "holder" => "div", "class" => ""), array("param_name" => "exclude", "type" => "textfield", "value" => '', "heading" => "Exclude authors id (, separated)", "description" => "", "holder" => "div", "class" => ""), array("param_name" => "include", "type" => "textfield", "value" => '', "heading" => "Include authors id (, separated) - do not use with exclude", "description" => "", "holder" => "div", "class" => ""), array("type" => "colorpicker", "holder" => "div", "class" => "", "heading" => 'Title text color', "param_name" => "header_text_color", "value" => '', "description" => 'Optional - Choose a custom title text color for this block'), array("type" => "colorpicker", "holder" => "div", "class" => "", "heading" => 'Title background color', "param_name" => "header_color", "value" => '', "description" => 'Optional - Choose a custom title background color for this block')))); td_api_block::add('td_block_homepage_full_1', array('map_in_visual_composer' => true, "name" => 'Homepage post', "base" => 'td_block_homepage_full_1', "class" => 'td_block_homepage_full_1', "controls" => "full", "category" => 'Blocks', 'icon' => 'icon-pagebuilder-td_block_homepage_full_1', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_homepage_full_1.php', "params" => self::td_homepage_full_1_params())); td_api_block::add('td_block_popular_categories', array('map_in_visual_composer' => true, "name" => 'Popular category', "base" => "td_block_popular_categories", "class" => "td_block_popular_categories", "controls" => "full", "category" => 'Blocks', 'icon' => 'icon-pagebuilder-popular_categories', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_popular_categories.php', "params" => array(array("param_name" => "custom_title", "type" => "textfield", "value" => "POPULAR CATEGORIES", "heading" => 'Optional - custom title for this block:', "description" => "", "holder" => "div", "class" => ""), array("param_name" => "custom_url", "type" => "textfield", "value" => "", "heading" => 'Optional - custom url for this block (when the module title is clicked):', "description" => "", "holder" => "div", "class" => ""), array("type" => "colorpicker", "holder" => "div", "class" => "", "heading" => 'Title text color', "param_name" => "header_text_color", "value" => '', "description" => 'Optional - Choose a custom title text color for this block'), array("type" => "colorpicker", "holder" => "div", "class" => "", "heading" => 'Title background color', "param_name" => "header_color", "value" => '', "description" => 'Optional - Choose a custom title background color for this block'), array("param_name" => "limit", "type" => "textfield", "value" => "6", "heading" => 'Limit the number of categories shown:', "description" => "", "holder" => "div", "class" => "")))); td_api_block::add('td_block_slide', array('map_in_visual_composer' => true, "name" => 'Slide', "base" => "td_block_slide", "class" => "td_block_slide", "controls" => "full", "category" => 'Blocks', 'icon' => 'icon-pagebuilder-slide', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_slide.php', "params" => array_merge(self::td_slide_params(), self::get_map_block_ajax_filter_array()))); td_api_block::add('td_block_text_with_title', array('map_in_visual_composer' => true, "name" => 'Text with title', "base" => "td_block_text_with_title", "class" => "", "controls" => "full", "category" => 'Blocks', 'icon' => 'icon-pagebuilder-title', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_text_with_title.php', "params" => array(array("param_name" => "custom_title", "type" => "textfield", "value" => '', "heading" => "Block title", "description" => "", "holder" => "div", "class" => ""), array("param_name" => "content", "type" => "textarea_html", "holder" => "div", "class" => "", "heading" => 'Text', "value" => "", "description" => 'Enter your content.'), array("type" => "colorpicker", "holder" => "div", "class" => "", "heading" => 'Title text color', "param_name" => "header_text_color", "value" => '', "description" => 'Optional - Choose a custom title text color for this block'), array("type" => "colorpicker", "holder" => "div", "class" => "", "heading" => 'Title background color', "param_name" => "header_color", "value" => '', "description" => 'Optional - Choose a custom title background color for this block')))); td_api_block::add('td_block_related_posts', array('map_in_visual_composer' => false, 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_related_posts.php')); td_api_block::add('td_block_mega_menu', array('map_in_visual_composer' => false, 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_mega_menu.php', 'render_atts' => array('show_child_cat' => 30))); /** * block templates */ td_api_block_template::add('td_block_template_1', array('file' => td_global::$get_template_directory . '/includes/block_templates/td_block_template_1.php')); /** * category templates */ td_api_category_template::add('td_category_template_1', array('file' => td_global::$get_template_directory . '/includes/category_templates/td_category_template_1.php', 'img' => td_global::$get_template_directory_uri . '/images/panel/category_templates/icon-category-1.png', 'text' => 'Style 1')); td_api_category_template::add('td_category_template_2', array('file' => td_global::$get_template_directory . '/includes/category_templates/td_category_template_2.php', 'img' => td_global::$get_template_directory_uri . '/images/panel/category_templates/icon-category-2.png', 'text' => 'Style 2')); td_api_category_template::add('td_category_template_3', array('file' => td_global::$get_template_directory . '/includes/category_templates/td_category_template_3.php', 'img' => td_global::$get_template_directory_uri . '/images/panel/category_templates/icon-category-3.png', 'text' => 'Style 3')); td_api_category_template::add('td_category_template_4', array('file' => td_global::$get_template_directory . '/includes/category_templates/td_category_template_4.php', 'img' => td_global::$get_template_directory_uri . '/images/panel/category_templates/icon-category-4.png', 'text' => 'Style 4')); td_api_category_template::add('td_category_template_5', array('file' => td_global::$get_template_directory . '/includes/category_templates/td_category_template_5.php', 'img' => td_global::$get_template_directory_uri . '/images/panel/category_templates/icon-category-5.png', 'text' => 'Style 5')); td_api_category_template::add('td_category_template_6', array('file' => td_global::$get_template_directory . '/includes/category_templates/td_category_template_6.php', 'img' => td_global::$get_template_directory_uri . '/images/panel/category_templates/icon-category-6.png', 'text' => 'Style 6')); td_api_category_template::add('td_category_template_7', array('file' => td_global::$get_template_directory . '/includes/category_templates/td_category_template_7.php', 'img' => td_global::$get_template_directory_uri . '/images/panel/category_templates/icon-category-7.png', 'text' => 'Style 7')); td_api_category_template::add('td_category_template_8', array('file' => td_global::$get_template_directory . '/includes/category_templates/td_category_template_8.php', 'img' => td_global::$get_template_directory_uri . '/images/panel/category_templates/icon-category-8.png', 'text' => 'Style 8')); /** * category top posts styles */ td_api_category_top_posts_style::add('td_category_top_posts_style_1', array('file' => td_global::$get_template_directory . '/includes/category_top_posts_styles/td_category_top_posts_style_1.php', 'posts_shown_in_the_loop' => 5, 'img' => td_global::$get_template_directory_uri . '/images/panel/category_templates/icon-category-top-1.png', 'text' => 'Grid 1', 'td_block_name' => 'td_block_big_grid_1')); td_api_category_top_posts_style::add('td_category_top_posts_style_2', array('file' => td_global::$get_template_directory . '/includes/category_top_posts_styles/td_category_top_posts_style_2.php', 'posts_shown_in_the_loop' => 4, 'img' => td_global::$get_template_directory_uri . '/images/panel/category_templates/icon-category-top-2.png', 'text' => 'Grid 2', 'td_block_name' => 'td_block_big_grid_2')); td_api_category_top_posts_style::add('td_category_top_posts_style_3', array('file' => td_global::$get_template_directory . '/includes/category_top_posts_styles/td_category_top_posts_style_3.php', 'posts_shown_in_the_loop' => 4, 'img' => td_global::$get_template_directory_uri . '/images/panel/category_templates/icon-category-top-3.png', 'text' => 'Grid 3', 'td_block_name' => 'td_block_big_grid_3')); td_api_category_top_posts_style::add('td_category_top_posts_style_4', array('file' => td_global::$get_template_directory . '/includes/category_top_posts_styles/td_category_top_posts_style_4.php', 'posts_shown_in_the_loop' => 2, 'img' => td_global::$get_template_directory_uri . '/images/panel/category_templates/icon-category-top-4.png', 'text' => 'Grid 4', 'td_block_name' => 'td_block_big_grid_4')); td_api_category_top_posts_style::add('td_category_top_posts_style_5', array('file' => td_global::$get_template_directory . '/includes/category_top_posts_styles/td_category_top_posts_style_5.php', 'posts_shown_in_the_loop' => 3, 'img' => td_global::$get_template_directory_uri . '/images/panel/category_templates/icon-category-top-5.png', 'text' => 'Grid 5', 'td_block_name' => 'td_block_big_grid_5')); td_api_category_top_posts_style::add('td_category_top_posts_style_6', array('file' => td_global::$get_template_directory . '/includes/category_top_posts_styles/td_category_top_posts_style_6.php', 'posts_shown_in_the_loop' => 7, 'img' => td_global::$get_template_directory_uri . '/images/panel/category_templates/icon-category-top-6.png', 'text' => 'Grid 6', 'td_block_name' => 'td_block_big_grid_6')); td_api_category_top_posts_style::add('td_category_top_posts_style_7', array('file' => td_global::$get_template_directory . '/includes/category_top_posts_styles/td_category_top_posts_style_7.php', 'posts_shown_in_the_loop' => 7, 'img' => td_global::$get_template_directory_uri . '/images/panel/category_templates/icon-category-top-7.png', 'text' => 'Grid 7', 'td_block_name' => 'td_block_big_grid_7')); td_api_category_top_posts_style::add('td_category_top_posts_style_8', array('file' => td_global::$get_template_directory . '/includes/category_top_posts_styles/td_category_top_posts_style_8.php', 'posts_shown_in_the_loop' => 7, 'img' => td_global::$get_template_directory_uri . '/images/panel/category_templates/icon-category-top-8.png', 'text' => 'Grid 8', 'td_block_name' => 'td_block_big_grid_8')); td_api_category_top_posts_style::add('td_category_top_posts_style_disable', array('file' => td_global::$get_template_directory . '/includes/category_top_posts_styles/td_category_top_posts_style_disable.php', 'posts_shown_in_the_loop' => 0, 'img' => td_global::$get_template_directory_uri . '/images/panel/category_templates/icon-category-top-disable.png', 'text' => 'Disable', 'td_block_name' => '')); /** * the td_api_top_bar_template */ td_api_top_bar_template::add('td_top_bar_template_1', array('img' => td_global::$get_template_directory_uri . '/images/panel/top_bar_templates/icon-top-bar-1.png', 'file' => td_global::$get_template_directory . '/parts/header/td_top_bar_template_1.php')); td_api_top_bar_template::add('td_top_bar_template_2', array('img' => td_global::$get_template_directory_uri . '/images/panel/top_bar_templates/icon-top-bar-2.png', 'file' => td_global::$get_template_directory . '/parts/header/td_top_bar_template_2.php')); td_api_top_bar_template::add('td_top_bar_template_3', array('img' => td_global::$get_template_directory_uri . '/images/panel/top_bar_templates/icon-top-bar-3.png', 'file' => td_global::$get_template_directory . '/parts/header/td_top_bar_template_3.php')); td_api_top_bar_template::add('td_top_bar_template_4', array('img' => td_global::$get_template_directory_uri . '/images/panel/top_bar_templates/icon-top-bar-4.png', 'file' => td_global::$get_template_directory . '/parts/header/td_top_bar_template_4.php')); /** * the td_api_footer */ td_api_footer_template::add('td_footer_template_1', array('img' => td_global::$get_template_directory_uri . '/images/panel/footer_templates/icon-footer-1.png', 'file' => td_global::$get_template_directory . '/parts/footer/td_footer_template_1.php', 'text' => 'Style 1')); td_api_footer_template::add('td_footer_template_2', array('img' => td_global::$get_template_directory_uri . '/images/panel/footer_templates/icon-footer-2.png', 'file' => td_global::$get_template_directory . '/parts/footer/td_footer_template_2.php', 'text' => 'Style 2')); td_api_footer_template::add('td_footer_template_3', array('img' => td_global::$get_template_directory_uri . '/images/panel/footer_templates/icon-footer-3.png', 'file' => td_global::$get_template_directory . '/parts/footer/td_footer_template_3.php', 'text' => 'Style 3')); td_api_footer_template::add('td_footer_template_4', array('img' => td_global::$get_template_directory_uri . '/images/panel/footer_templates/icon-footer-4.png', 'file' => td_global::$get_template_directory . '/parts/footer/td_footer_template_4.php', 'text' => 'Style 4')); td_api_footer_template::add('td_footer_template_5', array('img' => td_global::$get_template_directory_uri . '/images/panel/footer_templates/icon-footer-5.png', 'file' => td_global::$get_template_directory . '/parts/footer/td_footer_template_5.php', 'text' => 'Style 5')); td_api_footer_template::add('td_footer_template_6', array('img' => td_global::$get_template_directory_uri . '/images/panel/footer_templates/icon-footer-6.png', 'file' => td_global::$get_template_directory . '/parts/footer/td_footer_template_6.php', 'text' => 'Style 6')); td_api_footer_template::add('td_footer_template_7', array('img' => td_global::$get_template_directory_uri . '/images/panel/footer_templates/icon-footer-7.png', 'file' => td_global::$get_template_directory . '/parts/footer/td_footer_template_7.php', 'text' => 'Style 7')); td_api_footer_template::add('td_footer_template_8', array('img' => td_global::$get_template_directory_uri . '/images/panel/footer_templates/icon-footer-8.png', 'file' => td_global::$get_template_directory . '/parts/footer/td_footer_template_8.php', 'text' => 'Style 8')); td_api_footer_template::add('td_footer_template_9', array('img' => td_global::$get_template_directory_uri . '/images/panel/footer_templates/icon-footer-9.png', 'file' => td_global::$get_template_directory . '/parts/footer/td_footer_template_9.php', 'text' => 'Style 9')); td_api_footer_template::add('td_footer_template_10', array('img' => td_global::$get_template_directory_uri . '/images/panel/footer_templates/icon-footer-10.png', 'file' => td_global::$get_template_directory . '/parts/footer/td_footer_template_10.php', 'text' => 'Style 10')); td_api_footer_template::add('td_footer_template_11', array('img' => td_global::$get_template_directory_uri . '/images/panel/footer_templates/icon-footer-11.png', 'file' => td_global::$get_template_directory . '/parts/footer/td_footer_template_11.php', 'text' => 'Style 11')); td_api_footer_template::add('td_footer_template_12', array('img' => td_global::$get_template_directory_uri . '/images/panel/footer_templates/icon-footer-12.png', 'file' => td_global::$get_template_directory . '/parts/footer/td_footer_template_12.php', 'text' => 'Style 12')); /** * set the custom css fields for the panel @see td_panel_custom_css.php * and also for the wp_footer hook @see td_bottom_code() */ td_global::$theme_panel_custom_css_fields_list = array('tds_responsive_css_desktop' => array('text' => 'DESKTOP', 'description' => '1141px +', 'media_query' => '@media (min-width: 1141px)', 'img' => td_global::$get_template_directory_uri . '/includes/wp_booster/wp-admin/images/panel/resp-desktop.png'), 'tds_responsive_css_ipad_landscape' => array('text' => 'IPAD LANDSCAPE', 'description' => '1019px - 1140px', 'media_query' => '@media (min-width: 1019px) and (max-width: 1140px)', 'img' => td_global::$get_template_directory_uri . '/includes/wp_booster/wp-admin/images/panel/resp-ipado.png'), 'tds_responsive_css_ipad_portrait' => array('text' => 'IPAD PORTRAIT', 'description' => '768px - 1018px', 'media_query' => '@media (min-width: 768px) and (max-width: 1018px)', 'img' => td_global::$get_template_directory_uri . '/includes/wp_booster/wp-admin/images/panel/resp-ipadv.png'), 'tds_responsive_css_phone' => array('text' => 'PHONES', 'description' => '0 - 767px', 'media_query' => '@media (max-width: 767px)', 'img' => td_global::$get_template_directory_uri . '/includes/wp_booster/wp-admin/images/panel/resp-phone.png')); /** * The typography settings for the panel and css compiler */ td_global::$typography_settings_list = array('Header' => array('top_menu' => array('text' => 'Top Menu', 'type' => 'default'), 'top_sub_menu' => array('text' => 'Top Sub-Menu', 'type' => 'default'), 'main_menu' => array('text' => 'Main Menu', 'type' => 'default'), 'main_sub_menu' => array('text' => 'Main Sub-Menu', 'type' => 'default'), 'mega_menu' => array('text' => 'Mega Menu', 'type' => 'default'), 'mega_menu_categ' => array('text' => 'Mega Menu Sub-Categories', 'type' => 'default'), 'mobile_menu' => array('text' => 'Mobile Menu', 'type' => 'default'), 'mobile_sub_menu' => array('text' => 'Mobile Sub-Menu', 'type' => 'default')), 'Modules and Blocks General' => array('blocks_title' => array('text' => 'Blocks/Widgets Title', 'type' => 'default'), 'blocks_author' => array('text' => 'Author', 'type' => 'default'), 'blocks_date' => array('text' => 'Date', 'type' => 'default'), 'blocks_comment' => array('text' => 'Comment', 'type' => 'default'), 'blocks_category' => array('text' => 'Category tag', 'type' => 'default'), 'blocks_filter' => array('text' => 'Filter dropdown', 'type' => 'default'), 'blocks_excerpt' => array('text' => 'Excerpt', 'type' => 'default')), 'Modules and Blocks - Article Title' => array('modules_general' => array('text' => 'General font', 'type' => 'general_setting'), 'module_1' => array('text' => 'Module 1', 'type' => 'default'), 'module_2' => array('text' => 'Module 2', 'type' => 'default'), 'module_3' => array('text' => 'Module 3', 'type' => 'default'), 'module_4' => array('text' => 'Module 4', 'type' => 'default'), 'module_5' => array('text' => 'Module 5', 'type' => 'default'), 'module_6' => array('text' => 'Module 6', 'type' => 'default'), 'module_7' => array('text' => 'Module 7', 'type' => 'default'), 'module_8' => array('text' => 'Module 8', 'type' => 'default'), 'module_9' => array('text' => 'Module 9', 'type' => 'default'), 'module_10' => array('text' => 'Module 10', 'type' => 'default'), 'module_11' => array('text' => 'Module 11', 'type' => 'default'), 'module_12' => array('text' => 'Module 12', 'type' => 'default'), 'module_13' => array('text' => 'Module 13', 'type' => 'default'), 'module_14' => array('text' => 'Module 14', 'type' => 'default'), 'module_15' => array('text' => 'Module 15', 'type' => 'default'), 'module_16' => array('text' => 'Module 16', 'type' => 'default')), 'Modules MX and Other Blocks - Article Title' => array('other_modules_general' => array('text' => 'General font', 'type' => 'general_setting'), 'module_mx1' => array('text' => 'Module MX1', 'type' => 'default'), 'module_mx2' => array('text' => 'Module MX2', 'type' => 'default'), 'module_mx3' => array('text' => 'Module MX3', 'type' => 'default'), 'module_mx4' => array('text' => 'Module MX4', 'type' => 'default'), 'module_mx7' => array('text' => 'Module MX7', 'type' => 'default'), 'module_mx8' => array('text' => 'Module MX8', 'type' => 'default'), 'news_ticker' => array('text' => 'News Ticker', 'type' => 'default'), 'slider_1columns' => array('text' => 'Slider on 1 column', 'type' => 'default'), 'slider_2columns' => array('text' => 'Slider on 2 columns', 'type' => 'default'), 'slider_3columns' => array('text' => 'Slider on 3 columns', 'type' => 'default'), 'big_grid_tiny' => array('text' => 'Big grid - Tiny img', 'type' => 'default'), 'big_grid_small' => array('text' => 'Big grid - Small img', 'type' => 'default'), 'big_grid_medium' => array('text' => 'Big grid - Medium img', 'type' => 'default'), 'big_grid_big' => array('text' => 'Big grid - Big img', 'type' => 'default'), 'homepage_post' => array('text' => 'Homepage post', 'type' => 'default')), 'Post title' => array('post_general' => array('text' => 'General font', 'type' => 'general_setting'), 'post_title' => array('text' => 'Default template', 'type' => 'default'), 'post_title_style1' => array('text' => 'Style 1 template', 'type' => 'default'), 'post_title_style2' => array('text' => 'Style 2 template', 'type' => 'default'), 'post_title_style3' => array('text' => 'Style 3 template', 'type' => 'default'), 'post_title_style4' => array('text' => 'Style 4 template', 'type' => 'default'), 'post_title_style5' => array('text' => 'Style 5 template', 'type' => 'default'), 'post_title_style6' => array('text' => 'Style 6 template', 'type' => 'default'), 'post_title_style7' => array('text' => 'Style 7 template', 'type' => 'default'), 'post_title_style8' => array('text' => 'Style 8 template', 'type' => 'default'), 'post_title_style9' => array('text' => 'Style 9 template', 'type' => 'default'), 'post_title_style10' => array('text' => 'Style 10 template', 'type' => 'default'), 'post_title_style11' => array('text' => 'Style 11 template', 'type' => 'default')), 'Post content' => array('post_content' => array('text' => 'Post Content', 'type' => 'default'), 'post_blockquote' => array('text' => 'Default Blockquote', 'type' => 'default'), 'post_box_quote' => array('text' => 'Box Quote', 'type' => 'default'), 'post_pull_quote' => array('text' => 'Pull Quote', 'type' => 'default'), 'post_lists' => array('text' => 'Lists', 'type' => 'default'), 'post_h1' => array('text' => 'H1', 'type' => 'default'), 'post_h2' => array('text' => 'H2', 'type' => 'default'), 'post_h3' => array('text' => 'H3', 'type' => 'default'), 'post_h4' => array('text' => 'H4', 'type' => 'default'), 'post_h5' => array('text' => 'H5', 'type' => 'default'), 'post_h6' => array('text' => 'H6', 'type' => 'default')), 'Post elements' => array('post_category' => array('text' => 'Category tag', 'type' => 'default'), 'post_author' => array('text' => 'Author', 'type' => 'default'), 'post_date' => array('text' => 'Date', 'type' => 'default'), 'post_comment' => array('text' => 'Views and Comments', 'type' => 'default'), 'via_source_tag' => array('text' => 'Via/Source/Tags', 'type' => 'default'), 'post_next_prev_text' => array('text' => 'Next/Prev Text', 'type' => 'default'), 'post_next_prev' => array('text' => 'Next/Prev Post Title', 'type' => 'default'), 'box_author_name' => array('text' => 'Box Author Name', 'type' => 'default'), 'box_author_url' => array('text' => 'Box Author URL', 'type' => 'default'), 'box_author_description' => array('text' => 'Box Author Description', 'type' => 'default'), 'post_related' => array('text' => 'Related Article Title', 'type' => 'default'), 'post_share' => array('text' => 'Share Text', 'type' => 'default'), 'post_image_caption' => array('text' => 'Image caption', 'type' => 'default'), 'post_subtitle_small' => array('text' => 'Subtitle post style Default, 1, 4, 5, 9, 10, 11', 'type' => 'default'), 'post_subtitle_large' => array('text' => 'Subtitle post style 2, 3, 6, 7, 8', 'type' => 'default')), 'Pages' => array('page_title' => array('text' => 'Page title', 'type' => 'default'), 'page_content' => array('text' => 'Page content', 'type' => 'default'), 'page_h1' => array('text' => 'H1', 'type' => 'default'), 'page_h2' => array('text' => 'H2', 'type' => 'default'), 'page_h3' => array('text' => 'H3', 'type' => 'default'), 'page_h4' => array('text' => 'H4', 'type' => 'default'), 'page_h5' => array('text' => 'H5', 'type' => 'default'), 'page_h6' => array('text' => 'H6', 'type' => 'default')), 'Footer' => array('footer_text_about' => array('text' => 'Text under logo', 'type' => 'default'), 'footer_copyright_text' => array('text' => 'Copyright text', 'type' => 'default'), 'footer_menu_text' => array('text' => 'Footer menu', 'type' => 'default')), 'Other' => array('breadcrumb' => array('text' => 'Breadcrumb', 'type' => 'default'), 'category_tag' => array('text' => 'Sub-Category tags from Category pages', 'type' => 'default'), 'news_ticker_title' => array('text' => 'News Ticker title', 'type' => 'default'), 'pagination' => array('text' => 'Pagination', 'type' => 'default'), 'dropcap' => array('text' => 'Dropcap', 'type' => 'default'), 'default_widgets' => array('text' => 'Default Widgets', 'type' => 'default'), 'default_buttons' => array('text' => 'Default Buttons', 'type' => 'default'), 'woocommerce_products' => array('text' => 'Woocommerce products titles', 'type' => 'default'), 'woocommerce_product_title' => array('text' => 'Woocommerce product title on product page', 'type' => 'default')), 'Body' => array('body_text' => array('text' => 'Body - General font', 'type' => 'default')), 'bbPress - Forum' => array('bbpress_header' => array('text' => 'Header', 'type' => 'default'), 'bbpress_titles' => array('text' => 'Forums and Topics Titles', 'type' => 'default'), 'bbpress_subcategories' => array('text' => 'Subcategories Titles', 'type' => 'default'), 'bbpress_description' => array('text' => 'Categories Description', 'type' => 'default'), 'bbpress_author' => array('text' => 'Author name', 'type' => 'default'), 'bbpress_replies' => array('text' => 'Replies content', 'type' => 'default'), 'bbpress_notices' => array('text' => 'Notices/Messages', 'type' => 'default'), 'bbpress_pagination' => array('text' => 'Pagination text', 'type' => 'default'), 'bbpress_topic' => array('text' => 'Topic details', 'type' => 'default'))); // end td_global::$typography_settings_list /** * the default fonts used by the theme. For a list of fonts ids @see td_fonts::$font_names_google_list */ td_global::$default_google_fonts_list = array('438' => array('css_style_id' => 'google_font_open_sans', 'url' => td_global::$http_or_https . '://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,400,600,700'), '521' => array('css_style_id' => 'google_font_roboto', 'url' => td_global::$http_or_https . '://fonts.googleapis.com/css?family=Roboto:500,400italic,700,500italic,400')); if (is_admin()) { /* * the list with custom texts of the theme */ td_global::$td_wp_admin_text_list = array('text_featured_video' => ' <div class="td-wpa-info">Paste a link from Vimeo or Youtube, it will be embedded in the post and the thumb used as the featured image of this post. <br/>You need to choose <strong>Video Format</strong> from above to use Featured Video.</div> <div class="td-wpa-info"><strong>Notice:</strong> Use only with those post templates: <ul> <li>Post style default</li> <li>Post style 1</li> <li>Post style 2</li> <li>Post style 9</li> <li>Post style 10</li> <li>Post style 11</li> </ul> </div>', 'text_header_logo' => 'Text logo for header Style 9, Style 10 and Style 11:', 'text_header_logo_description' => 'The text logo is used only by Style 9, Style 10 and Style 11 - full menu + text logo. The other header styles use only images for logos', 'text_header_logo_mobile' => 'Style 4, Style 5, Style 6, Style 7, Style 8 or Style 12', 'text_header_logo_mobile_image' => '140 x 48px', 'text_header_logo_mobile_image_retina' => '280 x 96px', 'text_smart_sidebar_widget_support' => ' <ul> <li>[tagDiv] Trending now</li> </ul> '); /** * the tiny mce image style list */ td_global::$tiny_mce_image_style_list = array(); /** * the tiny mce styles */ td_api_tinymce_formats::add('td_tinymce_item_1', array('title' => 'Text padding')); td_api_tinymce_formats::add('td_tinymce_item_1_1', array('parent_id' => 'td_tinymce_item_1', 'title' => 'text ⇠', 'block' => 'div', 'classes' => 'td-paragraph-padding-0', 'wrapper' => true)); td_api_tinymce_formats::add('td_tinymce_item_1_2', array('parent_id' => 'td_tinymce_item_1', 'title' => '⇢ text', 'block' => 'div', 'classes' => 'td-paragraph-padding-4', 'wrapper' => true)); td_api_tinymce_formats::add('td_tinymce_item_1_3', array('parent_id' => 'td_tinymce_item_1', 'title' => '⇢ text ⇠', 'block' => 'div', 'classes' => 'td-paragraph-padding-1', 'wrapper' => true)); td_api_tinymce_formats::add('td_tinymce_item_1_4', array('parent_id' => 'td_tinymce_item_1', 'title' => '⇢ text ⇠⇠', 'block' => 'div', 'classes' => 'td-paragraph-padding-3', 'wrapper' => true)); td_api_tinymce_formats::add('td_tinymce_item_1_5', array('parent_id' => 'td_tinymce_item_1', 'title' => '⇢⇢ text ⇠', 'block' => 'div', 'classes' => 'td-paragraph-padding-6', 'wrapper' => true)); td_api_tinymce_formats::add('td_tinymce_item_1_6', array('parent_id' => 'td_tinymce_item_1', 'title' => '⇢⇢ text ⇠⇠', 'block' => 'div', 'classes' => 'td-paragraph-padding-2', 'wrapper' => true)); td_api_tinymce_formats::add('td_tinymce_item_1_7', array('parent_id' => 'td_tinymce_item_1', 'title' => '⇢⇢⇢ text ⇠⇠⇠', 'block' => 'div', 'classes' => 'td-paragraph-padding-5', 'wrapper' => true)); td_api_tinymce_formats::add('td_tinymce_item_2', array('title' => 'Text scroll effects')); td_api_tinymce_formats::add('td_tinymce_item_2_1', array('parent_id' => 'td_tinymce_item_2', 'title' => 'Fade in gray background', 'selector' => 'p, h3, blockquote', 'classes' => 'td-scroll-e-text-1 td-scroll-effect', 'icon' => 'td-test-icons')); td_api_tinymce_formats::add('td_tinymce_item_2_2', array('parent_id' => 'td_tinymce_item_2', 'title' => 'Fade in text color border', 'selector' => 'p, h3, blockquote', 'classes' => 'td-scroll-e-text-2 td-scroll-effect', 'icon' => 'td-test-icons')); td_api_tinymce_formats::add('td_tinymce_item_3', array('title' => 'Arrow list', 'selector' => 'ul', 'classes' => 'td-arrow-list')); td_api_tinymce_formats::add('td_blockquote', array('title' => 'Quotes')); td_api_tinymce_formats::add('td_blockquote_1', array('parent_id' => 'td_blockquote', 'title' => 'Quote left', 'block' => 'blockquote', 'classes' => 'td_quote td_quote_left', 'wrapper' => true)); td_api_tinymce_formats::add('td_blockquote_2', array('parent_id' => 'td_blockquote', 'title' => 'Quote right', 'block' => 'blockquote', 'classes' => 'td_quote td_quote_right', 'wrapper' => true)); td_api_tinymce_formats::add('td_blockquote_3', array('parent_id' => 'td_blockquote', 'title' => 'Quote box center', 'block' => 'blockquote', 'classes' => 'td_quote_box td_box_center', 'wrapper' => true)); td_api_tinymce_formats::add('td_blockquote_4', array('parent_id' => 'td_blockquote', 'title' => 'Quote box left', 'block' => 'blockquote', 'classes' => 'td_quote_box td_box_left', 'wrapper' => true)); td_api_tinymce_formats::add('td_blockquote_5', array('parent_id' => 'td_blockquote', 'title' => 'Quote box right', 'block' => 'blockquote', 'classes' => 'td_quote_box td_box_right', 'wrapper' => true)); td_api_tinymce_formats::add('td_blockquote_6', array('parent_id' => 'td_blockquote', 'title' => 'Pull quote center', 'block' => 'blockquote', 'classes' => 'td_pull_quote td_pull_center', 'wrapper' => true)); td_api_tinymce_formats::add('td_blockquote_7', array('parent_id' => 'td_blockquote', 'title' => 'Pull quote left', 'block' => 'blockquote', 'classes' => 'td_pull_quote td_pull_left', 'wrapper' => true)); td_api_tinymce_formats::add('td_blockquote_8', array('parent_id' => 'td_blockquote', 'title' => 'Pull quote right', 'block' => 'blockquote', 'classes' => 'td_pull_quote td_pull_right', 'wrapper' => true)); // two columns text td_api_tinymce_formats::add('td_text_columns', array('title' => 'Text columns')); td_api_tinymce_formats::add('td_text_columns_0', array('parent_id' => 'td_text_columns', 'title' => 'two columns', 'block' => 'div', 'classes' => 'td_text_columns_two_cols', 'wrapper' => true)); // dropcap td_api_tinymce_formats::add('td_dropcap', array('title' => 'Dropcaps')); td_api_tinymce_formats::add('td_dropcap_0', array('parent_id' => 'td_dropcap', 'title' => 'Box', 'classes' => 'dropcap', 'inline' => 'span')); td_api_tinymce_formats::add('td_dropcap_1', array('parent_id' => 'td_dropcap', 'title' => 'Circle', 'classes' => 'dropcap dropcap1', 'inline' => 'span')); td_api_tinymce_formats::add('td_dropcap_2', array('parent_id' => 'td_dropcap', 'title' => 'Regular', 'classes' => 'dropcap dropcap2', 'inline' => 'span')); td_api_tinymce_formats::add('td_dropcap_3', array('parent_id' => 'td_dropcap', 'title' => 'Bold', 'classes' => 'dropcap dropcap3', 'inline' => 'span')); // highlighter td_api_tinymce_formats::add('td_text_highlight', array('title' => 'Text highlighting')); td_api_tinymce_formats::add('td_text_highlight_0', array('parent_id' => 'td_text_highlight', 'title' => 'Black censured', 'classes' => 'td_text_highlight_0', 'inline' => 'span')); td_api_tinymce_formats::add('td_text_highlight_red', array('parent_id' => 'td_text_highlight', 'title' => 'Red marker', 'classes' => 'td_text_highlight_marker_red td_text_highlight_marker', 'inline' => 'span')); td_api_tinymce_formats::add('td_text_highlight_blue', array('parent_id' => 'td_text_highlight', 'title' => 'Blue marker', 'classes' => 'td_text_highlight_marker_blue td_text_highlight_marker', 'inline' => 'span')); td_api_tinymce_formats::add('td_text_highlight_green', array('parent_id' => 'td_text_highlight', 'title' => 'Green marker', 'classes' => 'td_text_highlight_marker_green td_text_highlight_marker', 'inline' => 'span')); td_api_tinymce_formats::add('td_text_highlight_yellow', array('parent_id' => 'td_text_highlight', 'title' => 'Yellow marker', 'classes' => 'td_text_highlight_marker_yellow td_text_highlight_marker', 'inline' => 'span')); td_api_tinymce_formats::add('td_text_highlight_pink', array('parent_id' => 'td_text_highlight', 'title' => 'Pink marker', 'classes' => 'td_text_highlight_marker_pink td_text_highlight_marker', 'inline' => 'span')); // clear elements td_api_tinymce_formats::add('td_clear_elements', array('title' => 'Clear element', 'selector' => 'a,p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img,code,blockquote', 'styles' => array('clear' => 'both'))); td_global::$theme_plugins_list = array(array('name' => 'Visual Composer', 'slug' => 'js_composer', 'source' => td_global::$get_template_directory_uri . '/includes/plugins/js_composer.zip', 'required' => true, 'version' => '', 'force_activation' => false, 'force_deactivation' => false, 'external_url' => '', 'img' => td_global::$get_template_directory_uri . '/includes/wp_booster/wp-admin/images/plugins/visual-composer.png', 'text' => 'Required plugin', 'required_label' => 'required'), array('name' => 'tagDiv social counter', 'slug' => 'td-social-counter', 'source' => td_global::$get_template_directory_uri . '/includes/plugins/td-social-counter.zip', 'required' => false, 'version' => '', 'force_activation' => false, 'force_deactivation' => false, 'external_url' => '', 'img' => td_global::$get_template_directory_uri . '/includes/wp_booster/wp-admin/images/plugins/social.png', 'text' => '', 'required_label' => 'optional'), array('name' => 'Revolution slider', 'slug' => 'revslider', 'source' => td_global::$get_template_directory_uri . '/includes/plugins/revslider.zip', 'required' => false, 'version' => '', 'force_activation' => false, 'force_deactivation' => false, 'external_url' => '', 'img' => td_global::$get_template_directory_uri . '/includes/wp_booster/wp-admin/images/plugins/rev-slider.png', 'text' => '', 'required_label' => 'optional')); /** * the stacks are stored in /includes/stacks * stack_filename (without .txt) => stack_name * @var array */ td_global::$demo_list = array('default' => array('text' => 'Default demo', 'folder' => td_global::$get_template_directory . '/includes/demos/default/', 'img' => td_global::$get_template_directory_uri . '/includes/demos/default/screenshot.png', 'demo_url' => 'http://demo.tagdiv.com/newspaper/'), 'tech' => array('text' => 'Tech demo', 'folder' => td_global::$get_template_directory . '/includes/demos/tech/', 'img' => td_global::$get_template_directory_uri . '/includes/demos/tech/screenshot.png', 'demo_url' => 'http://demo.tagdiv.com/newspaper_tech/'), 'sport' => array('text' => 'Sport demo', 'folder' => td_global::$get_template_directory . '/includes/demos/sport/', 'img' => td_global::$get_template_directory_uri . '/includes/demos/sport/screenshot.png', 'demo_url' => 'http://demo.tagdiv.com/newspaper_sport/'), 'fashion' => array('text' => 'Fashion demo', 'folder' => td_global::$get_template_directory . '/includes/demos/fashion/', 'img' => td_global::$get_template_directory_uri . '/includes/demos/fashion/screenshot.png', 'demo_url' => 'http://demo.tagdiv.com/newspaper_fashion/'), 'video' => array('text' => 'Video demo', 'folder' => td_global::$get_template_directory . '/includes/demos/video/', 'img' => td_global::$get_template_directory_uri . '/includes/demos/video/screenshot.png', 'demo_url' => 'http://demo.tagdiv.com/newspaper_video/'), 'blog' => array('text' => 'Classic Blog demo', 'folder' => td_global::$get_template_directory . '/includes/demos/blog/', 'img' => td_global::$get_template_directory_uri . '/includes/demos/blog/screenshot.png', 'demo_url' => 'http://demo.tagdiv.com/newspaper_classic_blog/')); } }
function td_template_include_filter($template_path) { if (is_single() and ($template_path == TEMPLATEPATH . '/single.php' or $template_path == STYLESHEETPATH . '/single.php')) { global $post; $td_post_theme_settings = get_post_meta($post->ID, 'td_post_theme_settings', true); if (empty($td_post_theme_settings['td_post_template'])) { $td_default_site_post_template = td_util::get_option('td_default_site_post_template'); if (!empty($td_default_site_post_template)) { $td_post_theme_settings['td_post_template'] = $td_default_site_post_template; } } if (!empty($td_post_theme_settings['td_post_template'])) { //the user has selected a different template & we make sure we only load our templates - the list of allowed templates is in includes/wp_booster/td_global.php //td_api_single_template::_helper_show_single_template(td_global::$td_template_var['td_post_theme_settings']['td_post_template']); try { $template_id = $td_post_theme_settings['td_post_template']; $single_template_path = td_api_single_template::get_key($template_id, 'file'); } catch (ErrorException $ex) { td_util::error(__FILE__, "The template {$template_id} isn't set. Did you disable a tagDiv plugin?"); // this does not stop execution } // load the template if (!empty($single_template_path) and file_exists($single_template_path)) { $template_path = $single_template_path; } else { td_util::error(__FILE__, "The path {$single_template_path} of the {$template_id} template not found. Did you disable a tagDiv plugin?"); // this does not stop execution } } } else { if (td_global::$is_woocommerce_installed and is_single() and ($template_path == TEMPLATEPATH . '/woocommerce/single-product.php' or $template_path == STYLESHEETPATH . '/woocommerce/single-product.php')) { //echo 'SINGLE PRODUCT detected<br>'; } } return $template_path; }
/** * setup the global theme specific variables * @depends td_global */ static function td_global_after() { /** * js files list */ td_global::$js_files = array('td_external' => '/includes/wp_booster/js_dev/td_external.js', 'tdDetect' => '/includes/wp_booster/js_dev/tdDetect.js', 'td_viewport' => '/includes/wp_booster/js_dev/td_viewport.js', 'td_menu' => '/includes/wp_booster/js_dev/td_menu.js', 'tdUtil' => '/includes/wp_booster/js_dev/tdUtil.js', 'td_affix' => '/includes/wp_booster/js_dev/td_affix.js', 'td_site' => '/includes/wp_booster/js_dev/td_site.js', 'tdLoadingBox' => '/includes/wp_booster/js_dev/tdLoadingBox.js', 'td_ajax_search' => '/includes/wp_booster/js_dev/td_ajax_search.js', 'td_post_images' => '/includes/wp_booster/js_dev/td_post_images.js', 'tdBlocks' => '/includes/wp_booster/js_dev/tdBlocks.js', 'td_login' => '/includes/wp_booster/js_dev/td_login.js', 'td_style_customizer' => '/includes/wp_booster/js_dev/td_style_customizer.js', 'td_trending_now' => '/includes/wp_booster/js_dev/td_trending_now.js', 'td_history' => '/includes/wp_booster/js_dev/td_history.js', 'td_smart_sidebar' => '/includes/wp_booster/js_dev/td_smart_sidebar.js', 'tdInfiniteLoader' => '/includes/wp_booster/js_dev/tdInfiniteLoader.js', 'td_smooth_scroll' => '/includes/wp_booster/js_dev/td_smooth_scroll.js', 'vimeo_froogaloop' => '/includes/wp_booster/js_dev/vimeo_froogaloop.js', 'td_custom_events' => '/includes/js_files/td_custom_events.js', 'td_events' => '/includes/wp_booster/js_dev/td_events.js', 'td_ajax_count' => '/includes/wp_booster/js_dev/td_ajax_count.js', 'td_video_playlist' => '/includes/wp_booster/js_dev/td_video_playlist.js', 'td_slide' => '/includes/wp_booster/js_dev/td_slide.js', 'td_pulldown' => '/includes/wp_booster/js_dev/td_pulldown.js', 'td_fps' => '/includes/js_files/td_fps.js', 'td_animation_scroll' => '/includes/wp_booster/js_dev/td_animation_scroll.js', 'td_backstr' => '/includes/wp_booster/js_dev/td_backstr.js', 'td_animation_stack' => '/includes/wp_booster/js_dev/td_animation_stack.js', 'td_main' => '/includes/js_files/td_main.js', 'td_loop_ajax' => '/includes/wp_booster/js_dev/tdLoopAjax.js', 'td_last_init' => '/includes/wp_booster/js_dev/td_last_init.js'); /** * td_viewport intervals in crescendo order */ td_global::$td_viewport_intervals = array(array("limit_bottom" => 767, "sidebar_width" => 228), array("limit_bottom" => 1018, "sidebar_width" => 300), array("limit_bottom" => 1140, "sidebar_width" => 324)); /** * - td animation stack effects used in the 'loading animation image' theme panel section * - the first element is a special case, it representing the default type 'type0' @see animation-stack.less * - the 'val' parameter is the type effect * - the 'specific_selectors' parameter is the css selector used to look for new elements inside of some specific sections [ex. at ajax req] * - the 'general_selectors' parameter is the css selector used to look for elements on extended sections [ex. entire page] * - Important! the 'general_selectors' is not used by the default 'type0' */ td_global::$td_animation_stack_effects = array(array('text' => '淡入 [完整]', 'val' => '', 'specific_selectors' => '.entry-thumb, img', 'general_selectors' => '.td-animation-stack img, .post img'), array('text' => '淡入并缩放', 'val' => 'type1', 'specific_selectors' => '.entry-thumb, img[class*="wp-image-"], a.td-sml-link-to-image > img', 'general_selectors' => '.td-animation-stack .entry-thumb, .post .entry-thumb, .post img[class*="wp-image-"], .post a.td-sml-link-to-image > img'), array('text' => '向上淡入', 'val' => 'type2', 'specific_selectors' => '.entry-thumb, img[class*="wp-image-"], a.td-sml-link-to-image > img', 'general_selectors' => '.td-animation-stack .entry-thumb, .post .entry-thumb, .post img[class*="wp-image-"], a.td-sml-link-to-image > img')); /** * single template list */ td_api_single_template::add('single_template', array('file' => td_global::$get_template_directory . '/single.php', 'text' => 'Single template', 'img' => td_global::$get_template_directory_uri . '/images/panel/single_templates/single_template_0.png', 'show_featured_image_on_all_pages' => false, 'bg_disable_background' => false, 'bg_box_layout_config' => 'auto', 'bg_use_featured_image_as_background' => false)); td_api_single_template::add('single_template_1', array('file' => td_global::$get_template_directory . '/single_template_1.php', 'text' => '单个模板 1', 'img' => td_global::$get_template_directory_uri . '/images/panel/single_templates/single_template_1.png', 'show_featured_image_on_all_pages' => false, 'bg_disable_background' => false, 'bg_box_layout_config' => 'auto', 'bg_use_featured_image_as_background' => false)); td_api_single_template::add('single_template_2', array('file' => td_global::$get_template_directory . '/single_template_2.php', 'text' => '单个模板 2', 'img' => td_global::$get_template_directory_uri . '/images/panel/single_templates/single_template_2.png', 'show_featured_image_on_all_pages' => false, 'bg_disable_background' => false, 'bg_box_layout_config' => 'auto', 'bg_use_featured_image_as_background' => false)); td_api_single_template::add('single_template_3', array('file' => td_global::$get_template_directory . '/single_template_3.php', 'text' => '单个模板 3', 'img' => td_global::$get_template_directory_uri . '/images/panel/single_templates/single_template_3.png', 'show_featured_image_on_all_pages' => true, 'bg_disable_background' => false, 'bg_box_layout_config' => 'auto', 'bg_use_featured_image_as_background' => false)); td_api_single_template::add('single_template_4', array('file' => td_global::$get_template_directory . '/single_template_4.php', 'text' => '单个模板 4', 'img' => td_global::$get_template_directory_uri . '/images/panel/single_templates/single_template_4.png', 'show_featured_image_on_all_pages' => true, 'bg_disable_background' => false, 'bg_box_layout_config' => 'auto', 'bg_use_featured_image_as_background' => false)); td_api_single_template::add('single_template_5', array('file' => td_global::$get_template_directory . '/single_template_5.php', 'text' => '单个模板 5', 'img' => td_global::$get_template_directory_uri . '/images/panel/single_templates/single_template_5.png', 'show_featured_image_on_all_pages' => false, 'bg_disable_background' => false, 'bg_box_layout_config' => 'auto', 'bg_use_featured_image_as_background' => false)); td_api_single_template::add('single_template_6', array('file' => td_global::$get_template_directory . '/single_template_6.php', 'text' => '单个模板 6', 'img' => td_global::$get_template_directory_uri . '/images/panel/single_templates/single_template_6.png', 'show_featured_image_on_all_pages' => true, 'disable_background' => false, 'use_featured_image_as_background' => true, 'bg_disable_background' => false, 'bg_box_layout_config' => 'auto', 'bg_use_featured_image_as_background' => false)); td_api_single_template::add('single_template_7', array('file' => td_global::$get_template_directory . '/single_template_7.php', 'text' => '单个模板 7', 'img' => td_global::$get_template_directory_uri . '/images/panel/single_templates/single_template_7.png', 'show_featured_image_on_all_pages' => true, 'bg_disable_background' => false, 'bg_box_layout_config' => 'auto', 'bg_use_featured_image_as_background' => false)); td_api_single_template::add('single_template_8', array('file' => td_global::$get_template_directory . '/single_template_8.php', 'text' => '单个模板 8', 'img' => td_global::$get_template_directory_uri . '/images/panel/single_templates/single_template_8.png', 'show_featured_image_on_all_pages' => true, 'bg_disable_background' => false, 'bg_box_layout_config' => 'td-boxed-layout', 'bg_use_featured_image_as_background' => true)); td_api_single_template::add('single_template_9', array('file' => td_global::$get_template_directory . '/single_template_9.php', 'text' => '单个模板 9', 'img' => td_global::$get_template_directory_uri . '/images/panel/single_templates/single_template_9.png', 'show_featured_image_on_all_pages' => false, 'bg_disable_background' => false, 'bg_box_layout_config' => 'auto', 'bg_use_featured_image_as_background' => false)); td_api_single_template::add('single_template_10', array('file' => td_global::$get_template_directory . '/single_template_10.php', 'text' => '单个模板 10', 'img' => td_global::$get_template_directory_uri . '/images/panel/single_templates/single_template_10.png', 'show_featured_image_on_all_pages' => true, 'bg_disable_background' => false, 'bg_box_layout_config' => 'auto', 'bg_use_featured_image_as_background' => false)); td_api_single_template::add('single_template_11', array('file' => td_global::$get_template_directory . '/single_template_11.php', 'text' => '单个模板 11', 'img' => td_global::$get_template_directory_uri . '/images/panel/single_templates/single_template_11.png', 'show_featured_image_on_all_pages' => true, 'bg_disable_background' => false, 'bg_box_layout_config' => 'auto', 'bg_use_featured_image_as_background' => false)); td_api_single_template::add('single_template_12', array('file' => td_global::$get_template_directory . '/single_template_12.php', 'text' => 'Single template 12', 'img' => td_global::$get_template_directory_uri . '/images/panel/single_templates/single_template_12.png', 'show_featured_image_on_all_pages' => true, 'bg_disable_background' => false, 'bg_box_layout_config' => 'auto', 'bg_use_featured_image_as_background' => false)); td_api_single_template::add('single_template_13', array('file' => td_global::$get_template_directory . '/single_template_13.php', 'text' => 'Single template 13', 'img' => td_global::$get_template_directory_uri . '/images/panel/single_templates/single_template_13.png', 'show_featured_image_on_all_pages' => true, 'bg_disable_background' => false, 'bg_box_layout_config' => 'auto', 'bg_use_featured_image_as_background' => false)); /** * smart lists */ td_api_smart_list::add('td_smart_list_1', array('file' => td_global::$get_template_directory . '/includes/smart_lists/td_smart_list_1.php', 'text' => '智能列表 1', 'img' => td_global::$get_template_directory_uri . '/images/panel/smart_lists/td_smart_list_1.png', 'extract_first_image' => true)); td_api_smart_list::add('td_smart_list_2', array('file' => td_global::$get_template_directory . '/includes/smart_lists/td_smart_list_2.php', 'text' => '智能列表 2', 'img' => td_global::$get_template_directory_uri . '/images/panel/smart_lists/td_smart_list_2.png', 'extract_first_image' => true)); td_api_smart_list::add('td_smart_list_3', array('file' => td_global::$get_template_directory . '/includes/smart_lists/td_smart_list_3.php', 'text' => '智能列表 3', 'img' => td_global::$get_template_directory_uri . '/images/panel/smart_lists/td_smart_list_3.png', 'extract_first_image' => true)); td_api_smart_list::add('td_smart_list_4', array('file' => td_global::$get_template_directory . '/includes/smart_lists/td_smart_list_4.php', 'text' => '智能列表 4', 'img' => td_global::$get_template_directory_uri . '/images/panel/smart_lists/td_smart_list_4.png', 'extract_first_image' => true)); td_api_smart_list::add('td_smart_list_5', array('file' => td_global::$get_template_directory . '/includes/smart_lists/td_smart_list_5.php', 'text' => '智能列表 5', 'img' => td_global::$get_template_directory_uri . '/images/panel/smart_lists/td_smart_list_5.png', 'extract_first_image' => true)); td_api_smart_list::add('td_smart_list_6', array('file' => td_global::$get_template_directory . '/includes/smart_lists/td_smart_list_6.php', 'text' => '智能列表 6', 'img' => td_global::$get_template_directory_uri . '/images/panel/smart_lists/td_smart_list_6.png', 'extract_first_image' => true)); td_api_smart_list::add('td_smart_list_7', array('file' => td_global::$get_template_directory . '/includes/smart_lists/td_smart_list_7.php', 'text' => '智能列表 7', 'img' => td_global::$get_template_directory_uri . '/images/panel/smart_lists/td_smart_list_7.png', 'extract_first_image' => true)); td_api_smart_list::add('td_smart_list_8', array('file' => td_global::$get_template_directory . '/includes/smart_lists/td_smart_list_8.php', 'text' => '智能列表 8', 'img' => td_global::$get_template_directory_uri . '/images/panel/smart_lists/td_smart_list_8.png', 'extract_first_image' => false)); /** * modules list */ td_api_module::add('td_module_1', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_1.php', 'text' => '模块1', 'img' => td_global::$get_template_directory_uri . '/images/panel/modules/td_module_1.png', 'used_on_blocks' => array('td_block_3'), 'excerpt_title' => 12, 'excerpt_content' => '', 'enabled_on_more_articles_box' => true, 'enabled_on_loops' => true, 'uses_columns' => true, 'category_label' => true, 'class' => 'td_module_wrap td-animation-stack')); td_api_module::add('td_module_2', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_2.php', 'text' => '模块2', 'img' => td_global::$get_template_directory_uri . '/images/panel/modules/td_module_2.png', 'used_on_blocks' => array('td_block_2', 'td_block_4'), 'excerpt_title' => 12, 'excerpt_content' => 25, 'enabled_on_more_articles_box' => true, 'enabled_on_loops' => true, 'uses_columns' => true, 'category_label' => true, 'class' => 'td_module_wrap td-animation-stack')); td_api_module::add('td_module_3', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_3.php', 'text' => '模块3', 'img' => td_global::$get_template_directory_uri . '/images/panel/modules/td_module_3.png', 'used_on_blocks' => array('td_block_5'), 'excerpt_title' => 12, 'excerpt_content' => '', 'enabled_on_more_articles_box' => true, 'enabled_on_loops' => true, 'uses_columns' => true, 'category_label' => true, 'class' => 'td_module_wrap td-animation-stack')); td_api_module::add('td_module_4', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_4.php', 'text' => '模块4', 'img' => td_global::$get_template_directory_uri . '/images/panel/modules/td_module_4.png', 'used_on_blocks' => array('td_block_1', 'td_block_17'), 'excerpt_title' => 12, 'excerpt_content' => 25, 'enabled_on_more_articles_box' => true, 'enabled_on_loops' => true, 'uses_columns' => true, 'category_label' => true, 'class' => 'td_module_wrap td-animation-stack')); td_api_module::add('td_module_5', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_5.php', 'text' => '模块5', 'img' => td_global::$get_template_directory_uri . '/images/panel/modules/td_module_5.png', 'used_on_blocks' => array('td_block_6'), 'excerpt_title' => 12, 'excerpt_content' => 25, 'enabled_on_more_articles_box' => true, 'enabled_on_loops' => true, 'uses_columns' => true, 'category_label' => true, 'class' => 'td_module_wrap td-animation-stack')); td_api_module::add('td_module_6', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_6.php', 'text' => '模块6', 'img' => td_global::$get_template_directory_uri . '/images/panel/modules/td_module_6.png', 'used_on_blocks' => array('td_block_1', 'td_block_2', 'td_block_7', 'td_block_16'), 'excerpt_title' => 12, 'excerpt_content' => '', 'enabled_on_more_articles_box' => true, 'enabled_on_loops' => true, 'uses_columns' => true, 'category_label' => true, 'class' => 'td_module_wrap td-animation-stack')); td_api_module::add('td_module_7', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_7.php', 'text' => '模块7', 'img' => td_global::$get_template_directory_uri . '/images/panel/modules/td_module_7.png', 'used_on_blocks' => array('td_block_8'), 'excerpt_title' => 12, 'excerpt_content' => '', 'enabled_on_more_articles_box' => true, 'enabled_on_loops' => true, 'uses_columns' => true, 'category_label' => true, 'class' => 'td_module_wrap td-animation-stack')); td_api_module::add('td_module_8', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_8.php', 'text' => '模块8', 'img' => td_global::$get_template_directory_uri . '/images/panel/modules/td_module_8.png', 'used_on_blocks' => array('td_block_9', 'td_block_17'), 'excerpt_title' => 15, 'excerpt_content' => '', 'enabled_on_more_articles_box' => true, 'enabled_on_loops' => true, 'uses_columns' => true, 'category_label' => true, 'class' => 'td_module_wrap')); td_api_module::add('td_module_9', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_9.php', 'text' => '模块9', 'img' => td_global::$get_template_directory_uri . '/images/panel/modules/td_module_9.png', 'used_on_blocks' => array('td_block_10'), 'excerpt_title' => 15, 'excerpt_content' => '', 'enabled_on_more_articles_box' => true, 'enabled_on_loops' => true, 'uses_columns' => true, 'category_label' => true, 'class' => 'td_module_wrap')); td_api_module::add('td_module_10', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_10.php', 'text' => '模块10', 'img' => td_global::$get_template_directory_uri . '/images/panel/modules/td_module_10.png', 'used_on_blocks' => array('td_block_11', 'td_block_18'), 'excerpt_title' => 15, 'excerpt_content' => 25, 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => true, 'uses_columns' => false, 'category_label' => true, 'class' => 'td_module_wrap td-animation-stack')); td_api_module::add('td_module_11', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_11.php', 'text' => '模块11', 'img' => td_global::$get_template_directory_uri . '/images/panel/modules/td_module_11.png', 'used_on_blocks' => array('td_block_12'), 'excerpt_title' => 15, 'excerpt_content' => 35, 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => true, 'uses_columns' => false, 'category_label' => true, 'class' => 'td_module_wrap td-animation-stack')); td_api_module::add('td_module_12', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_12.php', 'text' => '模块12', 'img' => td_global::$get_template_directory_uri . '/images/panel/modules/td_module_12.png', 'used_on_blocks' => '', 'excerpt_title' => 30, 'excerpt_content' => 60, 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => true, 'uses_columns' => false, 'category_label' => true, 'class' => 'td_module_wrap td-animation-stack')); td_api_module::add('td_module_13', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_13.php', 'text' => '模块13', 'img' => td_global::$get_template_directory_uri . '/images/panel/modules/td_module_13.png', 'used_on_blocks' => '', 'excerpt_title' => 30, 'excerpt_content' => '', 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => true, 'uses_columns' => false, 'category_label' => true, 'class' => 'td_module_wrap td-animation-stack')); td_api_module::add('td_module_14', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_14.php', 'text' => '模块14', 'img' => td_global::$get_template_directory_uri . '/images/panel/modules/td_module_14.png', 'used_on_blocks' => array('td_block_13', 'td_block_20'), 'excerpt_title' => 30, 'excerpt_content' => 40, 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => true, 'uses_columns' => false, 'category_label' => true, 'class' => 'td_module_wrap td-animation-stack')); td_api_module::add('td_module_15', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_15.php', 'text' => '模块15', 'img' => td_global::$get_template_directory_uri . '/images/panel/modules/td_module_15.png', 'used_on_blocks' => '', 'excerpt_title' => '', 'excerpt_content' => '', 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => true, 'uses_columns' => false, 'category_label' => true, 'class' => 'td-animation-stack')); td_api_module::add('td_module_16', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_16.php', 'text' => '模块16', 'img' => td_global::$get_template_directory_uri . '/images/panel/modules/td_module_16.png', 'used_on_blocks' => array('Search Page'), 'excerpt_title' => 15, 'excerpt_content' => 25, 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => true, 'uses_columns' => false, 'category_label' => true, 'class' => 'td_module_wrap td-animation-stack')); td_api_module::add('td_module_mx1', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_mx1.php', 'text' => '模块 MX1', 'img' => '', 'used_on_blocks' => array('td_block_14', 'td_block_19'), 'excerpt_title' => 25, 'excerpt_content' => '', 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => false, 'uses_columns' => false, 'category_label' => true, 'class' => 'td_module_wrap td-animation-stack')); td_api_module::add('td_module_mx2', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_mx2.php', 'text' => '模块 MX2', 'img' => '', 'used_on_blocks' => array('td_block_18', 'td_block_19', 'Search live'), 'excerpt_title' => 25, 'excerpt_content' => '', 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => false, 'uses_columns' => false, 'category_label' => true, 'class' => 'td_module_wrap td-animation-stack')); td_api_module::add('td_module_mx3', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_mx3.php', 'text' => '模块 MX3', 'img' => '', 'used_on_blocks' => array('td_block_13', 'td_block_20'), 'excerpt_title' => 25, 'excerpt_content' => '', 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => false, 'uses_columns' => false, 'category_label' => true, 'class' => 'td_module_wrap td-animation-stack')); td_api_module::add('td_module_mx4', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_mx4.php', 'text' => '模块 MX4', 'img' => '', 'used_on_blocks' => array('td_block_15'), 'excerpt_title' => 12, 'excerpt_content' => '', 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => false, 'uses_columns' => false, 'category_label' => true, 'class' => 'td_module_wrap td-animation-stack')); td_api_module::add('td_module_mx5', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_mx5.php', 'text' => '模块 MX5', 'img' => '', 'used_on_blocks' => array('td_block_big_grid_1', 'td_block_big_grid_3', 'td_block_big_grid_4', 'td_block_big_grid_6'), 'excerpt_title' => 25, 'excerpt_content' => '', 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => false, 'uses_columns' => false, 'category_label' => true, 'class' => 'td-animation-stack')); td_api_module::add('td_module_mx6', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_mx6.php', 'text' => '模块 MX6', 'img' => '', 'used_on_blocks' => array('td_block_big_grid_1', 'td_block_big_grid_3', 'td_block_big_grid_7'), 'excerpt_title' => 25, 'excerpt_content' => '', 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => false, 'uses_columns' => false, 'category_label' => true, 'class' => 'td-animation-stack')); td_api_module::add('td_module_mx7', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_mx7.php', 'text' => '模块 MX7', 'img' => '', 'used_on_blocks' => array('td_block_16'), 'excerpt_title' => 25, 'excerpt_content' => 16, 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => false, 'uses_columns' => false, 'category_label' => true, 'class' => 'td_module_wrap td-animation-stack')); td_api_module::add('td_module_mx8', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_mx8.php', 'text' => '模块 MX8', 'img' => '', 'used_on_blocks' => array('td_block_18'), 'excerpt_title' => 25, 'excerpt_content' => '', 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => false, 'uses_columns' => false, 'category_label' => true, 'class' => 'td_module_wrap td-animation-stack')); td_api_module::add('td_module_mx9', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_mx9.php', 'text' => '模块 MX9', 'img' => '', 'used_on_blocks' => array('td_block_big_grid_2'), 'excerpt_title' => 25, 'excerpt_content' => '', 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => false, 'uses_columns' => false, 'category_label' => true, 'class' => 'td-animation-stack')); td_api_module::add('td_module_mx10', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_mx10.php', 'text' => '模块 MX10', 'img' => '', 'used_on_blocks' => array('td_block_big_grid_2'), 'excerpt_title' => 25, 'excerpt_content' => '', 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => false, 'uses_columns' => false, 'category_label' => true, 'class' => 'td-animation-stack')); td_api_module::add('td_module_mx11', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_mx11.php', 'text' => '模块 MX11', 'img' => '', 'used_on_blocks' => array('td_block_big_grid_3'), 'excerpt_title' => 25, 'excerpt_content' => '', 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => false, 'uses_columns' => false, 'category_label' => true, 'class' => 'td-animation-stack')); td_api_module::add('td_module_mx12', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_mx12.php', 'text' => '模块 MX12', 'img' => '', 'used_on_blocks' => array('td_block_big_grid_5', 'td_block_big_grid_7', 'td_block_big_grid_8'), 'excerpt_title' => 25, 'excerpt_content' => '', 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => false, 'uses_columns' => false, 'category_label' => true, 'class' => 'td-animation-stack')); td_api_module::add('td_module_mx13', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_mx13.php', 'text' => '模块 MX13', 'img' => '', 'used_on_blocks' => array('td_block_big_grid_6'), 'excerpt_title' => 25, 'excerpt_content' => '', 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => false, 'uses_columns' => false, 'category_label' => true, 'class' => 'td-animation-stack')); td_api_module::add('td_module_mx14', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_mx14.php', 'text' => '模块 MX14', 'img' => '', 'used_on_blocks' => array('td_block_big_grid_8'), 'excerpt_title' => 25, 'excerpt_content' => '', 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => false, 'uses_columns' => false, 'category_label' => true, 'class' => 'td-animation-stack')); td_api_module::add('td_module_mx_empty', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_mx_empty.php', 'text' => '模块 MX 空', 'img' => '', 'used_on_blocks' => array('td_block_big_grid_1'), 'excerpt_title' => '', 'excerpt_content' => '', 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => false, 'uses_columns' => false, 'category_label' => false, 'class' => 'td-animation-stack')); td_api_module::add('td_module_related_posts', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_related_posts.php', 'text' => '相关文章模块', 'img' => '', 'used_on_blocks' => array('td_block_related_posts'), 'excerpt_title' => 25, 'excerpt_content' => '', 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => false, 'uses_columns' => false, 'category_label' => true, 'class' => 'td-animation-stack')); td_api_module::add('td_module_mega_menu', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_mega_menu.php', 'text' => '大菜单模块', 'img' => '', 'used_on_blocks' => array('td_block_mega_menu'), 'excerpt_title' => '12', 'excerpt_content' => '', 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => false, 'uses_columns' => false, 'category_label' => true, 'class' => '')); td_api_module::add('td_module_slide', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_slide.php', 'text' => '幻灯片模块', 'img' => '', 'used_on_blocks' => array('td_block_slide'), 'excerpt_title' => 25, 'excerpt_content' => '', 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => false, 'uses_columns' => false, 'category_label' => true, 'class' => 'td-animation-stack')); td_api_module::add('td_module_trending_now', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_trending_now.php', 'text' => '现在趋势模块', 'img' => '', 'used_on_blocks' => '', 'excerpt_title' => 25, 'excerpt_content' => '', 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => false, 'uses_columns' => false, 'category_label' => false, 'class' => '')); td_api_module::add('td_module_single', array('file' => td_global::$get_template_directory . '/includes/modules/td_module_single.php', 'text' => '单个模块', 'img' => '', 'used_on_blocks' => '', 'excerpt_title' => '', 'excerpt_content' => '', 'enabled_on_more_articles_box' => false, 'enabled_on_loops' => false, 'uses_columns' => false, 'category_label' => false, 'class' => '')); /** * the thumbs used by the theme * Thumb id => array parameters. Wp booster only cuts if the option is set from theme panel */ td_api_thumb::add('td_80x60', array('name' => 'td_80x60', 'width' => 80, 'height' => 60, 'crop' => array('center', 'top'), 'post_format_icon_size' => 'small', 'used_on' => array('MX2', '区块 18', '区块 19', '即时搜索'))); td_api_thumb::add('td_100x70', array('name' => 'td_100x70', 'width' => 100, 'height' => 70, 'crop' => array('center', 'top'), 'post_format_icon_size' => 'small', 'used_on' => array('模块 6, 7', '区块 1, 2, 7, 8, 16'))); td_api_thumb::add('td_218x150', array('name' => 'td_218x150', 'width' => 218, 'height' => 150, 'crop' => array('center', 'top'), 'post_format_icon_size' => 'normal', 'used_on' => array('模块 10, MX4, MX7, MX13, 大菜单, 相关文章', '区块 11, 15, 16, 18, 大网格 6'))); td_api_thumb::add('td_265x198', array('name' => 'td_265x198', 'width' => 265, 'height' => 198, 'crop' => array('center', 'top'), 'post_format_icon_size' => 'normal', 'used_on' => array('大网格 1, 3, 7 - 小图片'))); td_api_thumb::add('td_324x160', array('name' => 'td_324x160', 'width' => 324, 'height' => 160, 'crop' => array('center', 'top'), 'post_format_icon_size' => 'normal', 'used_on' => array('模块 1, 2', '区块 2, 3, 4, 大网格 2'))); td_api_thumb::add('td_324x235', array('name' => 'td_324x235', 'width' => 324, 'height' => 235, 'crop' => array('center', 'top'), 'post_format_icon_size' => 'normal', 'used_on' => array('模块 3, 4, 5, 11, MX3', '区块 1, 5, 6, 13, 17, 20'))); td_api_thumb::add('td_324x400', array('name' => 'td_324x400', 'width' => 324, 'height' => 400, 'crop' => array('center', 'top'), 'post_format_icon_size' => 'normal', 'used_on' => array('幻灯片 - 1 列'))); td_api_thumb::add('td_356x220', array('name' => 'td_356x220', 'width' => 356, 'height' => 220, 'crop' => array('center', 'top'), 'post_format_icon_size' => 'normal', 'used_on' => array('模块 MX1, MX12', '区块 14, 19, 大网格 5, 7, 8'))); td_api_thumb::add('td_356x364', array('name' => 'td_356x364', 'width' => 356, 'height' => 364, 'crop' => array('center', 'top'), 'post_format_icon_size' => 'normal', 'used_on' => array('模块 MX14,', '大网格 8'))); td_api_thumb::add('td_533x261', array('name' => 'td_533x261', 'width' => 533, 'height' => 261, 'crop' => array('center', 'top'), 'post_format_icon_size' => 'normal', 'used_on' => array('模块 MX11,', '大网格 3'))); td_api_thumb::add('td_534x462', array('name' => 'td_534x462', 'width' => 534, 'height' => 462, 'crop' => array('center', 'top'), 'post_format_icon_size' => 'normal', 'used_on' => array('模块 MX5,', '网格 1, 3, 4, 6'))); td_api_thumb::add('td_696x0', array('name' => 'td_696x0', 'width' => 696, 'height' => 0, 'crop' => array('center', 'top'), 'post_format_icon_size' => 'normal', 'used_on' => array('默认文章模板, 文章模板 2, 文章模板 11', '模块 12, 13, 15', '智能列表风格 1, 2, 5, 6'))); td_api_thumb::add('td_696x385', array('name' => 'td_696x385', 'width' => 696, 'height' => 385, 'crop' => array('center', 'top'), 'post_format_icon_size' => 'normal', 'used_on' => array('模块 14, MX8', '区块 13, 18, 20', '幻灯片 - 2列'))); td_api_thumb::add('td_741x486', array('name' => 'td_741x486', 'width' => 741, 'height' => 486, 'crop' => array('center', 'top'), 'post_format_icon_size' => 'normal', 'used_on' => array('MX9', '大网格 2'))); td_api_thumb::add('td_1068x580', array('name' => 'td_1068x580', 'width' => 1068, 'height' => 580, 'crop' => array('center', 'top'), 'post_format_icon_size' => 'normal', 'used_on' => array('幻灯片 - 3列'))); td_api_thumb::add('td_1068x0', array('name' => 'td_1068x0', 'width' => 1068, 'height' => 0, 'crop' => array('center', 'top'), 'post_format_icon_size' => 'normal', 'used_on' => array('文章模板 3, 文章模板 4, 文章模板 9, 文章模板 10', '智能列表风格 1, 2, 5, 6'))); td_api_thumb::add('td_0x420', array('name' => 'td_0x420', 'width' => 0, 'height' => 420, 'crop' => array('center', 'top'), 'post_format_icon_size' => 'normal', 'used_on' => array('tagDiv图片相册'))); /** * the headers */ td_api_header_style::add('1', array('text' => '<strong>风格 1 - </strong> 默认', 'file' => td_global::$get_template_directory . '/parts/header/header-style-1.php')); td_api_header_style::add('2', array('text' => '<strong>风格 2 - </strong> 顶部菜单', 'file' => td_global::$get_template_directory . '/parts/header/header-style-2.php')); td_api_header_style::add('3', array('text' => '<strong>风格 3 - </strong> 框式深色菜单', 'file' => td_global::$get_template_directory . '/parts/header/header-style-3.php')); td_api_header_style::add('4', array('text' => '<strong>风格 4 - </strong> 框式深色菜单带 logo', 'file' => td_global::$get_template_directory . '/parts/header/header-style-4.php')); td_api_header_style::add('5', array('text' => '<strong>风格 5 - </strong> 完整深色菜单带 logo', 'file' => td_global::$get_template_directory . '/parts/header/header-style-5.php')); td_api_header_style::add('6', array('text' => '<strong>风格 6 - </strong> 完整深色菜单在右带 logo', 'file' => td_global::$get_template_directory . '/parts/header/header-style-6.php')); td_api_header_style::add('7', array('text' => '<strong>风格 7 - </strong> 右菜单和LOGO混合', 'file' => td_global::$get_template_directory . '/parts/header/header-style-7.php')); td_api_header_style::add('8', array('text' => '<strong>风格 8 - </strong> 混合菜单 2', 'file' => td_global::$get_template_directory . '/parts/header/header-style-8.php')); td_api_header_style::add('9', array('text' => '<strong>风格 9 - </strong> 完整 logo 在顶部', 'file' => td_global::$get_template_directory . '/parts/header/header-style-9.php')); td_api_header_style::add('10', array('text' => '<strong>风格 10 - </strong> 完整 logo 在顶部 + 中心菜单', 'file' => td_global::$get_template_directory . '/parts/header/header-style-10.php')); td_api_header_style::add('11', array('text' => '<strong>风格 11 - </strong> 顶部菜单 + 底部完整 logo', 'file' => td_global::$get_template_directory . '/parts/header/header-style-11.php')); td_api_header_style::add('12', array('text' => '<strong>风格 12 - </strong> 顶部彩色菜单带 logo', 'file' => td_global::$get_template_directory . '/parts/header/header-style-12.php')); /** * the styles for big grids. This styles will show up in the panel @see td_panel_categories.php and on each big grid block * This has to be before the blocks are added! The grids blocks are made with this */ td_global::$big_grid_styles_list = array('td-grid-style-1' => array('text' => '网格风格 1'), 'td-grid-style-2' => array('text' => '网格风格 2'), 'td-grid-style-3' => array('text' => '网格风格 3'), 'td-grid-style-4' => array('text' => '网格风格 4'), 'td-grid-style-5' => array('text' => '网格风格 5')); /** * the blocks */ td_api_block::add('td_block_1', array('map_in_visual_composer' => true, "name" => '区块 1', "base" => 'td_block_1', "class" => 'td_block_1', "controls" => "full", "category" => '区块', 'icon' => 'icon-pagebuilder-td_block_1', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_1.php', "params" => array_merge(self::get_map_block_general_array(), self::get_map_filter_array(), self::get_map_block_ajax_filter_array(), self::get_map_block_pagination_array()))); td_api_block::add('td_block_2', array('map_in_visual_composer' => true, "name" => '区块 2', "base" => 'td_block_2', "class" => 'td_block_2', "controls" => "full", "category" => '区块', 'icon' => 'icon-pagebuilder-td_block_2', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_2.php', "params" => array_merge(self::get_map_block_general_array(), self::get_map_filter_array(), self::get_map_block_ajax_filter_array(), self::get_map_block_pagination_array()))); td_api_block::add('td_block_3', array('map_in_visual_composer' => true, "name" => '区块 3', "base" => 'td_block_3', "class" => 'td_block_3', "controls" => "full", "category" => '区块', 'icon' => 'icon-pagebuilder-td_block_3', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_3.php', "params" => array_merge(self::get_map_block_general_array(), self::get_map_filter_array(), self::get_map_block_ajax_filter_array(), self::get_map_block_pagination_array()))); td_api_block::add('td_block_4', array('map_in_visual_composer' => true, "name" => '区块 4', "base" => 'td_block_4', "class" => 'td_block_4', "controls" => "full", "category" => '区块', 'icon' => 'icon-pagebuilder-td_block_4', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_4.php', "params" => array_merge(self::get_map_block_general_array(), self::get_map_filter_array(), self::get_map_block_ajax_filter_array(), self::get_map_block_pagination_array()))); td_api_block::add('td_block_5', array('map_in_visual_composer' => true, "name" => '区块 5', "base" => 'td_block_5', "class" => 'td_block_5', "controls" => "full", "category" => '区块', 'icon' => 'icon-pagebuilder-td_block_5', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_5.php', "params" => array_merge(self::get_map_block_general_array(), self::get_map_filter_array(), self::get_map_block_ajax_filter_array(), self::get_map_block_pagination_array()))); td_api_block::add('td_block_6', array('map_in_visual_composer' => true, "name" => '区块 6', "base" => 'td_block_6', "class" => 'td_block_6', "controls" => "full", "category" => '区块', 'icon' => 'icon-pagebuilder-td_block_6', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_6.php', "params" => array_merge(self::get_map_block_general_array(), self::get_map_filter_array(), self::get_map_block_ajax_filter_array(), self::get_map_block_pagination_array()))); td_api_block::add('td_block_7', array('map_in_visual_composer' => true, "name" => '区块 7', "base" => 'td_block_7', "class" => 'td_block_7', "controls" => "full", "category" => '区块', 'icon' => 'icon-pagebuilder-td_block_7', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_7.php', "params" => array_merge(self::get_map_block_general_array(), self::get_map_filter_array(), self::get_map_block_ajax_filter_array(), self::get_map_block_pagination_array()))); td_api_block::add('td_block_8', array('map_in_visual_composer' => true, "name" => '区块 8', "base" => 'td_block_8', "class" => 'td_block_8', "controls" => "full", "category" => '区块', 'icon' => 'icon-pagebuilder-td_block_8', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_8.php', "params" => array_merge(self::get_map_block_general_array(), self::get_map_filter_array(), self::get_map_block_ajax_filter_array(), self::get_map_block_pagination_array()))); td_api_block::add('td_block_9', array('map_in_visual_composer' => true, "name" => '区块 9', "base" => 'td_block_9', "class" => 'td_block_9', "controls" => "full", "category" => '区块', 'icon' => 'icon-pagebuilder-td_block_9', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_9.php', "params" => array_merge(self::get_map_block_general_array(), self::get_map_filter_array(), self::get_map_block_ajax_filter_array(), self::get_map_block_pagination_array()))); td_api_block::add('td_block_10', array('map_in_visual_composer' => true, "name" => '区块 10', "base" => 'td_block_10', "class" => 'td_block_10', "controls" => "full", "category" => '区块', 'icon' => 'icon-pagebuilder-td_block_10', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_10.php', "params" => array_merge(self::get_map_block_general_array(), self::get_map_filter_array(), self::get_map_block_ajax_filter_array(), self::get_map_block_pagination_array()))); td_api_block::add('td_block_11', array('map_in_visual_composer' => true, "name" => '区块 11', "base" => 'td_block_11', "class" => 'td_block_11', "controls" => "full", "category" => '区块', 'icon' => 'icon-pagebuilder-td_block_11', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_11.php', "params" => array_merge(self::get_map_block_general_array(), self::get_map_filter_array(), self::get_map_block_ajax_filter_array(), self::get_map_block_pagination_array()))); td_api_block::add('td_block_12', array('map_in_visual_composer' => true, "name" => '区块 12', "base" => 'td_block_12', "class" => 'td_block_12', "controls" => "full", "category" => '区块', 'icon' => 'icon-pagebuilder-td_block_12', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_12.php', "params" => array_merge(self::get_map_block_general_array(), self::get_map_filter_array(), self::get_map_block_ajax_filter_array(), self::get_map_block_pagination_array()))); td_api_block::add('td_block_13', array('map_in_visual_composer' => true, "name" => '区块 13', "base" => 'td_block_13', "class" => 'td_block_13', "controls" => "full", "category" => '区块', 'icon' => 'icon-pagebuilder-td_block_13', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_13.php', "params" => array_merge(self::get_map_block_general_array(), self::get_map_filter_array(), self::get_map_block_ajax_filter_array(), self::get_map_block_pagination_array()))); td_api_block::add('td_block_14', array('map_in_visual_composer' => true, "name" => '区块 14', "base" => 'td_block_14', "class" => 'td_block_14', "controls" => "full", "category" => '区块', 'icon' => 'icon-pagebuilder-td_block_14', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_14.php', "params" => array_merge(self::get_map_block_general_array(), self::get_map_filter_array(), self::get_map_block_ajax_filter_array(), self::get_map_block_pagination_array()))); td_api_block::add('td_block_15', array('map_in_visual_composer' => true, "name" => '区块 15', "base" => 'td_block_15', "class" => 'td_block_15', "controls" => "full", "category" => '区块', 'icon' => 'icon-pagebuilder-td_block_15', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_15.php', "params" => array_merge(self::get_map_block_general_array(), self::get_map_filter_array(), self::get_map_block_ajax_filter_array(), self::get_map_block_pagination_array()))); td_api_block::add('td_block_16', array('map_in_visual_composer' => true, "name" => '区块 16', "base" => 'td_block_16', "class" => 'td_block_16', "controls" => "full", "category" => '区块', 'icon' => 'icon-pagebuilder-td_block_16', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_16.php', "params" => array_merge(self::get_map_block_general_array(), self::get_map_filter_array(), self::get_map_block_ajax_filter_array(), self::get_map_block_pagination_array()))); td_api_block::add('td_block_17', array('map_in_visual_composer' => true, "name" => '区块 17', "base" => 'td_block_17', "class" => 'td_block_17', "controls" => "full", "category" => '区块', 'icon' => 'icon-pagebuilder-td_block_17', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_17.php', "params" => array_merge(self::get_map_block_general_array(), self::get_map_filter_array(), self::get_map_block_ajax_filter_array(), self::get_map_block_pagination_array()))); td_api_block::add('td_block_18', array('map_in_visual_composer' => true, "name" => '区块 18', "base" => 'td_block_18', "class" => 'td_block_18', "controls" => "full", "category" => '区块', 'icon' => 'icon-pagebuilder-td_block_18', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_18.php', "params" => array_merge(self::get_map_block_general_array(), self::get_map_filter_array(), self::get_map_block_ajax_filter_array(), self::get_map_block_pagination_array()))); td_api_block::add('td_block_19', array('map_in_visual_composer' => true, "name" => '区块 19', "base" => 'td_block_19', "class" => 'td_block_19', "controls" => "full", "category" => '区块', 'icon' => 'icon-pagebuilder-td_block_19', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_19.php', "params" => array_merge(self::get_map_block_general_array(), self::get_map_filter_array(), self::get_map_block_ajax_filter_array(), self::get_map_block_pagination_array()))); td_api_block::add('td_block_20', array('map_in_visual_composer' => true, "name" => '区块 20', "base" => 'td_block_20', "class" => 'td_block_20', "controls" => "full", "category" => '区块', 'icon' => 'icon-pagebuilder-td_block_20', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_20.php', "params" => array_merge(self::get_map_block_general_array(), self::get_map_filter_array(), self::get_map_block_ajax_filter_array(), self::get_map_block_pagination_array()))); td_api_block::add('td_block_21', array('map_in_visual_composer' => true, "name" => '区块 21', "base" => 'td_block_21', "class" => 'td_block_21', "controls" => "full", "category" => '区块', 'icon' => 'icon-pagebuilder-td_block_21', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_21.php', "params" => array_merge(self::get_map_block_general_array(), self::get_map_filter_array(), self::get_map_block_ajax_filter_array(), self::get_map_block_pagination_array()))); td_api_block::add('td_block_big_grid_1', array('map_in_visual_composer' => true, "name" => '大网格 1', "base" => 'td_block_big_grid_1', "class" => 'td_block_big_grid_1', "controls" => "full", "category" => '区块', 'icon' => 'icon-pagebuilder-td_block_big_grid_1', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_big_grid_1.php', "params" => self::td_block_big_grid_params())); td_api_block::add('td_block_big_grid_2', array('map_in_visual_composer' => true, "name" => '大网格 2', "base" => 'td_block_big_grid_2', "class" => 'td_block_big_grid_2', "controls" => "full", "category" => '区块', 'icon' => 'icon-pagebuilder-td_block_big_grid_2', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_big_grid_2.php', "params" => self::td_block_big_grid_params())); td_api_block::add('td_block_big_grid_3', array('map_in_visual_composer' => true, "name" => '大网格 3', "base" => 'td_block_big_grid_3', "class" => 'td_block_big_grid_3', "controls" => "full", "category" => '区块', 'icon' => 'icon-pagebuilder-td_block_big_grid_3', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_big_grid_3.php', "params" => self::td_block_big_grid_params())); td_api_block::add('td_block_big_grid_4', array('map_in_visual_composer' => true, "name" => '大网格 4', "base" => 'td_block_big_grid_4', "class" => 'td_block_big_grid_4', "controls" => "full", "category" => '区块', 'icon' => 'icon-pagebuilder-td_block_big_grid_4', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_big_grid_4.php', "params" => self::td_block_big_grid_params())); td_api_block::add('td_block_big_grid_5', array('map_in_visual_composer' => true, "name" => '大网格5', "base" => 'td_block_big_grid_5', "class" => 'td_block_big_grid_5', "controls" => "full", "category" => '区块', 'icon' => 'icon-pagebuilder-td_block_big_grid_5', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_big_grid_5.php', "params" => self::td_block_big_grid_params())); td_api_block::add('td_block_big_grid_6', array('map_in_visual_composer' => true, "name" => '大网格 6', "base" => 'td_block_big_grid_6', "class" => 'td_block_big_grid_6', "controls" => "full", "category" => '区块', 'icon' => 'icon-pagebuilder-td_block_big_grid_6', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_big_grid_6.php', "params" => self::td_block_big_grid_params())); td_api_block::add('td_block_big_grid_7', array('map_in_visual_composer' => true, "name" => '大网格 7', "base" => 'td_block_big_grid_7', "class" => 'td_block_big_grid_7', "controls" => "full", "category" => '区块', 'icon' => 'icon-pagebuilder-td_block_big_grid_7', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_big_grid_7.php', "params" => self::td_block_big_grid_params())); td_api_block::add('td_block_big_grid_8', array('map_in_visual_composer' => true, "name" => '大网格 8', "base" => 'td_block_big_grid_8', "class" => 'td_block_big_grid_8', "controls" => "full", "category" => '区块', 'icon' => 'icon-pagebuilder-td_block_big_grid_8', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_big_grid_8.php', "params" => self::td_block_big_grid_params())); td_api_block::add('td_block_big_grid_slide', array('map_in_visual_composer' => true, "name" => '大网格幻灯片', "base" => 'td_block_big_grid_slide', "class" => 'td_block_big_grid_slide', "controls" => "full", "category" => '区块', 'icon' => 'icon-pagebuilder-td_block_big_grid_slide', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_big_grid_slide.php', "params" => self::td_block_big_grid_slide_params())); td_api_block::add('td_block_trending_now', array('map_in_visual_composer' => true, "name" => '新闻速递', "base" => 'td_block_trending_now', "class" => 'td_block_trending_now', "controls" => "full", "category" => '区块', 'icon' => 'icon-pagebuilder-td_block_trending_now', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_trending_now.php', "params" => self::td_block_trending_now_params())); td_api_block::add('td_block_video_youtube', array('map_in_visual_composer' => true, "name" => '视频播放列表', "base" => "td_block_video_youtube", "class" => "td_block_video_playlist_youtube", "controls" => "full", "category" => '区块', 'icon' => 'icon-pagebuilder-td-youtube', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_video_youtube.php', "params" => array(array("param_name" => "playlist_title", "type" => "textfield", "value" => "", "heading" => "可选 - 自定义此区块标题:", "description" => "", "holder" => "div", "class" => ""), array("param_name" => "playlist_yt", "type" => "textfield", "value" => "", "heading" => "逗号分隔的youtube列表ID(例如:NRuE38Bl5Mo, 1ZgoluYjuZM, 0K-0vkFfUmY):", "description" => "", "holder" => "div", "class" => ""), array("param_name" => "playlist_auto_play", "type" => "dropdown", "value" => array('关' => '0', '开' => '1'), "heading" => "自动播放开/关:", "description" => "自动播放不在移动设备工作(安卓、windows phone, iOS)", "holder" => "div", "class" => "")))); td_api_block::add('td_block_video_vimeo', array('map_in_visual_composer' => true, "name" => '视频播放列表', "base" => "td_block_video_vimeo", "class" => "td_block_video_playlist_vimeo", "controls" => "full", "category" => '区块', 'icon' => 'icon-pagebuilder-td-vimeo', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_video_vimeo.php', "params" => array(array("param_name" => "playlist_title", "type" => "textfield", "value" => "", "heading" => "可选 - 自定义此区块标题:", "description" => "", "holder" => "div", "class" => ""), array("param_name" => "playlist_v", "type" => "textfield", "value" => "", "heading" => "用逗号分隔vimeo ID列表(例如:100888579, 84062802, 57863017)", "description" => "", "holder" => "div", "class" => ""), array("param_name" => "playlist_auto_play", "type" => "dropdown", "value" => array('关' => '0', '开' => '1'), "heading" => "自动播放开/关:", "description" => "", "holder" => "div", "class" => "")))); td_api_block::add('td_block_ad_box', array('map_in_visual_composer' => true, "name" => '广告框', "base" => 'td_block_ad_box', "class" => "", "controls" => "full", "category" => '区块', 'icon' => 'icon-pagebuilder-ads', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_ad_box.php', "params" => array(array("param_name" => "spot_id", "type" => "dropdown", "value" => array('侧边栏' => 'sidebar', '内容内嵌' => 'content_inline', '内容顶部' => 'content_top', '内容底部' => 'content_bottom', '页眉' => 'header', '自定义广告1' => 'custom_ad_1', '自定义广告2' => 'custom_ad_2', '自定义广告3' => 'custom_ad_3', '自定义广告4' => 'custom_ad_4', '自定义广告5' => 'custom_ad_5'), "heading" => '使用位置 :', "description" => "", "holder" => "div", "class" => ""), array("param_name" => "spot_title", "type" => "textfield", "value" => "", "heading" => '广告标题:', "description" => "可选 - 广告标题,比如 - 广告 - 如果留空,区块将没有标题", "holder" => "div", "class" => "")))); td_api_block::add('td_block_authors', array('map_in_visual_composer' => true, "name" => '作者框', "base" => "td_block_authors", "class" => "", "controls" => "full", "category" => '区块', 'icon' => 'icon-pagebuilder-td_block_authors', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_authors.php', "params" => array(array("param_name" => "custom_title", "type" => "textfield", "value" => '我们的作者', "heading" => "区块标题", "description" => "", "holder" => "div", "class" => ""), array("param_name" => "custom_url", "type" => "textfield", "value" => "", "heading" => '区块标题 - 自定义网址', "description" => "可选 - (当选中模块标题)", "holder" => "div", "class" => ""), array("param_name" => "sort", "type" => "dropdown", "value" => array('- 按名字排序 -' => '', '按文章数排序' => 'post_count'), "heading" => '作者排序方式:', "description" => "", "holder" => "div", "class" => ""), array("param_name" => "exclude", "type" => "textfield", "value" => '', "heading" => "排除作者ID (,分隔)", "description" => "", "holder" => "div", "class" => ""), array("param_name" => "include", "type" => "textfield", "value" => '', "heading" => "包含作者ID (,分隔) - 不使用排除", "description" => "", "holder" => "div", "class" => ""), array("type" => "colorpicker", "holder" => "div", "class" => "", "heading" => '标题文字颜色', "param_name" => "header_text_color", "value" => '', "description" => '可选 - 为此区块选择自定义标题文字颜色'), array("type" => "colorpicker", "holder" => "div", "class" => "", "heading" => '标题背景颜色', "param_name" => "header_color", "value" => '', "description" => '可选 - 为此区块选择自定义标题背景颜色')))); td_api_block::add('td_block_homepage_full_1', array('map_in_visual_composer' => true, "name" => '首页文章', "base" => 'td_block_homepage_full_1', "class" => 'td_block_homepage_full_1', "controls" => "full", "category" => '区块', 'icon' => 'icon-pagebuilder-td_block_homepage_full_1', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_homepage_full_1.php', "params" => self::td_homepage_full_1_params())); td_api_block::add('td_block_popular_categories', array('map_in_visual_composer' => true, "name" => '热门分类', "base" => "td_block_popular_categories", "class" => "td_block_popular_categories", "controls" => "full", "category" => '区块', 'icon' => 'icon-pagebuilder-popular_categories', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_popular_categories.php', "params" => array(array("param_name" => "custom_title", "type" => "textfield", "value" => "热门分类", "heading" => '可选 - 自定义此区块标题:', "description" => "", "holder" => "div", "class" => ""), array("param_name" => "custom_url", "type" => "textfield", "value" => "", "heading" => '可选 - 自定义此区块网址 (当选中模块标题):', "description" => "", "holder" => "div", "class" => ""), array("type" => "colorpicker", "holder" => "div", "class" => "", "heading" => '标题文字颜色', "param_name" => "header_text_color", "value" => '', "description" => '可选 - 为此区块选择自定义标题文字颜色'), array("type" => "colorpicker", "holder" => "div", "class" => "", "heading" => '标题背景颜色', "param_name" => "header_color", "value" => '', "description" => '可选 - 为此区块选择自定义标题背景颜色'), array("param_name" => "limit", "type" => "textfield", "value" => "6", "heading" => '限制显示分类数:', "description" => "", "holder" => "div", "class" => "")))); td_api_block::add('td_block_slide', array('map_in_visual_composer' => true, "name" => '幻灯片', "base" => "td_block_slide", "class" => "td_block_slide", "controls" => "full", "category" => '区块', 'icon' => 'icon-pagebuilder-slide', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_slide.php', "params" => array_merge(self::td_slide_params(), self::get_map_block_ajax_filter_array()))); td_api_block::add('td_block_text_with_title', array('map_in_visual_composer' => true, "name" => '文字带标题', "base" => "td_block_text_with_title", "class" => "", "controls" => "full", "category" => '区块', 'icon' => 'icon-pagebuilder-title', 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_text_with_title.php', "params" => array(array("param_name" => "custom_title", "type" => "textfield", "value" => '', "heading" => "区块标题", "description" => "", "holder" => "div", "class" => ""), array("param_name" => "content", "type" => "textarea_html", "holder" => "div", "class" => "", "heading" => '文字', "value" => "", "description" => '输入您的内容.'), array("type" => "colorpicker", "holder" => "div", "class" => "", "heading" => '标题文字颜色', "param_name" => "header_text_color", "value" => '', "description" => '可选 - 为此区块选择自定义文字颜色'), array("type" => "colorpicker", "holder" => "div", "class" => "", "heading" => '标题背景颜色', "param_name" => "header_color", "value" => '', "description" => '可选 - 为此区块选择自定义标题背景颜色')))); td_api_block::add('td_block_related_posts', array('map_in_visual_composer' => false, 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_related_posts.php')); td_api_block::add('td_block_mega_menu', array('map_in_visual_composer' => false, 'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_mega_menu.php', 'render_atts' => array('show_child_cat' => 30))); /** * block templates */ td_api_block_template::add('td_block_template_1', array('file' => td_global::$get_template_directory . '/includes/block_templates/td_block_template_1.php')); /** * category templates */ td_api_category_template::add('td_category_template_1', array('file' => td_global::$get_template_directory . '/includes/category_templates/td_category_template_1.php', 'img' => td_global::$get_template_directory_uri . '/images/panel/category_templates/icon-category-1.png', 'text' => '风格 1')); td_api_category_template::add('td_category_template_2', array('file' => td_global::$get_template_directory . '/includes/category_templates/td_category_template_2.php', 'img' => td_global::$get_template_directory_uri . '/images/panel/category_templates/icon-category-2.png', 'text' => '风格 2')); td_api_category_template::add('td_category_template_3', array('file' => td_global::$get_template_directory . '/includes/category_templates/td_category_template_3.php', 'img' => td_global::$get_template_directory_uri . '/images/panel/category_templates/icon-category-3.png', 'text' => '风格 3')); td_api_category_template::add('td_category_template_4', array('file' => td_global::$get_template_directory . '/includes/category_templates/td_category_template_4.php', 'img' => td_global::$get_template_directory_uri . '/images/panel/category_templates/icon-category-4.png', 'text' => '风格 4')); td_api_category_template::add('td_category_template_5', array('file' => td_global::$get_template_directory . '/includes/category_templates/td_category_template_5.php', 'img' => td_global::$get_template_directory_uri . '/images/panel/category_templates/icon-category-5.png', 'text' => '风格 5')); td_api_category_template::add('td_category_template_6', array('file' => td_global::$get_template_directory . '/includes/category_templates/td_category_template_6.php', 'img' => td_global::$get_template_directory_uri . '/images/panel/category_templates/icon-category-6.png', 'text' => '风格 6')); td_api_category_template::add('td_category_template_7', array('file' => td_global::$get_template_directory . '/includes/category_templates/td_category_template_7.php', 'img' => td_global::$get_template_directory_uri . '/images/panel/category_templates/icon-category-7.png', 'text' => '风格 7')); td_api_category_template::add('td_category_template_8', array('file' => td_global::$get_template_directory . '/includes/category_templates/td_category_template_8.php', 'img' => td_global::$get_template_directory_uri . '/images/panel/category_templates/icon-category-8.png', 'text' => '风格 8')); /** * category top posts styles */ td_api_category_top_posts_style::add('td_category_top_posts_style_1', array('file' => td_global::$get_template_directory . '/includes/category_top_posts_styles/td_category_top_posts_style_1.php', 'posts_shown_in_the_loop' => 5, 'img' => td_global::$get_template_directory_uri . '/images/panel/category_templates/icon-category-top-1.png', 'text' => '网格 1', 'td_block_name' => 'td_block_big_grid_1')); td_api_category_top_posts_style::add('td_category_top_posts_style_2', array('file' => td_global::$get_template_directory . '/includes/category_top_posts_styles/td_category_top_posts_style_2.php', 'posts_shown_in_the_loop' => 4, 'img' => td_global::$get_template_directory_uri . '/images/panel/category_templates/icon-category-top-2.png', 'text' => '网格 2', 'td_block_name' => 'td_block_big_grid_2')); td_api_category_top_posts_style::add('td_category_top_posts_style_3', array('file' => td_global::$get_template_directory . '/includes/category_top_posts_styles/td_category_top_posts_style_3.php', 'posts_shown_in_the_loop' => 4, 'img' => td_global::$get_template_directory_uri . '/images/panel/category_templates/icon-category-top-3.png', 'text' => '网格 3', 'td_block_name' => 'td_block_big_grid_3')); td_api_category_top_posts_style::add('td_category_top_posts_style_4', array('file' => td_global::$get_template_directory . '/includes/category_top_posts_styles/td_category_top_posts_style_4.php', 'posts_shown_in_the_loop' => 2, 'img' => td_global::$get_template_directory_uri . '/images/panel/category_templates/icon-category-top-4.png', 'text' => '网格 4', 'td_block_name' => 'td_block_big_grid_4')); td_api_category_top_posts_style::add('td_category_top_posts_style_5', array('file' => td_global::$get_template_directory . '/includes/category_top_posts_styles/td_category_top_posts_style_5.php', 'posts_shown_in_the_loop' => 3, 'img' => td_global::$get_template_directory_uri . '/images/panel/category_templates/icon-category-top-5.png', 'text' => '网格 5', 'td_block_name' => 'td_block_big_grid_5')); td_api_category_top_posts_style::add('td_category_top_posts_style_6', array('file' => td_global::$get_template_directory . '/includes/category_top_posts_styles/td_category_top_posts_style_6.php', 'posts_shown_in_the_loop' => 7, 'img' => td_global::$get_template_directory_uri . '/images/panel/category_templates/icon-category-top-6.png', 'text' => '网格 6', 'td_block_name' => 'td_block_big_grid_6')); td_api_category_top_posts_style::add('td_category_top_posts_style_7', array('file' => td_global::$get_template_directory . '/includes/category_top_posts_styles/td_category_top_posts_style_7.php', 'posts_shown_in_the_loop' => 7, 'img' => td_global::$get_template_directory_uri . '/images/panel/category_templates/icon-category-top-7.png', 'text' => '网格 7', 'td_block_name' => 'td_block_big_grid_7')); td_api_category_top_posts_style::add('td_category_top_posts_style_8', array('file' => td_global::$get_template_directory . '/includes/category_top_posts_styles/td_category_top_posts_style_8.php', 'posts_shown_in_the_loop' => 7, 'img' => td_global::$get_template_directory_uri . '/images/panel/category_templates/icon-category-top-8.png', 'text' => '网格 8', 'td_block_name' => 'td_block_big_grid_8')); td_api_category_top_posts_style::add('td_category_top_posts_style_disable', array('file' => td_global::$get_template_directory . '/includes/category_top_posts_styles/td_category_top_posts_style_disable.php', 'posts_shown_in_the_loop' => 0, 'img' => td_global::$get_template_directory_uri . '/images/panel/category_templates/icon-category-top-disable.png', 'text' => '禁用', 'td_block_name' => '')); /** * the td_api_top_bar_template */ td_api_top_bar_template::add('td_top_bar_template_1', array('img' => td_global::$get_template_directory_uri . '/images/panel/top_bar_templates/icon-top-bar-1.png', 'file' => td_global::$get_template_directory . '/parts/header/td_top_bar_template_1.php')); td_api_top_bar_template::add('td_top_bar_template_2', array('img' => td_global::$get_template_directory_uri . '/images/panel/top_bar_templates/icon-top-bar-2.png', 'file' => td_global::$get_template_directory . '/parts/header/td_top_bar_template_2.php')); td_api_top_bar_template::add('td_top_bar_template_3', array('img' => td_global::$get_template_directory_uri . '/images/panel/top_bar_templates/icon-top-bar-3.png', 'file' => td_global::$get_template_directory . '/parts/header/td_top_bar_template_3.php')); td_api_top_bar_template::add('td_top_bar_template_4', array('img' => td_global::$get_template_directory_uri . '/images/panel/top_bar_templates/icon-top-bar-4.png', 'file' => td_global::$get_template_directory . '/parts/header/td_top_bar_template_4.php')); /** * the td_api_footer */ td_api_footer_template::add('td_footer_template_1', array('img' => td_global::$get_template_directory_uri . '/images/panel/footer_templates/icon-footer-1.png', 'file' => td_global::$get_template_directory . '/parts/footer/td_footer_template_1.php', 'text' => '风格 1')); td_api_footer_template::add('td_footer_template_2', array('img' => td_global::$get_template_directory_uri . '/images/panel/footer_templates/icon-footer-2.png', 'file' => td_global::$get_template_directory . '/parts/footer/td_footer_template_2.php', 'text' => '风格 2')); td_api_footer_template::add('td_footer_template_3', array('img' => td_global::$get_template_directory_uri . '/images/panel/footer_templates/icon-footer-3.png', 'file' => td_global::$get_template_directory . '/parts/footer/td_footer_template_3.php', 'text' => '风格 3')); td_api_footer_template::add('td_footer_template_4', array('img' => td_global::$get_template_directory_uri . '/images/panel/footer_templates/icon-footer-4.png', 'file' => td_global::$get_template_directory . '/parts/footer/td_footer_template_4.php', 'text' => '风格 4')); td_api_footer_template::add('td_footer_template_5', array('img' => td_global::$get_template_directory_uri . '/images/panel/footer_templates/icon-footer-5.png', 'file' => td_global::$get_template_directory . '/parts/footer/td_footer_template_5.php', 'text' => '风格 5')); td_api_footer_template::add('td_footer_template_6', array('img' => td_global::$get_template_directory_uri . '/images/panel/footer_templates/icon-footer-6.png', 'file' => td_global::$get_template_directory . '/parts/footer/td_footer_template_6.php', 'text' => '风格 6')); td_api_footer_template::add('td_footer_template_7', array('img' => td_global::$get_template_directory_uri . '/images/panel/footer_templates/icon-footer-7.png', 'file' => td_global::$get_template_directory . '/parts/footer/td_footer_template_7.php', 'text' => '风格 7')); td_api_footer_template::add('td_footer_template_8', array('img' => td_global::$get_template_directory_uri . '/images/panel/footer_templates/icon-footer-8.png', 'file' => td_global::$get_template_directory . '/parts/footer/td_footer_template_8.php', 'text' => '风格 8')); td_api_footer_template::add('td_footer_template_9', array('img' => td_global::$get_template_directory_uri . '/images/panel/footer_templates/icon-footer-9.png', 'file' => td_global::$get_template_directory . '/parts/footer/td_footer_template_9.php', 'text' => '风格 9')); td_api_footer_template::add('td_footer_template_10', array('img' => td_global::$get_template_directory_uri . '/images/panel/footer_templates/icon-footer-10.png', 'file' => td_global::$get_template_directory . '/parts/footer/td_footer_template_10.php', 'text' => '风格 10')); td_api_footer_template::add('td_footer_template_11', array('img' => td_global::$get_template_directory_uri . '/images/panel/footer_templates/icon-footer-11.png', 'file' => td_global::$get_template_directory . '/parts/footer/td_footer_template_11.php', 'text' => '风格 11')); td_api_footer_template::add('td_footer_template_12', array('img' => td_global::$get_template_directory_uri . '/images/panel/footer_templates/icon-footer-12.png', 'file' => td_global::$get_template_directory . '/parts/footer/td_footer_template_12.php', 'text' => '风格 12')); /** * set the custom css fields for the panel @see td_panel_custom_css.php * and also for the wp_footer hook @see td_bottom_code() */ td_global::$theme_panel_custom_css_fields_list = array('tds_responsive_css_desktop' => array('text' => '桌面', 'description' => '1141px +', 'media_query' => '@media (min-width: 1141px)', 'img' => td_global::$get_template_directory_uri . '/includes/wp_booster/wp-admin/images/panel/resp-desktop.png'), 'tds_responsive_css_ipad_landscape' => array('text' => 'IPAD横向', 'description' => '1019px - 1140px', 'media_query' => '@media (min-width: 1019px) and (max-width: 1140px)', 'img' => td_global::$get_template_directory_uri . '/includes/wp_booster/wp-admin/images/panel/resp-ipado.png'), 'tds_responsive_css_ipad_portrait' => array('text' => 'IPAD竖向', 'description' => '768px - 1018px', 'media_query' => '@media (min-width: 768px) and (max-width: 1018px)', 'img' => td_global::$get_template_directory_uri . '/includes/wp_booster/wp-admin/images/panel/resp-ipadv.png'), 'tds_responsive_css_phone' => array('text' => '手机', 'description' => '0 - 767px', 'media_query' => '@media (max-width: 767px)', 'img' => td_global::$get_template_directory_uri . '/includes/wp_booster/wp-admin/images/panel/resp-phone.png')); /** * The typography settings for the panel and css compiler */ td_global::$typography_settings_list = array('页眉' => array('top_menu' => array('text' => '顶部菜单', 'type' => 'default'), 'top_sub_menu' => array('text' => '顶部子菜单', 'type' => 'default'), 'main_menu' => array('text' => '主菜单', 'type' => 'default'), 'main_sub_menu' => array('text' => '主要子菜单', 'type' => 'default'), 'mega_menu' => array('text' => '大菜单', 'type' => 'default'), 'mega_menu_categ' => array('text' => '大菜单子分类', 'type' => 'default'), 'mobile_menu' => array('text' => '手机菜单', 'type' => 'default'), 'mobile_sub_menu' => array('text' => '手机子菜单', 'type' => 'default')), '模块和区块常规' => array('blocks_title' => array('text' => '区块/小工具标题', 'type' => 'default'), 'blocks_author' => array('text' => '作者', 'type' => 'default'), 'blocks_date' => array('text' => '日期', 'type' => 'default'), 'blocks_comment' => array('text' => '评论', 'type' => 'default'), 'blocks_category' => array('text' => '分类标签', 'type' => 'default'), 'blocks_filter' => array('text' => '筛选下拉', 'type' => 'default'), 'blocks_excerpt' => array('text' => '摘要', 'type' => 'default')), '模块和区块 - 文章标题' => array('modules_general' => array('text' => '常规字体', 'type' => 'general_setting'), 'module_1' => array('text' => '模块 1', 'type' => 'default'), 'module_2' => array('text' => '模块 2', 'type' => 'default'), 'module_3' => array('text' => '模块 3', 'type' => 'default'), 'module_4' => array('text' => '模块 4', 'type' => 'default'), 'module_5' => array('text' => '模块 5', 'type' => 'default'), 'module_6' => array('text' => '模块 6', 'type' => 'default'), 'module_7' => array('text' => '模块 7', 'type' => 'default'), 'module_8' => array('text' => '模块 8', 'type' => 'default'), 'module_9' => array('text' => '模块 9', 'type' => 'default'), 'module_10' => array('text' => '模块 10', 'type' => 'default'), 'module_11' => array('text' => '模块 11', 'type' => 'default'), 'module_12' => array('text' => '模块 12', 'type' => 'default'), 'module_13' => array('text' => '模块 13', 'type' => 'default'), 'module_14' => array('text' => '模块 14', 'type' => 'default'), 'module_15' => array('text' => '模块 15', 'type' => 'default'), 'module_16' => array('text' => '模块 16', 'type' => 'default')), '模块MX和其它区块 - 文章标题' => array('other_modules_general' => array('text' => '常规字体', 'type' => 'general_setting'), 'module_mx1' => array('text' => '模块 MX1', 'type' => 'default'), 'module_mx2' => array('text' => '模块 MX2', 'type' => 'default'), 'module_mx3' => array('text' => '模块 MX3', 'type' => 'default'), 'module_mx4' => array('text' => '模块 MX4', 'type' => 'default'), 'module_mx7' => array('text' => '模块 MX7', 'type' => 'default'), 'module_mx8' => array('text' => '模块 MX8', 'type' => 'default'), 'news_ticker' => array('text' => '新闻速递', 'type' => 'default'), 'slider_1columns' => array('text' => '1列幻灯片', 'type' => 'default'), 'slider_2columns' => array('text' => '2列幻灯片', 'type' => 'default'), 'slider_3columns' => array('text' => '3列幻灯片', 'type' => 'default'), 'big_grid_tiny' => array('text' => '大网格 - 微型图片', 'type' => 'default'), 'big_grid_small' => array('text' => '大网格 - 小图片', 'type' => 'default'), 'big_grid_medium' => array('text' => '大网格 - 中图片', 'type' => 'default'), 'big_grid_big' => array('text' => '大网格 - 大图片', 'type' => 'default'), 'homepage_post' => array('text' => '首页文章', 'type' => 'default')), '文章标题' => array('post_general' => array('text' => '常规字体', 'type' => 'general_setting'), 'post_title' => array('text' => '默认模板', 'type' => 'default'), 'post_title_style1' => array('text' => '风格1模板', 'type' => 'default'), 'post_title_style2' => array('text' => '风格2模板', 'type' => 'default'), 'post_title_style3' => array('text' => '风格3模板', 'type' => 'default'), 'post_title_style4' => array('text' => '风格4模板', 'type' => 'default'), 'post_title_style5' => array('text' => '风格5模板', 'type' => 'default'), 'post_title_style6' => array('text' => '风格6模板', 'type' => 'default'), 'post_title_style7' => array('text' => '风格7模板', 'type' => 'default'), 'post_title_style8' => array('text' => '风格8模板', 'type' => 'default'), 'post_title_style9' => array('text' => '风格9模板', 'type' => 'default'), 'post_title_style10' => array('text' => '风格10模板', 'type' => 'default'), 'post_title_style11' => array('text' => '风格11模板', 'type' => 'default'), 'post_title_style12' => array('text' => '风格12模板', 'type' => 'default'), 'post_title_style13' => array('text' => '风格13模板', 'type' => 'default')), '文章内容' => array('post_content' => array('text' => '文章内容', 'type' => 'default'), 'post_blockquote' => array('text' => '默认引用', 'type' => 'default'), 'post_box_quote' => array('text' => '框引用', 'type' => 'default'), 'post_pull_quote' => array('text' => '大段引用', 'type' => 'default'), 'post_lists' => array('text' => '列表', 'type' => 'default'), 'post_h1' => array('text' => 'H1', 'type' => 'default'), 'post_h2' => array('text' => 'H2', 'type' => 'default'), 'post_h3' => array('text' => 'H3', 'type' => 'default'), 'post_h4' => array('text' => 'H4', 'type' => 'default'), 'post_h5' => array('text' => 'H5', 'type' => 'default'), 'post_h6' => array('text' => 'H6', 'type' => 'default')), '文章元素' => array('post_category' => array('text' => '分类标签', 'type' => 'default'), 'post_author' => array('text' => '作者', 'type' => 'default'), 'post_date' => array('text' => '日期', 'type' => 'default'), 'post_comment' => array('text' => '查看和评论', 'type' => 'default'), 'via_source_tag' => array('text' => '通过/来源/标签', 'type' => 'default'), 'post_next_prev_text' => array('text' => '下一个/上一个文字', 'type' => 'default'), 'post_next_prev' => array('text' => '下一个/上一个文章标题', 'type' => 'default'), 'box_author_name' => array('text' => '框作者名字', 'type' => 'default'), 'box_author_url' => array('text' => '框作者网址', 'type' => 'default'), 'box_author_description' => array('text' => '框作者描述', 'type' => 'default'), 'post_related' => array('text' => '相关文章标题', 'type' => 'default'), 'post_share' => array('text' => '选择文字', 'type' => 'default'), 'post_image_caption' => array('text' => '图片字幕', 'type' => 'default'), 'post_subtitle_small' => array('text' => '子标题文章风格默认, 1, 4, 5, 9, 10, 11', 'type' => 'default'), 'post_subtitle_large' => array('text' => '子标题文章风格 2, 3, 6, 7, 8', 'type' => 'default')), '页面' => array('page_title' => array('text' => '页面标题', 'type' => 'default'), 'page_content' => array('text' => '页面内容', 'type' => 'default'), 'page_h1' => array('text' => 'H1', 'type' => 'default'), 'page_h2' => array('text' => 'H2', 'type' => 'default'), 'page_h3' => array('text' => 'H3', 'type' => 'default'), 'page_h4' => array('text' => 'H4', 'type' => 'default'), 'page_h5' => array('text' => 'H5', 'type' => 'default'), 'page_h6' => array('text' => 'H6', 'type' => 'default')), '页脚' => array('footer_text_about' => array('text' => 'LOGO下文字', 'type' => 'default'), 'footer_copyright_text' => array('text' => '版权文字', 'type' => 'default'), 'footer_menu_text' => array('text' => '页脚菜单', 'type' => 'default')), '其它' => array('breadcrumb' => array('text' => '面包屑导航', 'type' => 'default'), 'category_tag' => array('text' => '分类页子分类标签', 'type' => 'default'), 'news_ticker_title' => array('text' => '新闻速递标题', 'type' => 'default'), 'pagination' => array('text' => '页码', 'type' => 'default'), 'dropcap' => array('text' => '下沉', 'type' => 'default'), 'default_widgets' => array('text' => '默认小工具', 'type' => 'default'), 'default_buttons' => array('text' => '默认按钮', 'type' => 'default'), 'woocommerce_products' => array('text' => 'Woocommerce产品标题', 'type' => 'default'), 'woocommerce_product_title' => array('text' => '产品页产品标题', 'type' => 'default')), '主体' => array('body_text' => array('text' => '主体 - 常规字体', 'type' => 'default')), 'bbPress - 论坛' => array('bbpress_header' => array('text' => '页眉', 'type' => 'default'), 'bbpress_titles' => array('text' => '论坛和话题标题', 'type' => 'default'), 'bbpress_subcategories' => array('text' => '子分类标题', 'type' => 'default'), 'bbpress_description' => array('text' => '分类描述', 'type' => 'default'), 'bbpress_author' => array('text' => '作者名', 'type' => 'default'), 'bbpress_replies' => array('text' => '回复内容', 'type' => 'default'), 'bbpress_notices' => array('text' => '通知/信息', 'type' => 'default'), 'bbpress_pagination' => array('text' => '页码文字', 'type' => 'default'), 'bbpress_topic' => array('text' => '话题详情', 'type' => 'default'))); // end td_global::$typography_settings_list /** * the default fonts used by the theme. For a list of fonts ids @see td_fonts::$font_names_google_list */ td_global::$default_google_fonts_list = array('438' => array('css_style_id' => 'google_font_open_sans', 'url' => td_global::$http_or_https . '://fonts.useso.com/css?family=Open+Sans:300italic,400italic,600italic,400,600,700'), '521' => array('css_style_id' => 'google_font_roboto', 'url' => td_global::$http_or_https . '://fonts.useso.com/css?family=Roboto:500,400italic,700,500italic,400')); /** * the stacks are stored in /includes/stacks * stack_filename (without .txt) => stack_name * @var array */ td_global::$demo_list = array('default' => array('text' => '默认演示', 'folder' => td_global::$get_template_directory . '/includes/demos/default/', 'img' => td_global::$get_template_directory_uri . '/includes/demos/default/screenshot.png', 'demo_url' => 'http://demo.tagdiv.com/newspaper/', 'td_css_generator_demo' => false), 'cars' => array('text' => '汽车演示 - <span style=\'color: #4db2ec;\'>新</span>', 'folder' => td_global::$get_template_directory . '/includes/demos/cars/', 'img' => td_global::$get_template_directory_uri . '/includes/demos/cars/screenshot.png', 'demo_url' => 'http://demo.tagdiv.com/newspaper_cars/', 'td_css_generator_demo' => true), 'travel' => array('text' => '旅游演示 - <span style=\'color: #4db2ec;\'>新</span>', 'folder' => td_global::$get_template_directory . '/includes/demos/travel/', 'img' => td_global::$get_template_directory_uri . '/includes/demos/travel/screenshot.png', 'demo_url' => 'http://demo.tagdiv.com/newspaper_travel/', 'td_css_generator_demo' => true), 'health' => array('text' => '保健与健身演示 - <span style=\'color: #4db2ec;\'>新</span>', 'folder' => td_global::$get_template_directory . '/includes/demos/health/', 'img' => td_global::$get_template_directory_uri . '/includes/demos/health/screenshot.png', 'demo_url' => 'http://demo.tagdiv.com/newspaper_health/', 'td_css_generator_demo' => true), 'tech' => array('text' => '科技演示', 'folder' => td_global::$get_template_directory . '/includes/demos/tech/', 'img' => td_global::$get_template_directory_uri . '/includes/demos/tech/screenshot.png', 'demo_url' => 'http://demo.tagdiv.com/newspaper_tech/', 'td_css_generator_demo' => false), 'sport' => array('text' => '运动演示', 'folder' => td_global::$get_template_directory . '/includes/demos/sport/', 'img' => td_global::$get_template_directory_uri . '/includes/demos/sport/screenshot.png', 'demo_url' => 'http://demo.tagdiv.com/newspaper_sport/', 'td_css_generator_demo' => false), 'fashion' => array('text' => '时尚演示', 'folder' => td_global::$get_template_directory . '/includes/demos/fashion/', 'img' => td_global::$get_template_directory_uri . '/includes/demos/fashion/screenshot.png', 'demo_url' => 'http://demo.tagdiv.com/newspaper_fashion/', 'td_css_generator_demo' => false), 'video' => array('text' => '视频演示', 'folder' => td_global::$get_template_directory . '/includes/demos/video/', 'img' => td_global::$get_template_directory_uri . '/includes/demos/video/screenshot.png', 'demo_url' => 'http://demo.tagdiv.com/newspaper_video/', 'td_css_generator_demo' => false), 'blog' => array('text' => '经典博客演示', 'folder' => td_global::$get_template_directory . '/includes/demos/blog/', 'img' => td_global::$get_template_directory_uri . '/includes/demos/blog/screenshot.png', 'demo_url' => 'http://demo.tagdiv.com/newspaper_classic_blog/', 'td_css_generator_demo' => false)); if (is_admin()) { /** * generate the theme panel */ td_global::$all_theme_panels_list = array('theme_panel' => array('title' => TD_THEME_NAME . ' - 主题面板', 'subtitle' => '版本: ' . TD_THEME_VERSION, 'panels' => array('td-panel-header' => array('text' => '页眉', 'ico_class' => 'td-ico-header', 'file' => td_global::$get_template_directory . '/includes/wp_booster/wp-admin/panel/views/td_panel_header.php', 'type' => 'in_theme'), 'td-panel-footer' => array('text' => '页脚', 'ico_class' => 'td-ico-footer', 'file' => td_global::$get_template_directory . '/includes/wp_booster/wp-admin/panel/views/td_panel_footer.php', 'type' => 'in_theme'), 'td-panel-ads' => array('text' => '广告', 'ico_class' => 'td-ico-ads', 'file' => td_global::$get_template_directory . '/includes/panel/views/td_panel_ads.php', 'type' => 'in_theme'), 'td-panel-separator-1' => array('text' => '布局设置', 'type' => 'separator'), 'td-panel-template-settings' => array('text' => '模板设置', 'ico_class' => 'td-ico-template', 'file' => td_global::$get_template_directory . '/includes/wp_booster/wp-admin/panel/views/td_panel_template_settings.php', 'type' => 'in_theme'), 'td-panel-categories' => array('text' => '分类', 'ico_class' => 'td-ico-categories', 'file' => td_global::$get_template_directory . '/includes/wp_booster/wp-admin/panel/views/td_panel_categories.php', 'type' => 'in_theme'), 'td-panel-post-settings' => array('text' => '文章设置', 'ico_class' => 'td-ico-post', 'file' => td_global::$get_template_directory . '/includes/wp_booster/wp-admin/panel/views/td_panel_post_settings.php', 'type' => 'in_theme'), 'td-panel-separator-2' => array('text' => '杂项', 'type' => 'separator'), 'td-panel-block-style' => array('text' => '区块设置', 'ico_class' => 'td-ico-block', 'file' => td_global::$get_template_directory . '/includes/panel/views/td_panel_block_settings.php', 'type' => 'in_theme'), 'td-panel-background' => array('text' => '背景', 'ico_class' => 'td-ico-background', 'file' => td_global::$get_template_directory . '/includes/wp_booster/wp-admin/panel/views/td_panel_background.php', 'type' => 'in_theme'), 'td-panel-excerpts' => array('text' => '摘要', 'ico_class' => 'td-ico-excerpts', 'file' => td_global::$get_template_directory . '/includes/wp_booster/wp-admin/panel/views/td_panel_excerpts.php', 'type' => 'in_theme'), 'td-panel-translates' => array('text' => '翻译', 'ico_class' => 'td-ico-translation', 'file' => td_global::$get_template_directory . '/includes/wp_booster/wp-admin/panel/views/td_panel_translations.php', 'type' => 'in_theme'), 'td-panel-theme-colors' => array('text' => '主题颜色', 'ico_class' => 'td-ico-color', 'file' => td_global::$get_template_directory . '/includes/panel/views/td_panel_theme_colors.php', 'type' => 'in_theme'), 'td-panel-theme-fonts' => array('text' => '主题字体', 'ico_class' => 'td-ico-typography', 'file' => td_global::$get_template_directory . '/includes/panel/views/td_panel_theme_fonts.php', 'type' => 'in_theme'), 'td-panel-custom-css' => array('text' => '自定义CSS', 'ico_class' => 'td-ico-css', 'file' => td_global::$get_template_directory . '/includes/wp_booster/wp-admin/panel/views/td_panel_custom_css.php', 'type' => 'in_theme'), 'td-panel-custom-javascript' => array('text' => '自定义JAVASCRIPT', 'ico_class' => 'td-ico-js', 'file' => td_global::$get_template_directory . '/includes/wp_booster/wp-admin/panel/views/td_panel_custom_javascript.php', 'type' => 'in_theme'), 'td-panel-analytics' => array('text' => '分析', 'ico_class' => 'td-ico-analytics', 'file' => td_global::$get_template_directory . '/includes/wp_booster/wp-admin/panel/views/td_panel_analytics.php', 'type' => 'in_theme'), 'td-panel-social-networks' => array('text' => '社交网络', 'ico_class' => 'td-ico-social', 'file' => td_global::$get_template_directory . '/includes/wp_booster/wp-admin/panel/views/td_panel_social_networks.php', 'type' => 'in_theme'), 'td-panel-cpt-taxonomy' => array('text' => 'CPT和分类法', 'ico_class' => 'td-ico-cpt', 'file' => td_global::$get_template_directory . '/includes/wp_booster/wp-admin/panel/views/td_panel_cpt_taxonomy.php', 'type' => 'in_theme'), 'td-link-1' => array('text' => '导入/导出', 'url' => '?page=td_theme_panel&td_page=td_view_import_export_settings', 'type' => 'link')))); /* * the list with custom texts of the theme */ td_global::$td_wp_admin_text_list = array('text_featured_video' => ' <div class="td-wpa-info">从Vimeo或Youtube粘贴一个链接,它将嵌入到文章,且缩略用于此文章特色图像。<br/>你需要从上面使用精选视频选择<strong>视频格式</strong></div> <div class="td-wpa-info"><strong>注意:</strong>仅用于这些文章模板: <ul> <li>文章风格模板</li> <li>文章风格 1</li> <li>文章风格 2</li> <li>文章风格 9</li> <li>文章风格 10</li> <li>文章风格 11</li> </ul> </div>', 'text_header_logo' => '页眉风格9、风格10和风格11文字logo:', 'text_header_logo_description' => '文字LOGO仅用于风格9、风格10和风格11 - 完整菜单 + 文字LOGO。其它页眉风格仅使用图片', 'text_header_logo_mobile' => '风格 4, 风格 5, 风格 6, 风格 7, 风格 8 或 风格 12', 'text_header_logo_mobile_image' => '140 x 48px', 'text_header_logo_mobile_image_retina' => '280 x 96px', 'text_smart_sidebar_widget_support' => ' <ul> <li>[tagDiv] 现在趋势</li> </ul> '); /** * the tiny mce image style list */ td_global::$tiny_mce_image_style_list = array(); /** * the tiny mce styles */ td_api_tinymce_formats::add('td_tinymce_item_1', array('title' => '文字填充')); td_api_tinymce_formats::add('td_tinymce_item_1_1', array('parent_id' => 'td_tinymce_item_1', 'title' => '文字 ⇠', 'block' => 'div', 'classes' => 'td-paragraph-padding-0', 'wrapper' => true)); td_api_tinymce_formats::add('td_tinymce_item_1_2', array('parent_id' => 'td_tinymce_item_1', 'title' => '⇢ 文字', 'block' => 'div', 'classes' => 'td-paragraph-padding-4', 'wrapper' => true)); td_api_tinymce_formats::add('td_tinymce_item_1_3', array('parent_id' => 'td_tinymce_item_1', 'title' => '⇢ 文字 ⇠', 'block' => 'div', 'classes' => 'td-paragraph-padding-1', 'wrapper' => true)); td_api_tinymce_formats::add('td_tinymce_item_1_4', array('parent_id' => 'td_tinymce_item_1', 'title' => '⇢ 文字 ⇠⇠', 'block' => 'div', 'classes' => 'td-paragraph-padding-3', 'wrapper' => true)); td_api_tinymce_formats::add('td_tinymce_item_1_5', array('parent_id' => 'td_tinymce_item_1', 'title' => '⇢⇢ 文字 ⇠', 'block' => 'div', 'classes' => 'td-paragraph-padding-6', 'wrapper' => true)); td_api_tinymce_formats::add('td_tinymce_item_1_6', array('parent_id' => 'td_tinymce_item_1', 'title' => '⇢⇢ 文字 ⇠⇠', 'block' => 'div', 'classes' => 'td-paragraph-padding-2', 'wrapper' => true)); td_api_tinymce_formats::add('td_tinymce_item_1_7', array('parent_id' => 'td_tinymce_item_1', 'title' => '⇢⇢⇢ 文字 ⇠⇠⇠', 'block' => 'div', 'classes' => 'td-paragraph-padding-5', 'wrapper' => true)); td_api_tinymce_formats::add('td_tinymce_item_2', array('title' => '文字滚动效果')); td_api_tinymce_formats::add('td_tinymce_item_2_1', array('parent_id' => 'td_tinymce_item_2', 'title' => '淡入灰色背景', 'selector' => 'p, h3, blockquote', 'classes' => 'td-scroll-e-text-1 td-scroll-effect', 'icon' => 'td-test-icons')); td_api_tinymce_formats::add('td_tinymce_item_2_2', array('parent_id' => 'td_tinymce_item_2', 'title' => '淡入文字颜色边框', 'selector' => 'p, h3, blockquote', 'classes' => 'td-scroll-e-text-2 td-scroll-effect', 'icon' => 'td-test-icons')); td_api_tinymce_formats::add('td_tinymce_item_3', array('title' => '箭头列表', 'selector' => 'ul', 'classes' => 'td-arrow-list')); td_api_tinymce_formats::add('td_blockquote', array('title' => '引用')); td_api_tinymce_formats::add('td_blockquote_1', array('parent_id' => 'td_blockquote', 'title' => '左引用', 'block' => 'blockquote', 'classes' => 'td_quote td_quote_left', 'wrapper' => true)); td_api_tinymce_formats::add('td_blockquote_2', array('parent_id' => 'td_blockquote', 'title' => '右引用', 'block' => 'blockquote', 'classes' => 'td_quote td_quote_right', 'wrapper' => true)); td_api_tinymce_formats::add('td_blockquote_3', array('parent_id' => 'td_blockquote', 'title' => '中间框引用', 'block' => 'blockquote', 'classes' => 'td_quote_box td_box_center', 'wrapper' => true)); td_api_tinymce_formats::add('td_blockquote_4', array('parent_id' => 'td_blockquote', 'title' => '左框引用', 'block' => 'blockquote', 'classes' => 'td_quote_box td_box_left', 'wrapper' => true)); td_api_tinymce_formats::add('td_blockquote_5', array('parent_id' => 'td_blockquote', 'title' => '右框引用', 'block' => 'blockquote', 'classes' => 'td_quote_box td_box_right', 'wrapper' => true)); td_api_tinymce_formats::add('td_blockquote_6', array('parent_id' => 'td_blockquote', 'title' => '中间大段引用', 'block' => 'blockquote', 'classes' => 'td_pull_quote td_pull_center', 'wrapper' => true)); td_api_tinymce_formats::add('td_blockquote_7', array('parent_id' => 'td_blockquote', 'title' => '左侧大段引用', 'block' => 'blockquote', 'classes' => 'td_pull_quote td_pull_left', 'wrapper' => true)); td_api_tinymce_formats::add('td_blockquote_8', array('parent_id' => 'td_blockquote', 'title' => '左侧大段引用', 'block' => 'blockquote', 'classes' => 'td_pull_quote td_pull_right', 'wrapper' => true)); // two columns text td_api_tinymce_formats::add('td_text_columns', array('title' => '文字列')); td_api_tinymce_formats::add('td_text_columns_0', array('parent_id' => 'td_text_columns', 'title' => '二列', 'block' => 'div', 'classes' => 'td_text_columns_two_cols', 'wrapper' => true)); // dropcap td_api_tinymce_formats::add('td_dropcap', array('title' => '下沉')); td_api_tinymce_formats::add('td_dropcap_0', array('parent_id' => 'td_dropcap', 'title' => '框', 'classes' => 'dropcap', 'inline' => 'span')); td_api_tinymce_formats::add('td_dropcap_1', array('parent_id' => 'td_dropcap', 'title' => '圈', 'classes' => 'dropcap dropcap1', 'inline' => 'span')); td_api_tinymce_formats::add('td_dropcap_2', array('parent_id' => 'td_dropcap', 'title' => '正常', 'classes' => 'dropcap dropcap2', 'inline' => 'span')); td_api_tinymce_formats::add('td_dropcap_3', array('parent_id' => 'td_dropcap', 'title' => '粗', 'classes' => 'dropcap dropcap3', 'inline' => 'span')); // highlighter td_api_tinymce_formats::add('td_text_highlight', array('title' => '文字高亮')); td_api_tinymce_formats::add('td_text_highlight_0', array('parent_id' => 'td_text_highlight', 'title' => '黑色谴责', 'classes' => 'td_text_highlight_0', 'inline' => 'span')); td_api_tinymce_formats::add('td_text_highlight_red', array('parent_id' => 'td_text_highlight', 'title' => '红色标记', 'classes' => 'td_text_highlight_marker_red td_text_highlight_marker', 'inline' => 'span')); td_api_tinymce_formats::add('td_text_highlight_blue', array('parent_id' => 'td_text_highlight', 'title' => '蓝色标记', 'classes' => 'td_text_highlight_marker_blue td_text_highlight_marker', 'inline' => 'span')); td_api_tinymce_formats::add('td_text_highlight_green', array('parent_id' => 'td_text_highlight', 'title' => '绿色标记', 'classes' => 'td_text_highlight_marker_green td_text_highlight_marker', 'inline' => 'span')); td_api_tinymce_formats::add('td_text_highlight_yellow', array('parent_id' => 'td_text_highlight', 'title' => '黄色标记', 'classes' => 'td_text_highlight_marker_yellow td_text_highlight_marker', 'inline' => 'span')); td_api_tinymce_formats::add('td_text_highlight_pink', array('parent_id' => 'td_text_highlight', 'title' => '粉红标记', 'classes' => 'td_text_highlight_marker_pink td_text_highlight_marker', 'inline' => 'span')); // clear elements td_api_tinymce_formats::add('td_clear_elements', array('title' => '清除元素', 'selector' => 'a,p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img,code,blockquote', 'styles' => array('clear' => 'both'))); td_global::$theme_plugins_list = array(array('name' => 'Visual Composer', 'slug' => 'js_composer', 'source' => td_global::$get_template_directory_uri . '/includes/plugins/js_composer.zip', 'required' => true, 'version' => '', 'force_activation' => false, 'force_deactivation' => false, 'external_url' => '', 'img' => td_global::$get_template_directory_uri . '/includes/wp_booster/wp-admin/images/plugins/visual-composer.png', 'text' => '必装插件', 'required_label' => 'required'), array('name' => 'tagDiv social counter', 'slug' => 'td-social-counter', 'source' => td_global::$get_template_directory_uri . '/includes/plugins/td-social-counter.zip', 'required' => false, 'version' => '', 'force_activation' => false, 'force_deactivation' => false, 'external_url' => '', 'img' => td_global::$get_template_directory_uri . '/includes/wp_booster/wp-admin/images/plugins/social.png', 'text' => '<a href="http://forum.tagdiv.com/tagdiv-social-counter-tutorial/" target="_blank">阅读更多</a>', 'required_label' => 'optional'), array('name' => 'Revolution slider v4.6', 'slug' => 'revslider', 'source' => td_global::$get_template_directory_uri . '/includes/plugins/revslider.zip', 'required' => false, 'version' => '', 'force_activation' => false, 'force_deactivation' => false, 'external_url' => '', 'img' => td_global::$get_template_directory_uri . '/includes/wp_booster/wp-admin/images/plugins/rev-slider.png', 'text' => '<a href="http://forum.tagdiv.com/how-to-install-revolution-slider-v5/" target="_blank">如何安装 v5</a>', 'required_label' => 'optional'), array('name' => 'tagDiv Woo Invoice', 'slug' => 'td-woo-invoice', 'source' => td_global::$get_template_directory_uri . '/includes/plugins/td-woo-invoice.zip', 'required' => false, 'version' => '', 'force_activation' => false, 'force_deactivation' => false, 'external_url' => '', 'img' => td_global::$get_template_directory_uri . '/includes/wp_booster/wp-admin/images/plugins/invoice.png', 'text' => '<a href="http://forum.tagdiv.com/tagdiv-woo-invoice-plugin/" target="_blank">阅读更多</a>', 'required_label' => 'optional'), array('name' => 'tagDiv Woo Label', 'slug' => 'td-woo-label', 'source' => td_global::$get_template_directory_uri . '/includes/plugins/td-woo-label.zip', 'required' => false, 'version' => '', 'force_activation' => false, 'force_deactivation' => false, 'external_url' => '', 'img' => td_global::$get_template_directory_uri . '/includes/wp_booster/wp-admin/images/plugins/label.png', 'text' => '<a href="http://forum.tagdiv.com/tagdiv-woo-label-plugin/" target="_blank">阅读更多</a>', 'required_label' => 'optional')); } }