PATH:
home
/
fengshp
/
www
/
wp-content
/
plugins
/
themify-builder-pro
/
modules
<?php if (!defined('ABSPATH')) exit; // Exit if accessed directly /** * Module Name: Product Stock Status * Description: */ class TB_Product_Stock_Status_Module extends Themify_Builder_Component_Module { public static function is_available():bool{ return themify_is_woocommerce_active(); } public static function get_module_name():string { return __('Product Stock Status', 'tbp'); } public static function get_module_icon():string { return 'package'; } public function __construct() {//backward if (method_exists('Themify_Builder_Model', 'add_module')) { parent::__construct('product-stock-status'); } else {//backward parent::__construct(array( 'name' => $this->get_name(), 'slug' => 'product-stock-status', 'category' => $this->get_group() )); } } /** * Render plain content for static content. */ public static function get_static_content(array $module):string { return ''; } public function get_name() {//backward return self::get_module_name(); } public function get_icon() {//backward return self::get_module_icon(); } public function get_styling() {//backward $general = array( // Background self::get_expand('bg', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_image() ) ), '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(), self::get_color_type(), self::get_font_size(), self::get_line_height(), self::get_letter_spacing(), self::get_text_align(), self::get_text_transform(), self::get_font_style(), self::get_text_decoration('', 'text_decoration_regular'), self::get_text_shadow(), ) ), 'h' => array( 'options' => array( self::get_font_family('', 'f_f_h'), self::get_color_type('', '', 'f_c_t_h', 'f_c_h', 'f_g_c_h'), self::get_font_size('', 'f_s', '', 'h'), self::get_font_style('', 'f_st', 'f_w', 'h'), self::get_text_decoration(' .tb_text_wrap', 't_d_r', 'h'), self::get_text_shadow('', 't_sh', 'h'), ) ) )) )), // Padding self::get_expand('p', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_padding() ) ), '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() ) ), '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() ) ), 'h' => array( 'options' => array( self::get_border('', 'b', 'h') ) ) )) )), // Filter self::get_expand('f_l', array( self::get_tab(array( 'n' => array( 'options' => self::get_blend() ), 'h' => array( 'options' => self::get_blend('', '', 'h') ) )) ) ), // Rounded Corners self::get_expand('r_c', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_border_radius() ) ), '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() ) ), 'h' => array( 'options' => array( self::get_box_shadow('', 'sh', 'h') ) ) )) ) ), // Position self::get_expand('po', array(self::get_css_position())), // Display self::get_expand('disp', self::get_display()) ); $in_stock = array( // Background self::get_expand('bg', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_color(' .tbp_product_in_stock', 'is_bg', 'bg_c', 'background-color') ) ), 'h' => array( 'options' => array( self::get_color(':hover .tbp_product_in_stock', 'is_bg_h', 'bg_c', 'background-color') ) ) )) )), // Font self::get_expand('f', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_font_family(' .tbp_product_in_stock', 'is_f'), self::get_color(' .tbp_product_in_stock', 'is_c'), self::get_font_size(' .tbp_product_in_stock', 'is_fs'), self::get_line_height(' .tbp_product_in_stock', 'is_l'), self::get_text_transform(' .tbp_product_in_stock', 'is_t'), self::get_font_style(' .tbp_product_in_stock', 'is_s', 'is_s_b'), self::get_text_decoration(' .tbp_product_in_stock', 'is_td'), self::get_text_shadow(' .tbp_product_in_stock', 'is_ts') ) ), 'h' => array( 'options' => array( self::get_font_family(':hover .tbp_product_in_stock', 'is_f_h'), self::get_color(':hover .tbp_product_in_stock', 'is_c_h'), self::get_font_size(':hover .tbp_product_in_stock', 'is_fs_h'), self::get_font_style(':hover .tbp_product_in_stock', 'is_s_h', 'is_s_b_h'), self::get_text_decoration(':hover .tbp_product_in_stock', 'is_td_h'), self::get_text_shadow(':hover .tbp_product_in_stock', 'is_ts_h') ) ) )) )), ); $out_of_stock = array( // Background self::get_expand('bg', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_color(' .tbp_product_out_of_stock', 'os_b', 'bg_c', 'background-color') ) ), 'h' => array( 'options' => array( self::get_color(':hover .tbp_product_out_of_stock', 'os_b_h', 'bg_c', 'background-color') ) ) )) )), // Font self::get_expand('f', array( self::get_tab(array( 'n' => array( 'options' => array( self::get_font_family(' .tbp_product_out_of_stock', 'os_f'), self::get_color(' .tbp_product_out_of_stock', 'os_c'), self::get_font_size(' .tbp_product_out_of_stock', 'os_fs'), self::get_line_height(' .tbp_product_out_of_stock', 'os_l'), self::get_text_transform(' .tbp_product_out_of_stock', 'os_t'), self::get_font_style(' .tbp_product_out_of_stock', 'os_s', 'os_s_b'), self::get_text_decoration(' .tbp_product_out_of_stock', 'os_td'), self::get_text_shadow(' .tbp_product_out_of_stock', 'os_sh') ) ), 'h' => array( 'options' => array( self::get_font_family(':hover .tbp_product_out_of_stock', 'os_f_h'), self::get_color(':hover .tbp_product_out_of_stock', 'os_c_h'), self::get_font_size(':hover .tbp_product_out_of_stock', 'os_fs_h'), self::get_font_style(':hover .tbp_product_out_of_stock', 'os_s_h', 'os_s_b_h'), self::get_text_decoration(':hover .tbp_product_out_of_stock', 'os_td_h'), self::get_text_shadow(':hover .tbp_product_out_of_stock', 'os_sh_h') ) ) )) )), ); return array( 'type' => 'tabs', 'options' => array( 'g' => array( 'options' => $general ), 'tbp_inst' => array( 'options' => $in_stock, ), 'tbp_outst' => array( 'options' => $out_of_stock, ), ) ); } public static function get_styling_image_fields() : array { return [ 'background_image' => '' ]; } } if (!method_exists( 'Themify_Builder_Component_Module', 'get_module_class' ) && TB_Product_Stock_Status_Module::is_available()) { if (method_exists('Themify_Builder_Model', 'add_module')) { new TB_Product_Stock_Status_Module(); } else { Themify_Builder_Model::register_module('TB_Product_Stock_Status_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]