: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
exit; // Exit if accessed directly
class TB_Cart_Icon_Module extends Themify_Builder_Component_Module {
parent::__construct(array(
'name' => __('Cart Icon', 'tbp'),
'category' => array('site')
public function get_assets() {
'ver'=>Tbp::get_version(),
'css'=>TBP_WC_CSS_MODULES.$this->slug.'.css'
public function get_icon(){
public function get_options() {
'label' => __('Icon', 'tbp')
'label' => __( 'Style', 'tbp'),
'slide' => __( 'Slide', 'tbp'),
'dropdown' => __( 'Drop Down', 'tbp')
'label' => __('Bubble', 'tbp'),
'type' => 'toggle_switch',
'on' => array('name'=>'on','value' =>'show'),
'off' => array('name'=>'off', 'value' =>'')
'label' => __('Sub Total', 'tbp'),
'type' => 'toggle_switch',
'on' => array('name'=>'on','value' =>'show'),
'off' => array('name'=>'off', 'value' =>'')
'label' => __( 'Alignment', 'tbp'),
public function get_styling() {
self::get_expand('bg', array(
self::get_image('', 'b_i','bg_c','b_r','b_p')
self::get_image('', 'b_i','bg_c','b_r','b_p', 'h')
self::get_expand('f', array(
self::get_font_family('', 'f_f_g'),
self::get_color_type(array('',' .tbp_shop_cart_icon:before'),'', 'f_c_t_g', 'f_c_g', 'f_g_c_g'),
self::get_font_size(array('', ' .tbp_cart_wrap .tbp_cart_product .tbp_cart_title'), 'f_s_g', ''),
self::get_line_height('', 'l_h_g'),
self::get_letter_spacing('', 'l_s_g'),
self::get_text_transform('', 't_t_g'),
self::get_font_style('', 'f_st_g', 'f_w_g'),
self::get_text_decoration('', 't_d_r_g'),
self::get_text_shadow('','t_sh_g','h'),
self::get_font_family('', 'f_f_g_h'),
self::get_color_type(array('',' .tbp_shop_cart_icon:before'),'', 'f_c_t_g_h', 'f_c_g_h', 'f_g_c_g_h'),
self::get_font_size('', 'f_s_g', '', 'h'),
self::get_line_height('', 'l_h_g', 'h'),
self::get_letter_spacing('', 'l_s_g', 'h'),
self::get_text_transform('', 't_t_g', 'h'),
self::get_font_style('', 'f_st_g', 'f_w_g', 'h'),
self::get_text_decoration('', 't_d_r_g', 'h'),
self::get_text_shadow('','t_sh_g','h'),
self::get_expand('l', array(
self::get_color(' a', 'l_c'),
self::get_text_decoration(' a', 't_d_l')
self::get_color(' a', 'l_c',null, null, 'hover'),
self::get_text_decoration(' a', 't_d_l', 'h')
self::get_expand('p', array(
self::get_padding('', 'p')
self::get_padding('', 'p', 'h')
self::get_expand('m', array(
self::get_margin('', 'm')
self::get_margin('', 'm', 'h')
self::get_expand('b', array(
self::get_border('', 'b')
self::get_border('', 'b', 'h')
'options' => count($a = self::get_blend('','fl'))>2 ? array($a) : $a
'options' => count($a = self::get_blend('','fl_h','h'))>2 ? array($a + array('ishover'=>true)) : $a
self::get_expand('w', array(
self::get_width('', 'w', 'h')
self::get_expand('r_c', array(
self::get_border_radius('', 'r_c')
self::get_border_radius('', 'r_c', 'h')
self::get_expand('sh', array(
self::get_box_shadow('', 'sh')
self::get_box_shadow('', 'sh', 'h')
self::get_expand('po', array( self::get_css_position())),
self::get_expand('disp', self::get_display())
self::get_expand('bg', array(
self::get_color(' .woocommerce-Price-amount', 'b_c_c_s_t', 'bg_c', 'background-color')
self::get_color(' .woocommerce-Price-amount', 'b_c_c_s_t', 'bg_c', 'background-color', 'h')
self::get_expand('f', array(
self::get_font_family(' .woocommerce-Price-amount', 'f_f_c_s_t'),
self::get_color(' .woocommerce-Price-amount', 'f_c_c_s_t'),
self::get_font_size(' .woocommerce-Price-amount', 'f_s_c_s_t'),
self::get_letter_spacing(' .woocommerce-Price-amount', 'l_s_c_s_t'),
self::get_line_height(' .woocommerce-Price-amount', 'l_h_c_s_t'),
self::get_font_style(' .woocommerce-Price-amount', 'f_st_c_s_t', 'f_w_c_s_t'),
self::get_text_shadow(' .woocommerce-Price-amount', 't_sh_c_s_t'),
self::get_font_family(' .woocommerce-Price-amount', 'f_f_c_s_t', 'h'),
self::get_color(' .woocommerce-Price-amount', 'f_c_c_s_t', null,null, 'h'),
self::get_font_size(' .woocommerce-Price-amount', 'f_s_c_s_t', 'h'),
self::get_letter_spacing(' .woocommerce-Price-amount', 'l_s_c_s_t', 'h'),
self::get_line_height(' .woocommerce-Price-amount', 'l_h_c_s_t', 'h'),
self::get_font_style(' .woocommerce-Price-amount', 'f_st_c_s_t', 'f_w_c_s_t', 'h'),
self::get_text_shadow(' .woocommerce-Price-amount', 't_sh_c_s_t', 'h'),
self::get_expand('p', array(
self::get_padding(' .woocommerce-Price-amount', 'p_c_s_t')
self::get_padding(' .woocommerce-Price-amount', 'p_c_s_t', 'h')
self::get_expand('m', array(
self::get_margin(' .woocommerce-Price-amount', 'm_c_s_t'),
self::get_margin(' .woocommerce-Price-amount', 'm_c_s_t', 'h'),
self::get_expand('b', array(
self::get_border(' .woocommerce-Price-amount', 'b_c_s_t')
self::get_border(' .woocommerce-Price-amount', 'b_c_s_t', 'h')
self::get_expand('r_c', array(
self::get_border_radius(' .woocommerce-Price-amount', 'r_c_c_s_t')
self::get_border_radius(' .woocommerce-Price-amount', 'r_c_c_s_t', 'h')
self::get_expand('sh', array(
self::get_box_shadow(' .woocommerce-Price-amount', 'sh_c_s_t')
self::get_box_shadow(' .woocommerce-Price-amount', 'sh_c_s_t', 'h')
self::get_expand('bg', array(
self::get_color(' .tbp_shop_cart_icon', 'b_c_c_i_i', 'bg_c', 'background-color')
self::get_color(' .tbp_shop_cart_icon', 'b_c_c_i_i', 'bg_c', 'background-color', 'h')
self::get_expand('f', array(
self::get_color(array(' .tbp_shop_cart_icon',' .tbp_shop_cart_icon:before'), 'f_c_c_i_i'),
self::get_font_size(' .tbp_shop_cart_icon', 'f_s_c_i_i'),
self::get_color(array(' .tbp_shop_cart_icon',' .tbp_shop_cart_icon:before'), 'f_c_c_i_i', null,null, 'h'),
self::get_font_size(' .tbp_shop_cart_icon', 'f_s_c_i_i', '', 'h'),
self::get_expand('p', array(
self::get_padding(' .tbp_shop_cart_icon', 'p_c_i_i')
self::get_padding(' .tbp_shop_cart_icon', 'p_c_i_i', 'h')
self::get_expand('m', array(
self::get_margin(' .tbp_shop_cart_icon', 'm_c_i_i'),
self::get_margin(' .tbp_shop_cart_icon', 'm_c_i_i', 'h'),
self::get_expand('b', array(
self::get_border(' .tbp_shop_cart_icon', 'b_c_i_i')
self::get_border(' .tbp_shop_cart_icon', 'b_c_i_i', 'h')
self::get_expand('r_c', array(
self::get_border_radius(' .tbp_shop_cart_icon', 'r_c_c_i_i')
self::get_border_radius(' .tbp_shop_cart_icon', 'r_c_c_i_i', 'h')
self::get_expand('sh', array(
self::get_box_shadow(' .tbp_shop_cart_icon', 'sh_c_i_i')
self::get_box_shadow(' .tbp_shop_cart_icon', 'sh_c_i_i', 'h')
self::get_expand('bg', array(
self::get_color(' .tbp_cart_count', 'b_c_c_i_b', 'bg_c', 'background-color')
self::get_color(' .tbp_cart_count', 'b_c_c_i_b', 'bg_c', 'background-color', 'h')
self::get_expand('f', array(
self::get_font_family(' .tbp_cart_count', 'f_f_c_i_b'),
self::get_color(' .tbp_cart_count', 'f_c_c_i_b'),