PATH:
home
/
fengshp
/
www
/
wp-content
/
plugins
/
themify-builder-pro
/
modules
<?php if (!defined('ABSPATH')) exit; // Exit if accessed directly /** * Module Name: Archive Posts * Description: */ class TB_Archive_Posts_Module extends Themify_Builder_Component_Module { public static function get_module_name():string { return __('Archive Posts', 'tbp'); } public static function get_module_icon():string { return 'layout-grid2'; } public static function get_js_css():array{ return array( 'css' => array( 'image' => 'image', 'post' => 'post' )); } public static function get_query(array &$args,array &$fields_args) { if (Tbp_Public::$isTemplatePage === true) { $args['ignore_sticky_posts'] = true; } if (is_category() || is_tag() || is_tax()) { $obj = get_queried_object(); if (!empty($obj)) { /*custom post types can be attached to category/tag taxonomies, that is why the post_type may be array*/ $tax = get_taxonomy($obj->taxonomy); if (!empty($tax)) { $args['post_type'] = !isset($tax->object_type[1])?$tax->object_type[0]:$tax->object_type; if (is_category()) { $args['cat'] = $obj->term_id; } elseif (is_tag()) { $args['tag_id'] = $obj->term_id; $fields_args['tax'] = 'post_tag'; } elseif (is_tax()) { $args['tax_query'] = array( array( 'taxonomy' => $obj->taxonomy, 'field' => 'id', 'terms' => $obj->term_id, 'operator' => 'IN' ) ); $fields_args['tax'] = $obj->taxonomy; } } } } elseif (!empty($_GET['tbp_s_term']) && !empty($_GET['s']) && is_search()) { Themify_Builder_Model::parseTermsQuery($args, urldecode($_GET['tbp_s_term']), $_GET['tbp_s_tax']); $args['s'] = urldecode($_GET['s']); $fields_args['tax'] = $_GET['tbp_s_tax']; } else{ global $wp_query; if (is_array($wp_query->query)) { $is_blog_page = is_home() && ! is_front_page(); if ( ! $is_blog_page ) { $args +=$wp_query->query; } if(!empty($wp_query->query['post_type'])){ $args['post_type']=$wp_query->query['post_type']; } elseif(is_search()){ $args['post_type']=get_post_types(array( 'public' => true, 'exclude_from_search'=>false )); /* search pages are ordered by "post_title LIKE %s%" first, date second */ unset( $args['order'] ); unset( $args['orderby'] ); } } } } /** * Render plain content for static content. * * @param array $module * @return string */ public static function get_static_content(array $module):string { return ''; } public function __construct() {//backward if (method_exists('Themify_Builder_Model', 'add_module')) { parent::__construct('archive-posts'); } else {//backward parent::__construct(array( 'name' => $this->get_name(), 'slug' => 'archive-posts', 'category' => $this->get_group() )); } } public function get_name() {//backward return self::get_module_name(); } public function get_icon() {//backward return self::get_module_icon(); } public function get_assets() {//backward return self::get_js_css(); } public function get_styling() {//backward $general = array( // Background self::get_expand('bg', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_image('', 'b_c_g', 'bg_c', 'background-color') ) ), 'h' => array( 'options' => array( self::get_image(':hover', 'b_c_g_h', 'bg_c_h', 'background-color', 'h') ) ) )) )), // Font self::get_expand('f', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_font_family('', 'f_f_g'), self::get_color_type(array(' span', ' span a', ' .tb_text_wrap', ' p', ' .tbp_post_date', '.module .tbp_title', '.module .tbp_title a')), self::get_font_size('', 'f_s_g'), self::get_line_height('', 'l_h_g'), self::get_letter_spacing(' .post', 'l_s_g'), self::get_text_align(' .post', 't_a_g'), self::get_text_transform('', 't_t_g'), self::get_font_style('', 'f_g', 'f_b'), self::get_text_shadow('', 't_sh'), ) ), 'h' => array( 'options' => array( self::get_font_family('', 'f_f_g', 'h'), self::get_color_type(array(' span', ' span a', ' .tb_text_wrap', ' p', ' .tbp_post_date', '.module .tbp_title', '.module .tbp_title a'), 'h'), self::get_font_size('', 'f_s_g', '', 'h'), self::get_font_style('', 'f_g', 'f_b', 'h'), self::get_text_shadow('', 't_sh', 'h'), ) ) )) )), // Link self::get_expand('l', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_color(' a:not(.post-edit-link)', 'l_c_gl'), self::get_text_decoration('a:not(.post-edit-link)', 't_d_gl') ) ), 'h' => array( 'options' => array( self::get_color(' .post a:not(.post-edit-link):hover', 'l_c_gl_h', null, null, ''), self::get_text_decoration(' .post a:not(.post-edit-link):hover', 't_d_gl_h', '') ) ) )) )), // Padding self::get_expand('p', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_padding('', 'g_p') ) ), 'h' => array( 'options' => array( self::get_padding('', 'g_p', 'h') ) ) )) )), // Margin self::get_expand('m', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_margin('', 'g_m') ) ), 'h' => array( 'options' => array( self::get_margin('', 'g_m', 'h') ) ) )), )), // Border self::get_expand('b', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_border('', 'g_b') ) ), 'h' => array( 'options' => array( self::get_border('', 'g_b', 'h') ) ) )) )), // Filter self::get_expand('f_l', array( self::get_tab(array( 'n' => array( 'options' => count($a = self::get_blend(' .loops-wrapper .post')) > 2 ? array($a) : $a ), 'h' => array( 'options' => count($a = self::get_blend(' .loops-wrapper .post', 'bl_m_h', 'h')) > 2 ? array($a + array('ishover' => true)) : $a ) )) ) ), // Width self::get_expand('w', array( self::get_width('', 'w') )), // Height & Min Height self::get_expand('ht', array( self::get_height(), self::get_min_height(), self::get_max_height() ) ), // Rounded Corners self::get_expand('r_c', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_border_radius('', 'r_c') ) ), 'h' => array( 'options' => array( self::get_border_radius('', 'r_c', 'h') ) ) )) )), // Shadow self::get_expand('sh', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_box_shadow('', 'g_sh') ) ), 'h' => array( 'options' => array( self::get_box_shadow('', 'g_sh', 'h') ) ) )) )), // Display self::get_expand('disp', self::get_display()) ); $archive_post_container = array( // Background self::get_expand('bg', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_color(' .post', 'b_c_a_p_cn', 'bg_c', 'background-color') ) ), 'h' => array( 'options' => array( self::get_color(' .post', 'b_c_a_p_cn', 'bg_c', 'background-color', 'h') ) ) )) )), // Padding self::get_expand('p', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_padding(' .post', 'p_cn') ) ), 'h' => array( 'options' => array( self::get_padding(' .post', 'p_cn', 'h') ) ) )) )), // Margin self::get_expand('m', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_heading_margin_multi_field(' .post', '', 'top', 'article'), self::get_heading_margin_multi_field(' .post', '', 'bottom', 'article') ) ), 'h' => array( 'options' => array( self::get_heading_margin_multi_field(' .post', '', 'top', 'article', 'h'), self::get_heading_margin_multi_field(' .post', '', 'bottom', 'article', 'h') ) ) )) )), // Border self::get_expand('b', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_border(' .post', 'b_cn') ) ), 'h' => array( 'options' => array( self::get_border(' .post', 'b_cn', 'h') ) ) )) )), // Rounded Corners self::get_expand('r_c', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_border_radius(' .post', 'r_c_cn') ) ), 'h' => array( 'options' => array( self::get_border_radius(' .post', 'r_c_cn', 'h') ) ) )) )), // Shadow self::get_expand('sh', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_box_shadow(' .post', 'sh_cn') ) ), 'h' => array( 'options' => array( self::get_box_shadow(' .post', 'sh_cn', 'h') ) ) )) )), ); $archive_post_title = array( // Background self::get_expand('bg', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_color('.module .tbp_title', 'b_c_a_p_t', 'bg_c', 'background-color') ) ), 'h' => array( 'options' => array( self::get_color('.module .tbp_title', 'b_c_a_p_t', 'bg_c', 'background-color', 'h') ) ) )) )), // Font self::get_expand('f', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_font_family('.module .tbp_title', 'f_f_a_p_t'), self::get_color(array('.module .tbp_title', ' .tbp_title a'), 'f_c_a_p_t'), self::get_font_size('.module .tbp_title', 'f_s_a_p_t'), self::get_line_height('.module .tbp_title', 'l_h_a_p_t'), self::get_letter_spacing('.module .tbp_title', 'l_s_a_p_t'), self::get_text_transform('.module .tbp_title', 't_t_a_p_t'), self::get_font_style('.module .tbp_title', 'f_sy_a_p_t', 'f_w_a_p_t'), self::get_text_decoration('.module .tbp_title', 't_d_a_p_t'), self::get_text_shadow('.module .tbp_title', 't_sh_a_p_t'), ) ), 'h' => array( 'options' => array( self::get_font_family('.module .tbp_title', 'f_f_a_p_t', 'h'), self::get_color(array('.module .tbp_title', ' .tbp_title a'), 'f_c_a_p_t', null, null, 'hover'), self::get_font_size('.module .tbp_title', 'f_s_a_p_t', '', 'h'), self::get_font_style('.module .tbp_title', 'f_sy_a_p_t', 'f_w_a_p_t', 'h'), self::get_text_decoration('.module .tbp_title', 't_d_a_p_t', 'h'), self::get_text_shadow('.module .tbp_title', 't_sh_a_p_t', 'h'), ) ) )) )), // Link self::get_expand('l', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_color('.module .tbp_title a', 'l_c'), self::get_text_decoration('.module .tbp_title a', 't_d_l') ) ), 'h' => array( 'options' => array( self::get_color('.module .tbp_title a', 'l_c', null, null, 'h'), self::get_text_decoration('.module .tbp_title a', 't_d_l', 'h') ) ) )) )), // Padding self::get_expand('p', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_padding('.module .tbp_title', 'p_a_p_t') ) ), 'h' => array( 'options' => array( self::get_padding('.module .tbp_title', 'p_a_p_t', 'h') ) ) )) )), // Margin self::get_expand('m', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_margin('.module .tbp_title', 'm_a_p_t'), ) ), 'h' => array( 'options' => array( self::get_margin('.module .tbp_title', 'm_a_p_t', 'h'), ) ) )) )), // Border self::get_expand('b', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_border('.module .tbp_title', 'b_a_p_t') ) ), 'h' => array( 'options' => array( self::get_border('.module .tbp_title', 'b_a_p_t', 'h') ) ) )) )), // Shadow self::get_expand('sh', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_box_shadow('.module .tbp_title', 'sh_a_p_t') ) ), 'h' => array( 'options' => array( self::get_box_shadow('.module .tbp_title', 'sh_a_p_t', 'h') ) ) )) )), ); $archive_featured_image = array( // Background self::get_expand('bg', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_color(' .post-image img', 'b_c_a_f_i', 'bg_c', 'background-color') ) ), 'h' => array( 'options' => array( self::get_color(' .post-image img', 'b_c_a_f_i', 'bg_c', 'background-color', 'h') ) ) )) )), // Padding self::get_expand('p', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_padding(' .post-image img', 'p_a_f_i') ) ), 'h' => array( 'options' => array( self::get_padding(' .post-image img', 'p_a_f_i', 'h') ) ) )) )), // Margin self::get_expand('m', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_margin(' .post-image', 'm_a_f_i') ) ), 'h' => array( 'options' => array( self::get_margin(' .post-image', 'm_a_f_i', 'h') ) ) )) )), // Border self::get_expand('b', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_border(' .post-image img', 'b_a_f_i') ) ), 'h' => array( 'options' => array( self::get_border(' .post-image img', 'b_a_f_i', 'h') ) ) )) )), // Rounded Corners self::get_expand('r_c', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_border_radius(' .post-image img', 'r_c_a_f_i') ) ), 'h' => array( 'options' => array( self::get_border_radius(' .post-image img', 'r_c_a_f_i', 'h') ) ) )) )), // Shadow self::get_expand('sh', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_box_shadow(' .post-image img', 'sh_a_f_i') ) ), 'h' => array( 'options' => array( self::get_box_shadow(' .post-image img', 'sh_a_f_i', 'h') ) ) )) )) ); $archive_post_meta = array( // Background self::get_expand('bg', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_color(' .tbp_post_meta', 'b_c_a_p_m', 'bg_c', 'background-color') ) ), 'h' => array( 'options' => array( self::get_color(' .tbp_post_meta', 'b_c_a_p_m', 'bg_c', 'background-color', 'h') ) ) )) )), // Font self::get_expand('f', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_font_family(' .tbp_post_meta', 'f_f_a_p_m'), self::get_color(array(' .tbp_post_meta', ' .tbp_post_meta span'), 'f_c_a_p_m'), self::get_font_size(' .tbp_post_meta', 'f_s_a_p_m'), self::get_line_height(' .tbp_post_meta', 'l_h_a_p_m'), self::get_letter_spacing(' .tbp_post_meta', 'l_s_a_p_m'), self::get_font_style(' .tbp_post_meta', 'f_g_a_p_m', 'f_b_a_p_m'), self::get_text_transform(' .tbp_post_meta', 't_t_a_p_m'), self::get_text_decoration(' .tbp_post_meta', 't_d_a_p_m'), self::get_text_shadow(' .tbp_post_meta', 't_sh_a_p_m'), ) ), 'h' => array( 'options' => array( self::get_font_family(' .tbp_post_meta', 'f_f_a_p_m', 'h'), self::get_color(array(' .tbp_post_meta', ' .tbp_post_meta span'), 'f_c_a_p_m', null, null, 'hover'), self::get_font_size(' .tbp_post_meta', 'f_s_a_p_m', '', 'h'), self::get_font_style(' .tbp_post_meta', 'f_g_a_p_m', 'f_b_a_p_m', 'h'), self::get_text_decoration(' .tbp_post_meta', 't_d_a_p_m', 'h'), self::get_text_shadow(' .tbp_post_meta', 't_sh_a_p_m', 'h'), ) ) )) )), // Link self::get_expand('l', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_color(' .tbp_post_meta a', 'f_c_a_p_m_l'), self::get_text_decoration(' .tbp_post_meta a', 't_d_a_p_m_l'), ) ), 'h' => array( 'options' => array( self::get_color(' .tbp_post_meta a', 'f_c_a_p_m_l', null, null, 'hover'), self::get_text_decoration(' .tbp_post_meta a', 't_d_a_p_m_l', 'h'), ) ) )) )), // Padding self::get_expand('p', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_padding(' .tbp_post_meta', 'p_a_p_m') ) ), 'h' => array( 'options' => array( self::get_padding(' .tbp_post_meta', 'p_a_p_m', 'h') ) ) )) )), // Margin self::get_expand('m', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_margin(' .tbp_post_meta', 'm_a_p_m'), ) ), 'h' => array( 'options' => array( self::get_margin(' .tbp_post_meta', 'm_a_p_m', 'h'), ) ) )) )), // Border self::get_expand('b', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_border(' .tbp_post_meta', 'b_a_p_m') ) ), 'h' => array( 'options' => array( self::get_border(' .tbp_post_meta', 'b_a_p_m', 'h') ) ) )) )), // Shadow self::get_expand('sh', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_box_shadow(' .tbp_post_meta', 'sh_a_p_m') ) ), 'h' => array( 'options' => array( self::get_box_shadow(' .tbp_post_meta', 'sh_a_p_m', 'h') ) ) )) )) ); $archive_post_date = array( // Background self::get_expand('bg', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_color(' .tbp_post_date', 'b_c_a_p_d', 'bg_c', 'background-color') ) ), 'h' => array( 'options' => array( self::get_color(' .tbp_post_date', 'b_c_a_p_d', 'bg_c', 'background-color', 'h') ) ) )) )), // Font self::get_expand('f', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_font_family(' .tbp_post_date', 'f_f_a_p_d'), self::get_color(' .tbp_post_date', 'f_c_a_p_d'), self::get_font_size(' .tbp_post_date', 'f_s_a_p_d'), self::get_line_height(' .tbp_post_date', 'l_h_a_p_d'), self::get_letter_spacing(' .tbp_post_date', 'l_s_a_p_d'), self::get_text_align(' .tbp_post_date', 't_a_a_p_d'), self::get_text_transform(' .tbp_post_date', 't_t_a_p_d'), self::get_font_style(' .tbp_post_date', 'f_st_a_p_d', 'f_w_a_p_d'), self::get_text_decoration(' .tbp_post_date', 't_d_r_a_p_d'), self::get_text_shadow(' .tbp_post_date', 't_sh_a_p_d'), ) ), 'h' => array( 'options' => array( self::get_font_family(' .tbp_post_date', 'f_f_a_p_d', 'h'), self::get_color(' .tbp_post_date', 'f_c_a_p_d', null, null, 'h'), self::get_font_size(' .tbp_post_date', 'f_s_a_p_d', '', 'h'), self::get_font_style(' .tbp_post_date', 'f_st_a_p_d', 'f_w_a_p_d', 'h'), self::get_text_decoration(' .tbp_post_date', 't_d_r_a_p_d', 'h'), self::get_text_shadow(' .tbp_post_date', 't_sh_a_p_d', 'h'), ) ) )) )), // Padding self::get_expand('p', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_padding(' .tbp_post_date', 'p_a_p_d') ) ), 'h' => array( 'options' => array( self::get_padding(' .tbp_post_date', 'p_a_p_d', 'h') ) ) )) )), // Margin self::get_expand('m', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_margin(' .tbp_post_date', 'm_a_p_d'), ) ), 'h' => array( 'options' => array( self::get_margin(' .tbp_post_date', 'm_a_p_d', 'h'), ) ) )) )), // Border self::get_expand('b', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_border(' .tbp_post_date', 'b_a_p_d') ) ), 'h' => array( 'options' => array( self::get_border(' .tbp_post_date', 'b_a_p_d', 'h') ) ) )) )), // Shadow self::get_expand('sh', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_box_shadow(' .tbp_post_date', 'sh_a_p_d') ) ), 'h' => array( 'options' => array( self::get_box_shadow(' .tbp_post_date', 'sh_a_p_d', 'h') ) ) )) )), // Month Font self::get_expand('Month Font', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_font_family(' .tbp_post_date .tbp_post_month', 'f_f_a_p_d_m'), self::get_color(' .tbp_post_date .tbp_post_month', 'f_c_a_p_d_m'), self::get_font_size(' .tbp_post_date .tbp_post_month', 'f_s_a_p_d_m'), self::get_line_height(' .tbp_post_date .tbp_post_month', 'l_h_a_p_d_m'), self::get_text_shadow(' .tbp_post_date .tbp_post_month', 't_sh_a_p_d_m'), ) ), 'h' => array( 'options' => array( self::get_font_family(' .tbp_post_date .tbp_post_month', 'f_f_a_p_d_m', 'h'), self::get_color(' .tbp_post_date .tbp_post_month', 'f_c_a_p_d_m', null, null, 'h'), self::get_font_size(' .tbp_post_date .tbp_post_month', 'f_s_a_p_d_m', '', 'h'), self::get_text_shadow(' .tbp_post_date .tbp_post_month', 't_sh_a_p_d_m', 'h'), ) ) )) )), // Day Font self::get_expand('Day Font', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_font_family(' .tbp_post_date .tbp_post_day', 'f_f_a_p_d_d'), self::get_color(' .tbp_post_date .tbp_post_day', 'f_c_a_p_d_d'), self::get_font_size(' .tbp_post_date .tbp_post_day', 'f_s_a_p_d_d'), self::get_line_height(' .tbp_post_date .tbp_post_day', 'l_h_a_p_d_d'), self::get_text_shadow(' .tbp_post_date .tbp_post_day', 't_sh_a_p_d_d'), ) ), 'h' => array( 'options' => array( self::get_font_family(' .tbp_post_date .tbp_post_day', 'f_f_a_p_d_d', 'h'), self::get_color(' .tbp_post_date .tbp_post_day', 'f_c_a_p_d_d', null, null, 'h'), self::get_font_size(' .tbp_post_date .tbp_post_day', 'f_s_a_p_d_d', '', 'h'), self::get_text_shadow(' .tbp_post_date .tbp_post_day', 't_sh_a_p_d_d', 'h'), ) ) )) )), // Year Font self::get_expand('Year Font', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_font_family(' .tbp_post_date .tbp_post_year', 'f_f_a_p_d_y'), self::get_color(' .tbp_post_date .tbp_post_year', 'f_c_a_p_d_y'), self::get_font_size(' .tbp_post_date .tbp_post_year', 'f_s_a_p_d_y'), self::get_line_height(' .tbp_post_date .tbp_post_year', 'l_h_a_p_d_y'), self::get_text_shadow(' .tbp_post_date .tbp_post_year', 't_sh_a_p_d_y'), ) ), 'h' => array( 'options' => array( self::get_font_family(' .tbp_post_date .tbp_post_year', 'f_f_a_p_d_y', 'h'), self::get_color(' .tbp_post_date .tbp_post_year', 'f_c_a_p_d_y', null, null, 'h'), self::get_font_size(' .tbp_post_date .tbp_post_year', 'f_s_a_p_d_y', '', 'h'), self::get_text_shadow(' .tbp_post_date .tbp_post_year', 't_sh_a_p_d_y', 'h'), ) ) )) )), ); $archive_post_content = array( // Background self::get_expand('bg', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_color(' .tb_text_wrap', 'b_c_a_p_c', 'bg_c', 'background-color') ) ), 'h' => array( 'options' => array( self::get_color(' .tb_text_wrap', 'b_c_a_p_c', 'bg_c', 'background-color', 'h') ) ) )) )), // Font self::get_expand('f', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_font_family(' .tb_text_wrap', 'f_f_a_p_c'), self::get_color(' .tb_text_wrap', 'f_c_a_p_c'), self::get_font_size(' .tb_text_wrap', 'f_s_a_p_c'), self::get_line_height(' .tb_text_wrap', 'l_h_a_p_c'), self::get_letter_spacing(' .tb_text_wrap', 'l_s_a_p_c'), self::get_font_style(' .tb_text_wrap', 'f_g_a_p_c', 'f_b_a_p_c'), self::get_text_transform(' .tb_text_wrap', 't_t_a_p_c'), self::get_text_align(' .tb_text_wrap', 't_a_a_p_c'), self::get_text_shadow(' .tb_text_wrap', 't_sh_a_p_c'), ) ), 'h' => array( 'options' => array( self::get_font_family(' .tb_text_wrap', 'f_f_a_p_c', 'h'), self::get_color(' .tb_text_wrap', 'f_c_a_p_c', null, null, 'h'), self::get_font_size(' .tb_text_wrap', 'f_s_a_p_c', '', 'h'), self::get_font_style(' .tb_text_wrap', 'f_g_a_p_c', 'f_b_a_p_c', 'h'), self::get_text_shadow(' .tb_text_wrap', 't_sh_a_p_c', 'h'), ) ) )) )), // Padding self::get_expand('p', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_padding(' .tb_text_wrap', 'p_a_p_c') ) ), 'h' => array( 'options' => array( self::get_padding(' .tb_text_wrap', 'p_a_p_c', 'h') ) ) )) )), // Margin self::get_expand('m', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_margin(' .tb_text_wrap', 'm_a_p_c') ) ), 'h' => array( 'options' => array( self::get_margin(' .tb_text_wrap', 'm_a_p_c', 'h') ) ) )) )), // Border self::get_expand('b', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_border(' .tb_text_wrap', 'b_a_p_c') ) ), 'h' => array( 'options' => array( self::get_border(' .tb_text_wrap', 'b_a_p_c', 'h') ) ) )) )), self::get_expand('dropcap', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_color(array(' .tb_text_dropcap .tb_text_wrap > :first-child:first-letter', ' .tb_text_dropcap > .tb_text_wrap:first-child:first-letter'), 'bg_c_apc_dc', 'bg_c', 'background-color'), self::get_font_family(array(' .tb_text_dropcap .tb_text_wrap > :first-child:first-letter', ' .tb_text_dropcap > .tb_text_wrap:first-child:first-letter'), 'f_f_apc_dc'), self::get_color(array(' .tb_text_dropcap .tb_text_wrap > :first-child:first-letter', ' .tb_text_dropcap > .tb_text_wrap:first-child:first-letter'), 'f_c_apc_dc'), self::get_font_size(array(' .tb_text_dropcap .tb_text_wrap > :first-child:first-letter', ' .tb_text_dropcap > .tb_text_wrap:first-child:first-letter'), 'f_s_apc_dc'), self::get_line_height(array(' .tb_text_dropcap .tb_text_wrap > :first-child:first-letter', ' .tb_text_dropcap > .tb_text_wrap:first-child:first-letter'), 'l_h_apc_dc'), self::get_text_transform(array(' .tb_text_dropcap .tb_text_wrap > :first-child:first-letter', ' .tb_text_dropcap > .tb_text_wrap:first-child:first-letter'), 't_t_apc_dc'), self::get_font_style(array(' .tb_text_dropcap .tb_text_wrap > :first-child:first-letter', ' .tb_text_dropcap > .tb_text_wrap:first-child:first-letter'), 'f_sty_apc_dc', 'f_w_apc_dc'), self::get_padding(array(' .tb_text_dropcap .tb_text_wrap > :first-child:first-letter', ' .tb_text_dropcap > .tb_text_wrap:first-child:first-letter'), 'p_apc_dc'), self::get_margin(array(' .tb_text_dropcap .tb_text_wrap > :first-child:first-letter', ' .tb_text_dropcap > .tb_text_wrap:first-child:first-letter'), 'm_apc_dc'), self::get_border(array(' .tb_text_dropcap .tb_text_wrap > :first-child:first-letter', ' .tb_text_dropcap > .tb_text_wrap:first-child:first-letter'), 'b_apc_dc') ) ), 'h' => array( 'options' => array( self::get_color(array(' .tb_text_dropcap .tb_text_wrap > :first-child:first-letter', ' .tb_text_dropcap > .tb_text_wrap:first-child:first-letter'), 'bg_c_apc_dc_h', 'bg_c', 'background-color'), self::get_font_family(array(' .tb_text_dropcap .tb_text_wrap > :first-child:first-letter', ' .tb_text_dropcap > .tb_text_wrap:first-child:first-letter'), 'f_f_apc_dc_h'), self::get_color(array(' .tb_text_dropcap .tb_text_wrap > :first-child:first-letter', ' .tb_text_dropcap > .tb_text_wrap:first-child:first-letter'), 'f_c_apc_dc_h'), self::get_font_size(array(' .tb_text_dropcap .tb_text_wrap > :first-child:first-letter', ' .tb_text_dropcap > .tb_text_wrap:first-child:first-letter'), 'f_s_apc_dc_h'), self::get_font_style(array(' .tb_text_dropcap .tb_text_wrap > :first-child:first-letter', ' .tb_text_dropcap > .tb_text_wrap:first-child:first-letter'), 'f_sty_apc_dc_h', 'f_w_apc_dc_h'), self::get_padding(array(' .tb_text_dropcap .tb_text_wrap > :first-child:first-letter', ' .tb_text_dropcap > .tb_text_wrap:first-child:first-letter'), 'p_apc_dc_h'), self::get_margin(array(' .tb_text_dropcap .tb_text_wrap > :first-child:first-letter', ' .tb_text_dropcap > .tb_text_wrap:first-child:first-letter'), 'm_apc_dc_h'), self::get_border(array(' .tb_text_dropcap .tb_text_wrap > :first-child:first-letter', ' .tb_text_dropcap > .tb_text_wrap:first-child:first-letter'), 'b_apc_dc_h') ) ) )) )) ); $read_more = array( // Background self::get_expand('bg', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_color(' .more-link', 'b_c_r_m', 'bg_c', 'background-color') ) ), 'h' => array( 'options' => array( self::get_color(' .more-link', 'b_c_r_m', 'bg_c', 'background-color', 'h') ) ) )) )), // Font self::get_expand('f', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_font_family(' .more-link', 'f_f_g'), self::get_color('.module .more-link', 'f_c_r_m'), self::get_font_size(' .more-link', 'f_s_r_m'), self::get_line_height(' .more-link', 'l_h_r_m'), self::get_letter_spacing(' .more-link', 'l_s_r_m'), self::get_text_align(' .more-link', 't_a_r_m'), self::get_text_transform(' .more-link', 't_t_r_m'), self::get_font_style(' .more-link', 'f_st_r_m', 'f_b_r_m'), self::get_text_shadow(' .more-link', 't_sh_r_m'), ) ), 'h' => array( 'options' => array( self::get_font_family(' .more-link', 'f_f_g', 'h'), self::get_color('.module .more-link:hover', 'f_c_r_m_h', 'h'), self::get_font_size(' .more-link', 'f_s_r_m', '', 'h'), self::get_font_style(' .more-link', 'f_st_r_m', 'f_b_r_m', 'h'), self::get_text_shadow(' .more-link', 't_sh_r_m', 'h'), ) ) )) )), // Padding self::get_expand('p', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_padding(' .more-link', 'r_m_p') ) ), 'h' => array( 'options' => array( self::get_padding(' .more-link', 'r_m_p', 'h') ) ) )) )), // Margin self::get_expand('m', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_margin(' .more-link', 'r_m_m') ) ), 'h' => array( 'options' => array( self::get_margin(' .more-link', 'r_m_m', 'h') ) ) )), )), // Border self::get_expand('b', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_border(' .more-link', 'r_m_b') ) ), 'h' => array( 'options' => array( self::get_border(' .more-link', 'r_m_b', 'h') ) ) )) )), // Rounded Corners self::get_expand('r_c', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_border_radius(' .more-link', 'r_c_r_m') ) ), 'h' => array( 'options' => array( self::get_border_radius(' .more-link', 'r_c_r_m', 'h') ) ) )) )), // Shadow self::get_expand('sh', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_box_shadow(' .more-link', 'sh_r_m') ) ), 'h' => array( 'options' => array( self::get_box_shadow(' .more-link', 'sh_r_m', 'h') ) ) )) )) ); $pg_container = array( // Background self::get_expand('bg', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_color(' .pagenav', 'b_c_pg_c', 'bg_c', 'background-color') ) ), 'h' => array( 'options' => array( self::get_color(' .pagenav', 'b_c_pg_c', 'bg_c', 'background-color', 'h') ) ) )) )), // Font self::get_expand('f', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_font_family(' .pagenav', 'f_f_pg_c'), self::get_color(' .pagenav', 'f_c_pg_c'), self::get_font_size(' .pagenav', 'f_s_pg_c'), self::get_line_height(' .pagenav', 'l_h_pg_c'), self::get_letter_spacing(' .pagenav', 'l_s_pg_c'), self::get_text_align(' .pagenav', 't_a_pg_c'), self::get_font_style(' .pagenav', 'f_st_pg_c', 'f_b_pg_c'), ) ), 'h' => array( 'options' => array( self::get_font_family(' .pagenav', 'f_f_pg_c', 'h'), self::get_color(' .pagenav', 'f_c_pg_c', 'h'), self::get_font_size(' .pagenav', 'f_s_pg_c', '', 'h'), self::get_font_style(' .pagenav', 'f_st_pg_c', 'f_b_pg_c', 'h'), ) ) )) )), // Padding self::get_expand('p', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_padding(' .pagenav', 'p_pg_c') ) ), 'h' => array( 'options' => array( self::get_padding(' .pagenav', 'p_pg_c', 'h') ) ) )) )), // Margin self::get_expand('m', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_margin(' .pagenav', 'm_pg_c') ) ), 'h' => array( 'options' => array( self::get_margin(' .pagenav', 'm_pg_c', 'h') ) ) )), )), // Border self::get_expand('b', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_border(' .pagenav', 'b_pg_c') ) ), 'h' => array( 'options' => array( self::get_border(' .pagenav', 'b_pg_c', 'h') ) ) )) )), // Rounded Corners self::get_expand('r_c', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_border_radius(' .pagenav', 'r_c_pg_c') ) ), 'h' => array( 'options' => array( self::get_border_radius(' .pagenav', 'r_c_pg_c', 'h') ) ) )) )), // Shadow self::get_expand('sh', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_box_shadow(' .pagenav', 'sh_pg_c') ) ), 'h' => array( 'options' => array( self::get_box_shadow(' .pagenav', 'sh_pg_c', 'h') ) ) )) )) ); $pg_numbers = array( // Background self::get_expand('bg', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_color(' .pagenav a', 'b_c_pg_n', 'bg_c', 'background-color') ) ), 'h' => array( 'options' => array( self::get_color(' .pagenav a', 'b_c_pg_n', 'bg_c', 'background-color', 'h') ) ) )) )), // Font self::get_expand('f', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_font_family(' .pagenav a', 'f_f_pg_n'), self::get_color(' .pagenav a', 'f_c_pg_n'), self::get_font_size(' .pagenav a', 'f_s_pg_n'), self::get_line_height(' .pagenav a', 'l_h_pg_n'), self::get_letter_spacing(' .pagenav a', 'l_s_pg_n'), self::get_font_style(' .pagenav a', 'f_st_pg_n', 'f_b_pg_n'), ) ), 'h' => array( 'options' => array( self::get_font_family(' .pagenav a', 'f_f_pg_n', 'h'), self::get_color(' .pagenav a', 'f_c_pg_n', 'h'), self::get_font_size(' .pagenav a', 'f_s_pg_n', '', 'h'), self::get_font_style(' .pagenav a', 'f_st_pg_n', 'f_b_pg_n', 'h'), ) ) )) )), // Padding self::get_expand('p', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_padding(' .pagenav a', 'p_pg_n') ) ), 'h' => array( 'options' => array( self::get_padding(' .pagenav a', 'p_pg_n', 'h') ) ) )) )), // Margin self::get_expand('m', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_margin(' .pagenav a', 'm_pg_n') ) ), 'h' => array( 'options' => array( self::get_margin(' .pagenav a', 'm_pg_n', 'h') ) ) )), )), // Border self::get_expand('b', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_border(' .pagenav a', 'b_pg_n') ) ), 'h' => array( 'options' => array( self::get_border(' .pagenav a', 'b_pg_n', 'h') ) ) )) )), // Rounded Corners self::get_expand('r_c', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_border_radius(' .pagenav a', 'r_c_pg_n') ) ), 'h' => array( 'options' => array( self::get_border_radius(' .pagenav a', 'r_c_pg_n', 'h') ) ) )) )), // Shadow self::get_expand('sh', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_box_shadow(' .pagenav a', 'sh_pg_n') ) ), 'h' => array( 'options' => array( self::get_box_shadow(' .pagenav a', 'sh_pg_n', 'h') ) ) )) )) ); $pg_a_numbers = array( // Background self::get_expand('bg', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_color(' .pagenav .current', 'b_c_pg_a_n', 'bg_c', 'background-color') ) ), 'h' => array( 'options' => array( self::get_color(' .pagenav .current', 'b_c_pg_a_n', 'bg_c', 'background-color', 'h') ) ) )) )), // Font self::get_expand('f', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_font_family(' .pagenav .current', 'f_f_pg_a_n'), self::get_color(' .pagenav .current', 'f_c_pg_a_n'), self::get_font_size(' .pagenav .current', 'f_s_pg_a_n'), self::get_line_height(' .pagenav .current', 'l_h_pg_a_n'), self::get_letter_spacing(' .pagenav .current', 'l_s_pg_a_n'), self::get_font_style(' .pagenav .current', 'f_st_pg_a_n', 'f_b_pg_a_n'), ) ), 'h' => array( 'options' => array( self::get_font_family(' .pagenav .current', 'f_f_pg_a_n', 'h'), self::get_color(' .pagenav .current', 'f_c_pg_a_n', 'h'), self::get_font_size(' .pagenav .current', 'f_s_pg_a_n', '', 'h'), self::get_font_style(' .pagenav .current', 'f_st_pg_a_n', 'f_b_pg_a_n', 'h'), ) ) )) )), // Padding self::get_expand('p', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_padding(' .pagenav .current', 'p_pg_a_n') ) ), 'h' => array( 'options' => array( self::get_padding(' .pagenav .current', 'p_pg_a_n', 'h') ) ) )) )), // Margin self::get_expand('m', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_margin(' .pagenav .current', 'm_pg_a_n') ) ), 'h' => array( 'options' => array( self::get_margin(' .pagenav .current', 'm_pg_a_n', 'h') ) ) )), )), // Border self::get_expand('b', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_border(' .pagenav .current', 'b_pg_a_n') ) ), 'h' => array( 'options' => array( self::get_border(' .pagenav .current', 'b_pg_a_n', 'h') ) ) )) )), // Rounded Corners self::get_expand('r_c', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_border_radius(' .pagenav .current', 'r_c_pg_a_n') ) ), 'h' => array( 'options' => array( self::get_border_radius(' .pagenav .current', 'r_c_pg_a_n', 'h') ) ) )) )), // Shadow self::get_expand('sh', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_box_shadow(' .pagenav .current', 'sh_pg_a_n') ) ), 'h' => array( 'options' => array( self::get_box_shadow(' .pagenav .current', 'sh_pg_a_n', 'h') ) ) )) )) ); return array( 'type' => 'tabs', 'options' => array( 'g' => array( 'options' => $general ), 'conter' => array( 'options' => $archive_post_container ), 'title' => array( 'options' => $archive_post_title ), 'fimg' => array( 'options' => $archive_featured_image ), 'meta' => array( 'options' => $archive_post_meta ), 'date' => array( 'options' => $archive_post_date ), 'content' => array( 'options' => $archive_post_content ), 'rmore' => array( 'options' => $read_more ), 'pagincont' => array( 'options' => $pg_container ), 'paginnum' => array( 'options' => $pg_numbers ), 'paginactiv' => array( 'options' => $pg_a_numbers ) ) ); } public function get_plain_content($module) {//deprecated,backward return self::get_static_content($module); } public static function get_styling_image_fields() : array { return [ 'b_c_g' => '' ]; } } if(!method_exists( 'Themify_Builder_Component_Module', 'get_module_class' )){ if (method_exists('Themify_Builder_Model', 'add_module')) { new TB_Archive_Posts_Module(); } else { Themify_Builder_Model::register_module('TB_Archive_Posts_Module'); } }
[+]
..
[-] module-checkout-information.php
[edit]
[-] module-related-posts.php
[edit]
[-] module-advanced-posts.php
[edit]
[-] module-breadcrumbs.php
[edit]
[-] module-site-logo.php
[edit]
[-] module-taxonomy.php
[edit]
[-] module-post-title.php
[edit]
[-] module-checkout-review.php
[edit]
[-] module-checkout-payment.php
[edit]
[-] module-search-form.php
[edit]
[-] module-comments.php
[edit]
[-] module-author-info.php
[edit]
[-] module-wishlist-icon.php
[edit]
[-] module-cart-items.php
[edit]
[-] module-product-title.php
[edit]
[-] module-archive-image.php
[edit]
[-] module-product-taxonomy.php
[edit]
[-] module-product-description.php
[edit]
[-] module-add-to-cart.php
[edit]
[-] module-product-stock-status.php
[edit]
[-] module-checkout-coupon.php
[edit]
[-] module-cart-totals.php
[edit]
[-] module-woocommerce-breadcrumb.php
[edit]
[-] module-crosssell-products.php
[edit]
[-] module-archive-products.php
[edit]
[-] module-checkout-billing.php
[edit]
[-] module-post-navigation.php
[edit]
[-] module-ptb-repeater.php
[edit]
[-] module-post-content.php
[edit]
[-] module-product-meta.php
[edit]
[-] module-readtime.php
[edit]
[-] module-wc-notices.php
[edit]
[-] module-upsell-products.php
[edit]
[-] module-cart-icon.php
[edit]
[-] module-checkout-shipping.php
[edit]
[-] module-product-price.php
[edit]
[-] module-acf-repeater.php
[edit]
[-] module-wishlist-link.php
[edit]
[-] module-related-products.php
[edit]
[-] module-advanced-products.php
[edit]
[-] module-stats.php
[edit]
[-] module-archive-posts.php
[edit]
[-] module-archive-title.php
[edit]
[-] module-archive-description.php
[edit]
[-] module-site-tagline.php
[edit]
[-] module-product-image.php
[edit]
[-] module-product-reviews.php
[edit]
[-] module-product-rating.php
[edit]
[-] module-featured-image.php
[edit]
[-] module-post-meta.php
[edit]
[-] module-woocommerce-hook.php
[edit]