PATH:
home
/
fengshp
/
www
/
wp-content
/
plugins
/
themify-builder-pro
/
modules
<?php if (!defined('ABSPATH')) exit; // Exit if accessed directly /** * Module Name: Product Reviews * Description: */ class TB_Product_Reviews_Module extends Themify_Builder_Component_Module { public static $hasDescription = false; public static $hasAdditionaly = false; public static $hasReviews = false; public static $elId = null; public static $singleTab = false; public static function is_available():bool{ return themify_is_woocommerce_active(); } public static function get_module_name():string { return __('Product Review Tabs', 'tbp'); } public static function get_module_icon():string { return 'layout-tab'; } public static function get_js_css():array{ return array( 'ver' => TBP_VER, 'css' => TBP_WC_CSS_MODULES . 'product-reviews', 'async' => true, 'js' => TBP_JS_MODULES . 'product-review' ); } /** * Render plain content for static content. */ public static function get_static_content(array $module):string { return ''; } public function __construct() {//backward if (method_exists('Themify_Builder_Model', 'add_module')) { parent::__construct('product-reviews'); } else {//backward parent::__construct(array( 'name' => $this->get_name(), 'slug' => 'product-reviews', '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_i', 'bg_c', 'b_r', 'b_p') ) ), 'h' => array( 'options' => array( self::get_image('', 'b_i', 'bg_c', 'b_r', 'b_p', 'h') ) ) )) )), // Font self::get_expand('f', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_font_family(' .product', 'f_f_g'), self::get_color_type(' .product', '', 'f_c_t_g', 'f_c_g', 'f_g_c_g'), self::get_font_size(' .product', 'f_s_g', ''), self::get_line_height(' .product', 'l_h_g'), self::get_letter_spacing(' .product', 'l_s_g'), self::get_text_align(' .product', 't_a_g'), self::get_text_transform(' .product', 't_t_g'), self::get_font_style(' .product', 'f_st_g', 'f_w_g'), self::get_text_decoration(' .product', 't_d_r_g'), self::get_text_shadow(' .product', 't_sh_g'), ) ), 'h' => array( 'options' => array( self::get_font_family(' .product', 'f_f_g_h'), self::get_color_type(' .product', '', 'f_c_t_g_h', 'f_c_g_h', 'f_g_c_g_h'), self::get_font_size(' .product', 'f_s_g', '', 'h'), self::get_font_style(' .product', 'f_st_g', 'f_w_g', 'h'), self::get_text_decoration(' .product', 't_d_r_g', 'h'), self::get_text_shadow(' .product', 't_sh_g_h', 'h'), ) ) )) )), // Link self::get_expand('l', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_color(' a', 'l_c'), self::get_text_decoration(' a', 't_d_l') ) ), 'h' => array( 'options' => array( self::get_color(' a', 'l_c', null, null, 'hover'), self::get_text_decoration(' a', 't_d_l', 'h') ) ) )) )), // Padding self::get_expand('p', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_padding('', 'p') ) ), 'h' => array( 'options' => array( self::get_padding('', 'p', 'h') ) ) )) )), // Margin self::get_expand('m', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_margin('', 'm') ) ), 'h' => array( 'options' => array( self::get_margin('', 'm', 'h') ) ) )) )), // Border self::get_expand('b', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_border('', 'b') ) ), 'h' => array( 'options' => array( self::get_border('', 'b', 'h') ) ) )) )), // Filter self::get_expand('f_l', array( self::get_tab(array( 'n' => array( 'options' => count($a = self::get_blend('', 'fl')) > 2 ? array($a) : $a ), 'h' => array( 'options' => count($a = self::get_blend('', 'fl_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( method_exists($this, 'get_max_width') ? self::get_height('', 'g_h') : self::get_height('', 'g_h', '', 'g_m_h', 'g_mx_h'), self::get_min_height('', 'g_m_h'), self::get_max_height('', 'g_mx_h') )), // 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('', 'sh') ) ), 'h' => array( 'options' => array( self::get_box_shadow('', 'sh', 'h') ) ) )) )), // Display self::get_expand('disp', self::get_display()) ); $tab_title = array( // Background self::get_expand('bg', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_color('.module .product .woocommerce-tabs ul li', 'b_c_r_t', 'bg_c', 'background-color') ) ), 'h' => array( 'options' => array( self::get_color('.module .product .woocommerce-tabs ul li', 'b_c_r_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 .product .woocommerce-tabs ul li a', 'f_f_r_t'), self::get_color('.module .product .woocommerce-tabs ul li a', 'f_c_r_t'), self::get_font_size('.module .product .woocommerce-tabs ul li a', 'f_s_r_t', ''), self::get_line_height('.module .product .woocommerce-tabs ul li a', 'l_h_r_t'), self::get_letter_spacing('.module .product .woocommerce-tabs ul li a', 'l_s_r_t'), self::get_text_transform('.module .product .woocommerce-tabs ul li a', 't_t_r_t'), self::get_font_style('.module .product .woocommerce-tabs ul li a', 'f_st_r_t', 'f_w_r_t'), self::get_text_decoration('.module .product .woocommerce-tabs ul li a', 't_d_r_r_t'), self::get_text_shadow('.module .product .woocommerce-tabs ul li a', 't_sh_r_t'), ) ), 'h' => array( 'options' => array( self::get_font_family('.module .product .woocommerce-tabs ul li a', 'f_f_r_t', 'h'), self::get_color('.module .product .woocommerce-tabs ul li a', 'f_c_r_t', null, null, 'h'), self::get_font_size('.module .product .woocommerce-tabs ul li a', 'f_s_r_t', '', 'h'), self::get_font_style('.module .product .woocommerce-tabs ul li a', 'f_st_r_t', 'f_w_r_t', 'h'), self::get_text_decoration('.module .product .woocommerce-tabs ul li a', 't_d_r_r_t', 'h'), self::get_text_shadow('.module .product .woocommerce-tabs ul li a', 't_sh_r_t', 'h'), ) ) )) )), // Padding self::get_expand('p', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_padding('.module .product .woocommerce-tabs ul li', 'p_r_t') ) ), 'h' => array( 'options' => array( self::get_padding('.module .product .woocommerce-tabs ul li', 'p_r_t', 'h') ) ) )) )), // Margin self::get_expand('m', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_margin('.module .product .woocommerce-tabs ul li', 'm_r_t') ) ), 'h' => array( 'options' => array( self::get_margin('.module .product .woocommerce-tabs ul li', 'm_r_t', 'h') ) ) )) )), // Border self::get_expand('b', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_border('.module .product .woocommerce-tabs ul li', 'b_r_t') ) ), 'h' => array( 'options' => array( self::get_border('.module .product .woocommerce-tabs ul li', 'b_r_t', 'h') ) ) )) )), // Rounded Corners self::get_expand('r_c', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_border_radius('.module .product .woocommerce-tabs ul li', 'r_c_r_t') ) ), 'h' => array( 'options' => array( self::get_border_radius('.module .product .woocommerce-tabs ul li', 'r_c_r_t', 'h') ) ) )) )), // Shadow self::get_expand('sh', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_box_shadow('.module .product .woocommerce-tabs ul li', 'sh_r_t') ) ), 'h' => array( 'options' => array( self::get_box_shadow('.module .product .woocommerce-tabs ul li', 'sh_r_t', 'h') ) ) )) )) ); $tab_title_active = array( // Background self::get_expand('bg', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_color('.module .product .woocommerce-tabs ul li.active', 'b_c_r_t_a', 'bg_c', 'background-color') ) ), 'h' => array( 'options' => array( self::get_color('.module .product .woocommerce-tabs ul li.active', 'b_c_r_t_a', 'bg_c', 'background-color', 'h') ) ) )) )), // Font self::get_expand('f', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_font_family('.module .product .woocommerce-tabs ul li.active a', 'f_f_r_t_a'), self::get_color('.module .product .woocommerce-tabs ul li.active a', 'f_c_r_t_a'), self::get_font_size('.module .product .woocommerce-tabs ul li.active a', 'f_s_r_t_a', ''), self::get_line_height('.module .product .woocommerce-tabs ul li.active a', 'l_h_r_t_a'), self::get_letter_spacing('.module .product .woocommerce-tabs ul li.active a', 'l_s_r_t_a'), self::get_text_transform('.module .product .woocommerce-tabs ul li.active a', 't_t_r_t_a'), self::get_font_style('.module .product .woocommerce-tabs ul li.active a', 'f_st_r_t_a', 'f_w_r_t_a'), self::get_text_decoration('.module .product .woocommerce-tabs ul li.active a', 't_d_r_r_t_a'), self::get_text_shadow('.module .product .woocommerce-tabs ul li.active a', 't_sh_r_t_a'), ) ), 'h' => array( 'options' => array( self::get_font_family('.module .product .woocommerce-tabs ul li.active a', 'f_f_r_t_a', 'h'), self::get_color('.module .product .woocommerce-tabs ul li.active a', 'f_c_r_t_a', null, null, 'h'), self::get_font_size('.module .product .woocommerce-tabs ul li.active a', 'f_s_r_t_a', '', 'h'), self::get_font_style('.module .product .woocommerce-tabs ul li.active a', 'f_st_r_t_a', 'f_w_r_t_a', 'h'), self::get_text_decoration('.module .product .woocommerce-tabs ul li.active a', 't_d_r_r_t_a', 'h'), self::get_text_shadow('.module .product .woocommerce-tabs ul li.active a', 't_sh_r_t_a', 'h'), ) ) )) )), // Padding self::get_expand('p', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_padding('.module .product .woocommerce-tabs ul li.active', 'p_r_t_a') ) ), 'h' => array( 'options' => array( self::get_padding('.module .product .woocommerce-tabs ul li.active', 'p_r_t_a', 'h') ) ) )) )), // Margin self::get_expand('m', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_margin('.module .product .woocommerce-tabs ul li.active', 'm_r_t_a') ) ), 'h' => array( 'options' => array( self::get_margin('.module .product .woocommerce-tabs ul li.active', 'm_r_t_a', 'h') ) ) )) )), // Border self::get_expand('b', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_border('.module .product .woocommerce-tabs ul li.active', 'b_r_t_a') ) ), 'h' => array( 'options' => array( self::get_border('.module .product .woocommerce-tabs ul li.active', 'b_r_t_a', 'h') ) ) )) )), // Rounded Corners self::get_expand('r_c', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_border_radius('.module .product .woocommerce-tabs ul li.active', 'r_c_r_t_a') ) ), 'h' => array( 'options' => array( self::get_border_radius('.module .product .woocommerce-tabs ul li.active', 'r_c_r_t_a', 'h') ) ) )) )), // Shadow self::get_expand('sh', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_box_shadow('.module .product .woocommerce-tabs ul li.active', 'sh_r_t_a') ) ), 'h' => array( 'options' => array( self::get_box_shadow('.module .product .woocommerce-tabs ul li.active', 'sh_r_t_a', 'h') ) ) )) )) ); $tab_content = array( // Background self::get_expand('bg', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_color('.module .product .woocommerce-tabs .panel', 'b_c_r_t_c', 'bg_c', 'background-color') ) ), 'h' => array( 'options' => array( self::get_color('.module .product .woocommerce-tabs .panel', 'b_c_r_t_c', 'bg_c', 'background-color', 'h') ) ) )) )), // Font self::get_expand('f', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_font_family('.module .product .woocommerce-tabs .panel', 'f_f_r_t_c'), self::get_color('.module .product .woocommerce-tabs .panel', 'f_c_r_t_c'), self::get_font_size('.module .product .woocommerce-tabs .panel', 'f_s_r_t_c', ''), self::get_line_height('.module .product .woocommerce-tabs .panel', 'l_h_r_t_c'), self::get_letter_spacing('.module .product .woocommerce-tabs .panel', 'l_s_r_t_c'), self::get_text_align('.module .product .woocommerce-tabs .panel', 't_a_r_t_c'), self::get_text_transform('.module .product .woocommerce-tabs .panel', 't_t_r_t_c'), self::get_font_style('.module .product .woocommerce-tabs .panel', 'f_st_r_t_c', 'f_w_r_t_c'), self::get_text_decoration('.module .product .woocommerce-tabs .panel', 't_d_r_r_t_c'), self::get_text_shadow('.module .product .woocommerce-tabs .panel', 't_sh_r_t_c'), ) ), 'h' => array( 'options' => array( self::get_font_family('.module .product .woocommerce-tabs .panel', 'f_f_r_t_c', 'h'), self::get_color('.module .product .woocommerce-tabs .panel', 'f_c_r_t_c', null, null, 'h'), self::get_font_size('.module .product .woocommerce-tabs .panel', 'f_s_r_t_c', '', 'h'), self::get_font_style('.module .product .woocommerce-tabs .panel', 'f_st_r_t_c', 'f_w_r_t_c', 'h'), self::get_text_decoration('.module .product .woocommerce-tabs .panel', 't_d_r_r_t_c', 'h'), self::get_text_shadow('.module .product .woocommerce-tabs .panel', 't_sh_r_t_c', 'h'), ) ) )) )), // Link self::get_expand('l', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_color('.module .product .woocommerce-tabs .panel a', 'l_c'), self::get_text_decoration('.module .product .woocommerce-tabs .panel a', 't_d_l') ) ), 'h' => array( 'options' => array( self::get_color('.module .product .woocommerce-tabs .panel a', 'l_c', null, null, 'hover'), self::get_text_decoration('.module .product .woocommerce-tabs .panel a', 't_d_l', 'h') ) ) )) )), // Padding self::get_expand('p', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_padding('.module .product .woocommerce-tabs .panel', 'p_r_t_c') ) ), 'h' => array( 'options' => array( self::get_padding('.module .product .woocommerce-tabs .panel', 'p_r_t_c', 'h') ) ) )) )), // Margin self::get_expand('m', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_margin('.module .product .woocommerce-tabs .panel', 'm_r_t_c') ) ), 'h' => array( 'options' => array( self::get_margin('.module .product .woocommerce-tabs .panel', 'm_r_t_c', 'h') ) ) )) )), // Border self::get_expand('b', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_border('.module .product .woocommerce-tabs .panel', 'b_r_t_c') ) ), 'h' => array( 'options' => array( self::get_border('.module .product .woocommerce-tabs .panel', 'b_r_t_c', 'h') ) ) )) )), // Rounded Corners self::get_expand('r_c', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_border_radius('.module .product .woocommerce-tabs .panel', 'r_c_r_t_c') ) ), 'h' => array( 'options' => array( self::get_border_radius('.module .product .woocommerce-tabs .panel', 'r_c_r_t_c', 'h') ) ) )) )), // Shadow self::get_expand('sh', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_box_shadow('.module .product .woocommerce-tabs .panel', 'sh_r_t_c') ) ), 'h' => array( 'options' => array( self::get_box_shadow('.module .product .woocommerce-tabs .panel', 'sh_r_t_c', 'h') ) ) )) )) ); $review_form_container = array( // Background self::get_expand('bg', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_color('.module .product .woocommerce-tabs .panel .woocommerce-Reviews', 'b_c_r_f_ctr', 'bg_c', 'background-color') ) ), 'h' => array( 'options' => array( self::get_color('.module .product .woocommerce-tabs .panel .woocommerce-Reviews"]', 'b_c_r_f_ctr', 'bg_c', 'background-color', 'h') ) ) )) )), // Font self::get_expand('f', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_font_family(array('.module .product .woocommerce-tabs .panel .woocommerce-Reviews', '.module .product .woocommerce-tabs .panel .woocommerce-Reviews p'), 'f_f_r_f_ctr'), self::get_color(array('.module .product .woocommerce-tabs .panel .woocommerce-Reviews', '.module .product .woocommerce-tabs .panel .woocommerce-Reviews p'), 'f_c_r_f_ctr'), self::get_font_size(array('.module .product .woocommerce-tabs .panel .woocommerce-Reviews', '.module .product .woocommerce-tabs .panel .woocommerce-Reviews p'), 'f_s_r_f_ctr', ''), self::get_line_height(array('.module .product .woocommerce-tabs .panel .woocommerce-Reviews', '.module .product .woocommerce-tabs .panel .woocommerce-Reviews p'), 'l_h_r_f_ctr'), self::get_letter_spacing(array('.module .product .woocommerce-tabs .panel .woocommerce-Reviews', '.module .product .woocommerce-tabs .panel .woocommerce-Reviews p'), 'l_s_r_f_ctr'), self::get_text_align(array('.module .product .woocommerce-tabs .panel .woocommerce-Reviews', '.module .product .woocommerce-tabs .panel .woocommerce-Reviews p'), 't_a_r_f_ctr'), self::get_text_transform(array('.module .product .woocommerce-tabs .panel .woocommerce-Reviews', '.module .product .woocommerce-tabs .panel .woocommerce-Reviews p'), 't_t_r_f_ctr'), self::get_font_style(array('.module .product .woocommerce-tabs .panel .woocommerce-Reviews', '.module .product .woocommerce-tabs .panel .woocommerce-Reviews p'), 'f_st_r_f_ctr', 'f_w_r_f_ctr'), self::get_text_decoration(array('.module .product .woocommerce-tabs .panel .woocommerce-Reviews', '.module .product .woocommerce-tabs .panel .woocommerce-Reviews p'), 't_d_r_r_f_ctr'), self::get_text_shadow(array('.module .product .woocommerce-tabs .panel .woocommerce-Reviews', '.module .product .woocommerce-tabs .panel .woocommerce-Reviews p'), 't_sh_r_f_ctr'), ) ), 'h' => array( 'options' => array( self::get_font_family(array('.module .product .woocommerce-tabs .panel .woocommerce-Reviews', '.module .product .woocommerce-tabs .panel .woocommerce-Reviews p'), 'f_f_r_f_ctr', 'h'), self::get_color(array('.module .product .woocommerce-tabs .panel .woocommerce-Reviews', '.module .product .woocommerce-tabs .panel .woocommerce-Reviews p'), 'f_c_r_f_ctr', null, null, 'h'), self::get_font_size(array('.module .product .woocommerce-tabs .panel .woocommerce-Reviews', '.module .product .woocommerce-tabs .panel .woocommerce-Reviews p'), 'f_s_r_f_ctr', '', 'h'), self::get_font_style(array('.module .product .woocommerce-tabs .panel .woocommerce-Reviews', '.module .product .woocommerce-tabs .panel .woocommerce-Reviews p'), 'f_st_r_f_ctr', 'f_w_r_f_ctr', 'h'), self::get_text_decoration(array('.module .product .woocommerce-tabs .panel .woocommerce-Reviews', '.module .product .woocommerce-tabs .panel .woocommerce-Reviews p'), 't_d_r_r_f_ctr', 'h'), self::get_text_shadow(array('.module .product .woocommerce-tabs .panel .woocommerce-Reviews', '.module .product .woocommerce-tabs .panel .woocommerce-Reviews p'), 't_sh_r_f_ctr', 'h'), ) ) )) )), // Padding self::get_expand('p', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_padding('.module .product .woocommerce-tabs .panel .woocommerce-Reviews', 'p_r_f_ctr') ) ), 'h' => array( 'options' => array( self::get_padding('.module .product .woocommerce-tabs .panel .woocommerce-Reviews', 'p_r_f_ctr', 'h') ) ) )) )), // Margin self::get_expand('m', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_margin('.module .product .woocommerce-tabs .panel .woocommerce-Reviews', 'm_r_f_ctr') ) ), 'h' => array( 'options' => array( self::get_margin('.module .product .woocommerce-tabs .panel .woocommerce-Reviews', 'm_r_f_ctr', 'h') ) ) )) )), // Border self::get_expand('b', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_border('.module .product .woocommerce-tabs .panel .woocommerce-Reviews', 'b_r_f_ctr') ) ), 'h' => array( 'options' => array( self::get_border('.module .product .woocommerce-tabs .panel .woocommerce-Reviews', 'b_r_f_ctr', 'h') ) ) )) )), // Rounded Corners self::get_expand('r_c', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_border_radius('.module .product .woocommerce-tabs .panel .woocommerce-Reviews', 'r_c_r_f_ctr') ) ), 'h' => array( 'options' => array( self::get_border_radius('.module .product .woocommerce-tabs .panel .woocommerce-Reviews', 'r_c_r_f_ctr', 'h') ) ) )) )), // Shadow self::get_expand('sh', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_box_shadow('.module .product .woocommerce-tabs .panel .woocommerce-Reviews', 'sh_r_f_ctr') ) ), 'h' => array( 'options' => array( self::get_box_shadow('.module .product .woocommerce-tabs .panel .woocommerce-Reviews', 'sh_r_f_ctr', 'h') ) ) )) )) ); $review_form = array( // Background self::get_expand('bg', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_color(array('.module .product .woocommerce-tabs .panel input[type="text"]', '.module .product .woocommerce-tabs .panel input[type="email"]', '.module .product .woocommerce-tabs .panel textarea'), 'b_c_r_f', 'bg_c', 'background-color') ) ), 'h' => array( 'options' => array( self::get_color(array('.module .product .woocommerce-tabs .panel input[type="text"]', '.module .product .woocommerce-tabs .panel input[type="email"]', '.module .product .woocommerce-tabs .panel textarea'), 'b_c_r_f', 'bg_c', 'background-color', 'h') ) ) )) )), // Font self::get_expand('f', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_font_family(array('.module .product .woocommerce-tabs .panel input[type="text"]', '.module .product .woocommerce-tabs .panel input[type="email"]', '.module .product .woocommerce-tabs .panel textarea', '.module #commentform p label'), 'f_f_r_f'), self::get_color(array('.module .product .woocommerce-tabs .panel input[type="text"]', '.module .product .woocommerce-tabs .panel input[type="email"]', '.module .product .woocommerce-tabs .panel textarea', '.module #commentform p label'), 'f_c_r_f'), self::get_font_size(array('.module .product .woocommerce-tabs .panel input[type="text"]', '.module .product .woocommerce-tabs .panel input[type="email"]', '.module .product .woocommerce-tabs .panel textarea', '.module #commentform p label'), 'f_s_r_f', ''), self::get_line_height(array('.module .product .woocommerce-tabs .panel input[type="text"]', '.module .product .woocommerce-tabs .panel input[type="email"]', '.module .product .woocommerce-tabs .panel textarea', '.module #commentform p label'), 'l_h_r_f'), self::get_letter_spacing(array('.module .product .woocommerce-tabs .panel input[type="text"]', '.module .product .woocommerce-tabs .panel input[type="email"]', '.module .product .woocommerce-tabs .panel textarea', '.module #commentform p label'), 'l_s_r_f'), self::get_text_align(array('.module .product .woocommerce-tabs .panel input[type="text"]', '.module .product .woocommerce-tabs .panel input[type="email"]', '.module .product .woocommerce-tabs .panel textarea', '.module #commentform p label'), 't_a_r_f'), self::get_text_transform(array('.module .product .woocommerce-tabs .panel input[type="text"]', '.module .product .woocommerce-tabs .panel input[type="email"]', '.module .product .woocommerce-tabs .panel textarea', '.module #commentform p label'), 't_t_r_f'), self::get_font_style(array('.module .product .woocommerce-tabs .panel input[type="text"]', '.module .product .woocommerce-tabs .panel input[type="email"]', '.module .product .woocommerce-tabs .panel textarea', '.module #commentform p label'), 'f_st_r_f', 'f_w_r_f'), self::get_text_decoration(array('.module .product .woocommerce-tabs .panel input[type="text"]', '.module .product .woocommerce-tabs .panel input[type="email"]', '.module .product .woocommerce-tabs .panel textarea', '.module #commentform p label'), 't_d_r_r_f'), self::get_text_shadow(array('.module .product .woocommerce-tabs .panel input[type="text"]', '.module .product .woocommerce-tabs .panel input[type="email"]', '.module .product .woocommerce-tabs .panel textarea', '.module #commentform p label'), 't_sh_r_f'), ) ), 'h' => array( 'options' => array( self::get_font_family(array('.module .product .woocommerce-tabs .panel input[type="text"]', '.module .product .woocommerce-tabs .panel input[type="email"]', '.module .product .woocommerce-tabs .panel textarea', '.module #commentform p label'), 'f_f_r_f', 'h'), self::get_color(array('.module .product .woocommerce-tabs .panel input[type="text"]', '.module .product .woocommerce-tabs .panel input[type="email"]', '.module .product .woocommerce-tabs .panel textarea', '.module #commentform p label'), 'f_c_r_f', null, null, 'h'), self::get_font_size(array('.module .product .woocommerce-tabs .panel input[type="text"]', '.module .product .woocommerce-tabs .panel input[type="email"]', '.module .product .woocommerce-tabs .panel textarea', '.module #commentform p label'), 'f_s_r_f', '', 'h'), self::get_font_style(array('.module .product .woocommerce-tabs .panel input[type="text"]', '.module .product .woocommerce-tabs .panel input[type="email"]', '.module .product .woocommerce-tabs .panel textarea', '.module #commentform p label'), 'f_st_r_f', 'f_w_r_f', 'h'), self::get_text_decoration(array('.module .product .woocommerce-tabs .panel input[type="text"]', '.module .product .woocommerce-tabs .panel input[type="email"]', '.module .product .woocommerce-tabs .panel textarea', '.module #commentform p label'), 't_d_r_r_f', 'h'), self::get_text_shadow(array('.module .product .woocommerce-tabs .panel input[type="text"]', '.module .product .woocommerce-tabs .panel input[type="email"]', '.module .product .woocommerce-tabs .panel textarea', '.module #commentform p label'), 't_sh_r_f', 'h'), ) ) )) )), // Padding self::get_expand('p', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_padding(array('.module .product .woocommerce-tabs .panel input[type="text"]', '.module .product .woocommerce-tabs .panel input[type="email"]', '.module .product .woocommerce-tabs .panel textarea'), 'p_r_f') ) ), 'h' => array( 'options' => array( self::get_padding(array('.module .product .woocommerce-tabs .panel input[type="text"]', '.module .product .woocommerce-tabs .panel input[type="email"]', '.module .product .woocommerce-tabs .panel textarea'), 'p_r_f', 'h') ) ) )) )), // Margin self::get_expand('m', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_margin(array('.module .product .woocommerce-tabs .panel input[type="text"]', '.module .product .woocommerce-tabs .panel input[type="email"]', '.module .product .woocommerce-tabs .panel textarea'), 'm_r_f') ) ), 'h' => array( 'options' => array( self::get_margin(array('.module .product .woocommerce-tabs .panel input[type="text"]', '.module .product .woocommerce-tabs .panel input[type="email"]', '.module .product .woocommerce-tabs .panel textarea'), 'm_r_f', 'h') ) ) )) )), // Border self::get_expand('b', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_border(array('.module .product .woocommerce-tabs .panel input[type="text"]', '.module .product .woocommerce-tabs .panel input[type="email"]', '.module .product .woocommerce-tabs .panel textarea'), 'b_r_f') ) ), 'h' => array( 'options' => array( self::get_border(array('.module .product .woocommerce-tabs .panel input[type="text"]', '.module .product .woocommerce-tabs .panel input[type="email"]', '.module .product .woocommerce-tabs .panel textarea'), 'b_r_f', 'h') ) ) )) )), // Rounded Corners self::get_expand('r_c', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_border_radius(array('.module .product .woocommerce-tabs .panel input[type="text"]', '.module .product .woocommerce-tabs .panel input[type="email"]', '.module .product .woocommerce-tabs .panel textarea'), 'r_c_r_f') ) ), 'h' => array( 'options' => array( self::get_border_radius(array('.module .product .woocommerce-tabs .panel input[type="text"]', '.module .product .woocommerce-tabs .panel input[type="email"]', '.module .product .woocommerce-tabs .panel textarea'), 'r_c_r_f', 'h') ) ) )) )), // Shadow self::get_expand('sh', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_box_shadow(array('.module .product .woocommerce-tabs .panel input[type="text"]', '.module .product .woocommerce-tabs .panel input[type="email"]', '.module .product .woocommerce-tabs .panel textarea'), 'sh_r_f') ) ), 'h' => array( 'options' => array( self::get_box_shadow(array('.module .product .woocommerce-tabs .panel input[type="text"]', '.module .product .woocommerce-tabs .panel input[type="email"]', '.module .product .woocommerce-tabs .panel textarea'), 'sh_r_f', 'h') ) ) )) )) ); $review_form_button = array( // Background self::get_expand('bg', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_color('.module #respond input#submit', 'b_c_r_f_b', 'bg_c', 'background-color') ) ), 'h' => array( 'options' => array( self::get_color('.module #respond input#submit', 'b_c_r_f_b', 'bg_c', 'background-color', 'h') ) ) )) )), // Font self::get_expand('f', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_font_family('.module #respond input#submit', 'f_f_r_f_b'), self::get_color('.module #respond input#submit', 'f_c_r_f_b'), self::get_font_size('.module #respond input#submit', 'f_s_r_f_b', ''), self::get_line_height('.module #respond input#submit', 'l_h_r_f_b'), self::get_letter_spacing('.module #respond input#submit', 'l_s_r_f_b'), self::get_text_transform('.module #respond input#submit', 't_t_r_f_b'), self::get_font_style('.module #respond input#submit', 'f_st_r_f_b', 'f_w_r_f_b'), self::get_text_decoration('.module #respond input#submit', 't_d_r_r_f_b'), self::get_text_shadow('.module #respond input#submit', 't_sh_r_f_b'), ) ), 'h' => array( 'options' => array( self::get_font_family('.module #respond input#submit', 'f_f_r_f_b', 'h'), self::get_color('.module #respond input#submit', 'f_c_r_f_b', null, null, 'h'), self::get_font_size('.module #respond input#submit', 'f_s_r_f_b', '', 'h'), self::get_font_style('.module #respond input#submit', 'f_st_r_f_b', 'f_w_r_f_b', 'h'), self::get_text_decoration('.module #respond input#submit', 't_d_r_r_f_b', 'h'), self::get_text_shadow('.module #respond input#submit', 't_sh_r_f_b', 'h'), ) ) )) )), // Padding self::get_expand('p', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_padding('.module #respond input#submit', 'p_r_f_b') ) ), 'h' => array( 'options' => array( self::get_padding('.module #respond input#submit', 'p_r_f_b', 'h') ) ) )) )), // Margin self::get_expand('m', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_margin('.module #respond input#submit', 'm_r_f_b') ) ), 'h' => array( 'options' => array( self::get_margin('.module #respond input#submit', 'm_r_f_b', 'h') ) ) )) )), // Border self::get_expand('b', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_border('.module #respond input#submit', 'b_r_f_b') ) ), 'h' => array( 'options' => array( self::get_border('.module #respond input#submit', 'b_r_f_b', 'h') ) ) )) )), // Rounded Corners self::get_expand('r_c', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_border_radius('.module #respond input#submit', 'r_c_r_f_b') ) ), 'h' => array( 'options' => array( self::get_border_radius('.module #respond input#submit', 'r_c_r_f_b', 'h') ) ) )) )), // Shadow self::get_expand('sh', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_box_shadow('.module #respond input#submit', 'sh_r_f_b') ) ), 'h' => array( 'options' => array( self::get_box_shadow('.module #respond input#submit', 'sh_r_f_b', 'h') ) ) )) )) ); $review_stars = array( // Background self::get_expand('bg', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_color('.module .stars a', 'b_c_r_s', 'bg_c', 'background-color') ) ), 'h' => array( 'options' => array( self::get_color('.module .stars a', 'b_c_r_s', 'bg_c', 'background-color', 'h') ) ) )) )), // Font self::get_expand('f', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_color('.module .stars a', 'f_c_r_s'), self::get_font_size('.module .stars a', 'f_s_r_s', ''), self::get_line_height('.module .stars a', 'l_h_r_s'), ) ), 'h' => array( 'options' => array( self::get_color('.module .stars:hover a', 'f_c_r_s_h'), self::get_font_size('.module .stars a', 'f_s_r_s', '', 'h'), ) ) )) )), // Padding self::get_expand('p', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_padding(array('.module .stars a', '.module .stars a:before'), 'p_r_s') ) ), 'h' => array( 'options' => array( self::get_padding(array('.module .stars a:hover', '.module .stars a:hover:before'), 'p_r_s_h', '') ) ) )) )), // Margin self::get_expand('m', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_margin('.module .stars a', 'm_r_s') ) ), 'h' => array( 'options' => array( self::get_margin('.module .stars a', 'm_r_s', 'h') ) ) )) )), // Border self::get_expand('b', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_border('.module .stars a', 'b_r_s') ) ), 'h' => array( 'options' => array( self::get_border('.module .stars a', 'b_r_s', 'h') ) ) )) )) ); $tab_title_wrapper = array( // Padding self::get_expand('p', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_padding('.module .wc-tabs', 'p_t_t_w') ) ), 'h' => array( 'options' => array( self::get_padding('.module .wc-tabs', 'p_t_t_w_h', 'h') ) ) )) )), // Margin self::get_expand('m', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_margin('.module .wc-tabs', 'm_t_t_w') ) ), 'h' => array( 'options' => array( self::get_margin('.module .wc-tabs', 'm_t_t_w', 'h') ) ) )) )), // Border self::get_expand('b', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_border('.module .wc-tabs:before', 'b_t_t_w') ) ), 'h' => array( 'options' => array( self::get_border('.module .wc-tabs:hover:before', 'b_t_t_w_h', '') ) ) )) )) ); return array( 'type' => 'tabs', 'options' => array( 'g' => array( 'options' => $general ), 'tab' => array( 'options' => $tab_title_wrapper ), 'tabt' => array( 'options' => $tab_title ), 'tbp_tabact' => array( 'options' => $tab_title_active ), 'tabc' => array( 'options' => $tab_content ), 'tbp_revfrm' => array( 'options' => $review_form_container ), 'tbp_revinp' => array( 'options' => $review_form ), 'tbp_revfrmbt' => array( 'options' => $review_form_button ), 'tbp_revstr' => array( 'options' => $review_stars ) ) ); } public static function tbp_product_description_tab() { if(isset(Themify_Builder::$is_loop)){ $isLoop=Themify_Builder::$is_loop; Themify_Builder::$is_loop=true; } else{//backward global $ThemifyBuilder; $isLoop = $ThemifyBuilder->in_the_loop === true; $ThemifyBuilder->in_the_loop = true; } woocommerce_product_description_tab(); if(isset(Themify_Builder::$is_loop)){ Themify_Builder::$is_loop=$isLoop; } else{//backward $ThemifyBuilder->in_the_loop = $isLoop; } } public static function getTabs($tabs) { if (self::$hasDescription === true && isset($tabs['description'])) { $tabs['description']['callback'] = array(__CLASS__, 'tbp_product_description_tab'); $tabs['description-' . self::$elId] = $tabs['description']; } if (self::$hasAdditionaly === true && isset($tabs['additional_information'])) { $tabs['additional_information-' . self::$elId] = $tabs['additional_information']; } if (self::$hasReviews !== true && isset($tabs['reviews'])) { unset($tabs['reviews']); } unset($tabs['description'], $tabs['additional_information']); self::$singleTab = count($tabs) === 1; return $tabs; } public static function accordion_layout($located, $template_name, $args, $template_path, $default_path) { if ('single-product/tabs/tabs.php' === $template_name) { return TBP_DIR . 'templates/wc/single/tabs.php'; } return $located; } public static function get_styling_image_fields() : array { return [ 'b_i' => '' ]; } } if (!method_exists( 'Themify_Builder_Component_Module', 'get_module_class' ) && TB_Product_Reviews_Module::is_available()) { if (method_exists('Themify_Builder_Model', 'add_module')) { new TB_Product_Reviews_Module(); } else { Themify_Builder_Model::register_module('TB_Product_Reviews_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]