: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
class ET_Builder_Module_Pricing_Tables extends ET_Builder_Module {
$this->name = esc_html__( 'Pricing Tables', 'et_builder' );
$this->plural = esc_html__( 'Pricing Tables', 'et_builder' );
$this->slug = 'et_pb_pricing_tables';
$this->vb_support = 'on';
$this->main_css_element = '%%order_class%%';
$this->child_slug = 'et_pb_pricing_table';
$this->child_item_text = esc_html__( 'Pricing Table', 'et_builder' );
$this->additional_shortcode = 'et_pb_pricing_item';
$this->custom_css_fields = array(
'pricing_heading' => array(
'label' => esc_html__( 'Pricing Heading', 'et_builder' ),
'selector' => '.et_pb_pricing_heading',
'pricing_title' => array(
'label' => esc_html__( 'Pricing Title', 'et_builder' ),
'selector' => '.et_pb_pricing_heading h2',
'pricing_subtitle' => array(
'label' => esc_html__( 'Pricing Subtitle', 'et_builder' ),
'selector' => '.et_pb_pricing_heading .et_pb_best_value',
'label' => esc_html__( 'Pricing Top', 'et_builder' ),
'selector' => '.et_pb_pricing_content_top',
'label' => esc_html__( 'Price', 'et_builder' ),
'selector' => '.et_pb_et_price',
'label' => esc_html__( 'Currency', 'et_builder' ),
'selector' => '.et_pb_dollar_sign',
'label' => esc_html__( 'Frequency', 'et_builder' ),
'selector' => '.et_pb_frequency',
'pricing_content' => array(
'label' => esc_html__( 'Pricing Content', 'et_builder' ),
'selector' => '.et_pb_pricing_content',
'label' => esc_html__( 'Pricing Item', 'et_builder' ),
'selector' => 'ul.et_pb_pricing li',
'pricing_item_excluded' => array(
'label' => esc_html__( 'Excluded Item', 'et_builder' ),
'selector' => 'ul.et_pb_pricing li.et_pb_not_available',
'pricing_button' => array(
'label' => esc_html__( 'Pricing Button', 'et_builder' ),
'selector' => '.et_pb_pricing_table_button',
'featured_table' => array(
'label' => esc_html__( 'Featured Table', 'et_builder' ),
'selector' => '.et_pb_featured_table',
$this->settings_modal_toggles = array(
'elements' => et_builder_i18n( 'Elements' ),
'layout' => et_builder_i18n( 'Layout' ),
'bullet' => esc_html__( 'Bullet', 'et_builder' ),
$this->advanced_fields = array(
'additional_elements' => array(
"{$this->main_css_element} .et_pb_pricing_content_top" => array( 'bottom' ),
'border_radii' => "{$this->main_css_element} .et_pb_pricing_table",
'border_styles' => "{$this->main_css_element} .et_pb_pricing_table",
'border_radii' => 'on||||',
'border_styles' => array(
'border_radii' => "{$this->main_css_element} .et_pb_pricing_content_top",
'border_styles' => "{$this->main_css_element} .et_pb_pricing_content_top",
'option_category' => 'border',
'tab_slug' => 'advanced',
'toggle_slug' => 'price',
'border_radii' => 'on||||',
'border_styles' => array(
'border_bottom' => array(
'border_width_bottom' => '1px',
'label' => et_builder_i18n( 'Title' ),
'main' => "{$this->main_css_element} .et_pb_pricing_heading h2, {$this->main_css_element} .et_pb_pricing_heading h1.et_pb_pricing_title, {$this->main_css_element} .et_pb_pricing_heading h3.et_pb_pricing_title, {$this->main_css_element} .et_pb_pricing_heading h4.et_pb_pricing_title, {$this->main_css_element} .et_pb_pricing_heading h5.et_pb_pricing_title, {$this->main_css_element} .et_pb_pricing_heading h6.et_pb_pricing_title",
'letter_spacing' => array(
'options_priority' => array(
'header_text_color' => 9,
'label' => et_builder_i18n( 'Body' ),
'main' => "{$this->main_css_element} .et_pb_pricing li",
'limited_main' => "{$this->main_css_element} .et_pb_pricing li, {$this->main_css_element} .et_pb_pricing li span, {$this->main_css_element} .et_pb_pricing li a",
'range_settings' => array(
'default' => absint( et_get_option( 'body_font_size', '14' ) ) . 'px',
'letter_spacing' => array(
'block_elements' => array(
'tabbed_subtoggles' => true,
'bb_icons_support' => true,
'options_priority' => array(
'label' => esc_html__( 'Subtitle', 'et_builder' ),
'main' => "{$this->main_css_element} .et_pb_best_value",
'letter_spacing' => array(
'options_priority' => array(
'subheader_text_color' => 9,
'label' => esc_html__( 'Price', 'et_builder' ),
'main' => "{$this->main_css_element} .et_pb_sum",
'text_align' => "{$this->main_css_element} .et_pb_pricing_content_top",
'range_settings' => array(
'options_priority' => array(
'currency_frequency' => array(
'label' => esc_html__( 'Currency & Frequency', 'et_builder' ),
'main' => "{$this->main_css_element} .et_pb_dollar_sign, {$this->main_css_element} .et_pb_frequency",
'hide_text_align' => true,
'options_priority' => array(
'currency_frequency_text_color' => 9,
'label' => esc_html__( 'Excluded Item', 'et_builder' ),
'main' => "{$this->main_css_element} .et_pb_pricing li.et_pb_not_available, {$this->main_css_element} .et_pb_pricing li.et_pb_not_available span, {$this->main_css_element} .et_pb_pricing li.et_pb_not_available a",
'range_settings' => array(
'default' => absint( et_get_option( 'body_font_size', '14' ) ) . 'px',
'options_priority' => array(
'excluded_text_color' => 9,
'main' => "{$this->main_css_element} .et_pb_pricing_table",
'label' => et_builder_i18n( 'Button' ),
'main' => "{$this->main_css_element} .et_pb_pricing_table_button.et_pb_button",
'limited_main' => "{$this->main_css_element} .et_pb_pricing_table_button.et_pb_button",
'alignment' => "{$this->main_css_element} .et_pb_button_wrapper",
'main' => '%%order_class%% .et_pb_button',
'margin_padding' => array(
'margin_padding' => array(
'important' => 'all', // needed to overwrite last module margin-bottom styling
'main' => '%%order_class%% .et_pb_pricing_heading, %%order_class%% .et_pb_pricing_content_top, %%order_class%% .et_pb_pricing_content',
'padding-right' => '%%order_class%% .et_pb_button_wrapper',
'padding-bottom' => '%%order_class%% .et_pb_pricing_table',
'padding-left' => '%%order_class%% .et_pb_button_wrapper',
'text_orientation' => '%%order_class%% .et_pb_pricing_table, %%order_class%% .et_pb_pricing_content',
'text_shadow' => '%%order_class%% .et_pb_pricing_heading, %%order_class%% .et_pb_pricing_content_top, %%order_class%% .et_pb_pricing_content',
'position_fields' => array(
$this->help_videos = array(
'name' => esc_html__( 'An introduction to the Pricing Tables module', 'et_builder' ),
'featured_table_background_color' => array(
'label' => esc_html__( 'Featured Background Color', 'et_builder' ),
'description' => esc_html__( 'Pick a unique color to be used for the background of featured pricing tables. This helps featured tables stand out from the rest.', 'et_builder' ),
'tab_slug' => 'advanced',
'toggle_slug' => 'layout',
'mobile_options' => true,
'featured_table_header_background_color' => array(
'label' => esc_html__( 'Featured Header Background Color', 'et_builder' ),
'description' => esc_html__( 'Pick a unique color to use for the background behind pricing table titles in featured pricing tables. Unique colors can help featured items stand out from the rest.', 'et_builder' ),
'tab_slug' => 'advanced',
'toggle_slug' => 'header',
'mobile_options' => true,
'featured_table_header_text_color' => array(
'label' => esc_html__( 'Featured Title Text Color', 'et_builder' ),
'description' => esc_html__( 'Pick a unique color to use for title text in featured pricing tables. Unique colors can help featured items stand out from the rest.', 'et_builder' ),
'tab_slug' => 'advanced',
'toggle_slug' => 'header',
'mobile_options' => true,
'header_background_color' => array(
'label' => esc_html__( 'Table Header Background Color', 'et_builder' ),
'description' => esc_html__( 'Pick a color to use for the background behind pricing table titles.', 'et_builder' ),
'tab_slug' => 'advanced',
'toggle_slug' => 'header',
'mobile_options' => true,
'featured_table_subheader_text_color' => array(
'label' => esc_html__( 'Featured Subtitle Text Color', 'et_builder' ),
'description' => esc_html__( 'Pick a unique color to use for subtitles in featured pricing tables. Unique colors can help featured items stand out from the rest.', 'et_builder' ),
'tab_slug' => 'advanced',
'toggle_slug' => 'subheader',
'mobile_options' => true,
'featured_table_text_color' => array(
'label' => esc_html__( 'Featured Body Text Color', 'et_builder' ),
'description' => esc_html__( 'Pick a unique color to use for body text in featured pricing tables. Unique colors can help featured items stand out from the rest.', 'et_builder' ),
'tab_slug' => 'advanced',
'mobile_options' => true,
'label' => esc_html__( 'Show Bullets', 'et_builder' ),
'description' => esc_html__( "Disabling bullets will remove the bullet points that appear next to each list item within the pricing table's feature area.", 'et_builder' ),
'type' => 'yes_no_button',
'option_category' => 'layout',
'on' => et_builder_i18n( 'Yes' ),
'off' => et_builder_i18n( 'No' ),
'default_on_front' => 'on',
'toggle_slug' => 'elements',
'mobile_options' => true,
'featured_table_bullet_color' => array(
'label' => esc_html__( 'Featured Bullet Color', 'et_builder' ),
'description' => esc_html__( 'Pick a unique color to use for the bullets that appear next to each list items within featured tabes. Unique colors can help featured items stand out from the rest.', 'et_builder' ),
'tab_slug' => 'advanced',
'toggle_slug' => 'bullet',
'mobile_options' => true,
'label' => esc_html__( 'Bullet Color', 'et_builder' ),
'description' => esc_html__( "Pick a color to use for the bullets that appear next to each list item within the pricing table's feature area.", 'et_builder' ),
'tab_slug' => 'advanced',
'toggle_slug' => 'bullet',
'depends_show_if' => 'on',
'mobile_options' => true,
'show_featured_drop_shadow' => array(
'label' => esc_html__( 'Show Featured Drop Shadow', 'et_builder' ),
'description' => esc_html__( 'Featured pricing tables have a drop shadow that helps them stand out from the rest. This shadow can be disabled if you wish.', 'et_builder' ),
'type' => 'yes_no_button',
'option_category' => 'layout',
'on' => et_builder_i18n( 'Yes' ),
'off' => et_builder_i18n( 'No' ),
'default_on_front' => 'on',
'tab_slug' => 'advanced',
'toggle_slug' => 'layout',
'mobile_options' => true,
'featured_table_excluded_text_color' => array(
'label' => esc_html__( 'Featured Excluded Item Color', 'et_builder' ),
'description' => esc_html__( 'Pick a unique color to use for excluded list items within featured pricing tables. Unique colors can help featured items stand out from the rest.', 'et_builder' ),
'tab_slug' => 'advanced',
'toggle_slug' => 'excluded',
'mobile_options' => true,
'featured_table_price_background_color' => array(
'label' => esc_html__( 'Featured Pricing Area Background Color', 'et_builder' ),
'description' => esc_html__( 'Pick a unique color to use for the background area that appears behind the pricing text in featured tables. Unique colors can help featured items stand out from the rest.', 'et_builder' ),
'tab_slug' => 'advanced',
'toggle_slug' => 'price',
'mobile_options' => true,
'featured_table_price_color' => array(
'label' => esc_html__( 'Featured Price Text Color', 'et_builder' ),
'description' => esc_html__( 'Pick a unique color to use for price text within featured pricing tables. Unique colors can help featured items stand out from the rest.', 'et_builder' ),
'tab_slug' => 'advanced',
'toggle_slug' => 'price',
'mobile_options' => true,
'featured_table_currency_frequency_text_color' => array(
'label' => esc_html__( 'Featured Currency & Frequency Text Color', 'et_builder' ),
'description' => esc_html__( 'Pick a unique color to use for currency and frequency text within featured pricing tables. Unique colors can help featured items stand out from the rest.', 'et_builder' ),
'tab_slug' => 'advanced',
'toggle_slug' => 'currency_frequency',
'mobile_options' => true,
'price_background_color' => array(
'label' => esc_html__( 'Pricing Area Background Color', 'et_builder' ),
'description' => esc_html__( 'Pick a color to use for the background area that appears behind the pricing text.', 'et_builder' ),
'tab_slug' => 'advanced',
'toggle_slug' => 'price',
'mobile_options' => true,
public function get_transition_fields_css_props() {
$fields = parent::get_transition_fields_css_props();
$fields['bullet_color'] = array('border-color' => '%%order_class%% .et_pb_pricing li span:before');
$fields['featured_table_bullet_color'] = array('border-color' => '%%order_class%% .et_pb_featured_table .et_pb_pricing li span:before');
$fields['featured_table_header_background_color'] = array('background-color' => '%%order_class%% .et_pb_featured_table .et_pb_pricing_heading');
$fields['featured_table_header_text_color'] = array('color' => '%%order_class%% .et_pb_featured_table .et_pb_pricing_heading h2, %%order_class%% .et_pb_featured_table .et_pb_pricing_heading .et_pb_pricing_title');
$fields['header_background_color'] = array('background-color' => '%%order_class%% .et_pb_pricing_heading');
$fields['featured_table_text_color'] = array('color' => '%%order_class%% .et_pb_featured_table .et_pb_pricing_content li, %%order_class%% .et_pb_featured_table .et_pb_pricing_content li span, %%order_class%% .et_pb_featured_table .et_pb_pricing_content li a');
$fields['featured_table_subheader_text_color'] = array('color' => '%%order_class%% .et_pb_featured_table .et_pb_best_value');
$fields['featured_table_price_color'] = array('color' => '%%order_class%% .et_pb_featured_table .et_pb_sum');
$fields['featured_table_currency_frequency_text_color'] = array( 'color' => '%%order_class%% .et_pb_featured_table .et_pb_dollar_sign, %%order_class%% .et_pb_featured_table .et_pb_frequency' );
$fields['featured_table_excluded_text_color'] = array( 'color' => '%%order_class%% .et_pb_featured_table .et_pb_pricing li.et_pb_not_available, %%order_class%% .et_pb_featured_table .et_pb_pricing li.et_pb_not_available span, %%order_class%% .et_pb_featured_table .et_pb_pricing li.et_pb_not_available a' );
$fields['featured_table_price_background_color'] = array( 'background-color' => '%%order_class%% .et_pb_featured_table .et_pb_pricing_content_top' );
$fields['price_background_color'] = array( 'background-color' => '%%order_class%% .et_pb_pricing_content_top' );
function before_render() {
global $et_pb_pricing_tables_num, $et_pb_pricing_tables_icon, $et_pb_pricing_tables_icon_tablet, $et_pb_pricing_tables_icon_phone, $et_pb_pricing_tab, $et_pb_pricing_tables_button_rel, $et_pb_pricing_tables_header_level;
$button_custom = $this->props['custom_button'];
$custom_icon_values = et_pb_responsive_options()->get_property_values( $this->props, 'button_icon' );
$custom_icon = isset( $custom_icon_values['desktop'] ) ? $custom_icon_values['desktop'] : '';
$custom_icon_tablet = isset( $custom_icon_values['tablet'] ) ? $custom_icon_values['tablet'] : '';