Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../themes/Divi/includes/builder/module
File: PricingTables.php
<?php
[0] Fix | Delete
[1] Fix | Delete
class ET_Builder_Module_Pricing_Tables extends ET_Builder_Module {
[2] Fix | Delete
function init() {
[3] Fix | Delete
$this->name = esc_html__( 'Pricing Tables', 'et_builder' );
[4] Fix | Delete
$this->plural = esc_html__( 'Pricing Tables', 'et_builder' );
[5] Fix | Delete
$this->slug = 'et_pb_pricing_tables';
[6] Fix | Delete
$this->vb_support = 'on';
[7] Fix | Delete
$this->main_css_element = '%%order_class%%';
[8] Fix | Delete
$this->child_slug = 'et_pb_pricing_table';
[9] Fix | Delete
$this->child_item_text = esc_html__( 'Pricing Table', 'et_builder' );
[10] Fix | Delete
[11] Fix | Delete
$this->additional_shortcode = 'et_pb_pricing_item';
[12] Fix | Delete
$this->custom_css_fields = array(
[13] Fix | Delete
'pricing_heading' => array(
[14] Fix | Delete
'label' => esc_html__( 'Pricing Heading', 'et_builder' ),
[15] Fix | Delete
'selector' => '.et_pb_pricing_heading',
[16] Fix | Delete
),
[17] Fix | Delete
'pricing_title' => array(
[18] Fix | Delete
'label' => esc_html__( 'Pricing Title', 'et_builder' ),
[19] Fix | Delete
'selector' => '.et_pb_pricing_heading h2',
[20] Fix | Delete
),
[21] Fix | Delete
'pricing_subtitle' => array(
[22] Fix | Delete
'label' => esc_html__( 'Pricing Subtitle', 'et_builder' ),
[23] Fix | Delete
'selector' => '.et_pb_pricing_heading .et_pb_best_value',
[24] Fix | Delete
),
[25] Fix | Delete
'pricing_top' => array(
[26] Fix | Delete
'label' => esc_html__( 'Pricing Top', 'et_builder' ),
[27] Fix | Delete
'selector' => '.et_pb_pricing_content_top',
[28] Fix | Delete
),
[29] Fix | Delete
'price' => array(
[30] Fix | Delete
'label' => esc_html__( 'Price', 'et_builder' ),
[31] Fix | Delete
'selector' => '.et_pb_et_price',
[32] Fix | Delete
),
[33] Fix | Delete
'currency' => array(
[34] Fix | Delete
'label' => esc_html__( 'Currency', 'et_builder' ),
[35] Fix | Delete
'selector' => '.et_pb_dollar_sign',
[36] Fix | Delete
),
[37] Fix | Delete
'frequency' => array(
[38] Fix | Delete
'label' => esc_html__( 'Frequency', 'et_builder' ),
[39] Fix | Delete
'selector' => '.et_pb_frequency',
[40] Fix | Delete
),
[41] Fix | Delete
'pricing_content' => array(
[42] Fix | Delete
'label' => esc_html__( 'Pricing Content', 'et_builder' ),
[43] Fix | Delete
'selector' => '.et_pb_pricing_content',
[44] Fix | Delete
),
[45] Fix | Delete
'pricing_item' => array(
[46] Fix | Delete
'label' => esc_html__( 'Pricing Item', 'et_builder' ),
[47] Fix | Delete
'selector' => 'ul.et_pb_pricing li',
[48] Fix | Delete
),
[49] Fix | Delete
'pricing_item_excluded' => array(
[50] Fix | Delete
'label' => esc_html__( 'Excluded Item', 'et_builder' ),
[51] Fix | Delete
'selector' => 'ul.et_pb_pricing li.et_pb_not_available',
[52] Fix | Delete
),
[53] Fix | Delete
'pricing_button' => array(
[54] Fix | Delete
'label' => esc_html__( 'Pricing Button', 'et_builder' ),
[55] Fix | Delete
'selector' => '.et_pb_pricing_table_button',
[56] Fix | Delete
),
[57] Fix | Delete
'featured_table' => array(
[58] Fix | Delete
'label' => esc_html__( 'Featured Table', 'et_builder' ),
[59] Fix | Delete
'selector' => '.et_pb_featured_table',
[60] Fix | Delete
),
[61] Fix | Delete
);
[62] Fix | Delete
[63] Fix | Delete
$this->settings_modal_toggles = array(
[64] Fix | Delete
'general' => array(
[65] Fix | Delete
'toggles' => array(
[66] Fix | Delete
'elements' => et_builder_i18n( 'Elements' ),
[67] Fix | Delete
),
[68] Fix | Delete
),
[69] Fix | Delete
'advanced' => array(
[70] Fix | Delete
'toggles' => array(
[71] Fix | Delete
'layout' => et_builder_i18n( 'Layout' ),
[72] Fix | Delete
'bullet' => esc_html__( 'Bullet', 'et_builder' ),
[73] Fix | Delete
),
[74] Fix | Delete
),
[75] Fix | Delete
);
[76] Fix | Delete
[77] Fix | Delete
$this->advanced_fields = array(
[78] Fix | Delete
'borders' => array(
[79] Fix | Delete
'default' => array(
[80] Fix | Delete
// @TODO
[81] Fix | Delete
'additional_elements' => array(
[82] Fix | Delete
array(
[83] Fix | Delete
"{$this->main_css_element} .et_pb_pricing_content_top" => array( 'bottom' ),
[84] Fix | Delete
),
[85] Fix | Delete
),
[86] Fix | Delete
'css' => array(
[87] Fix | Delete
'main' => array(
[88] Fix | Delete
'border_radii' => "{$this->main_css_element} .et_pb_pricing_table",
[89] Fix | Delete
'border_styles' => "{$this->main_css_element} .et_pb_pricing_table",
[90] Fix | Delete
),
[91] Fix | Delete
),
[92] Fix | Delete
'defaults' => array(
[93] Fix | Delete
'border_radii' => 'on||||',
[94] Fix | Delete
'border_styles' => array(
[95] Fix | Delete
'width' => '1px',
[96] Fix | Delete
'color' => '#bebebe',
[97] Fix | Delete
'style' => 'solid',
[98] Fix | Delete
),
[99] Fix | Delete
),
[100] Fix | Delete
),
[101] Fix | Delete
'price' => array(
[102] Fix | Delete
'css' => array(
[103] Fix | Delete
'main' => array(
[104] Fix | Delete
'border_radii' => "{$this->main_css_element} .et_pb_pricing_content_top",
[105] Fix | Delete
'border_styles' => "{$this->main_css_element} .et_pb_pricing_content_top",
[106] Fix | Delete
),
[107] Fix | Delete
),
[108] Fix | Delete
'option_category' => 'border',
[109] Fix | Delete
'tab_slug' => 'advanced',
[110] Fix | Delete
'toggle_slug' => 'price',
[111] Fix | Delete
'defaults' => array(
[112] Fix | Delete
'border_radii' => 'on||||',
[113] Fix | Delete
'border_styles' => array(
[114] Fix | Delete
'width' => '0px',
[115] Fix | Delete
'color' => '#bebebe',
[116] Fix | Delete
'style' => 'solid',
[117] Fix | Delete
),
[118] Fix | Delete
'composite' => array(
[119] Fix | Delete
'border_bottom' => array(
[120] Fix | Delete
'border_width_bottom' => '1px',
[121] Fix | Delete
),
[122] Fix | Delete
),
[123] Fix | Delete
),
[124] Fix | Delete
),
[125] Fix | Delete
),
[126] Fix | Delete
'fonts' => array(
[127] Fix | Delete
'header' => array(
[128] Fix | Delete
'label' => et_builder_i18n( 'Title' ),
[129] Fix | Delete
'css' => array(
[130] Fix | Delete
'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",
[131] Fix | Delete
'important' => 'all',
[132] Fix | Delete
),
[133] Fix | Delete
'letter_spacing' => array(
[134] Fix | Delete
'default' => '0px',
[135] Fix | Delete
),
[136] Fix | Delete
'header_level' => array(
[137] Fix | Delete
'default' => 'h2',
[138] Fix | Delete
),
[139] Fix | Delete
'options_priority' => array(
[140] Fix | Delete
'header_text_color' => 9,
[141] Fix | Delete
),
[142] Fix | Delete
),
[143] Fix | Delete
'body' => array(
[144] Fix | Delete
'label' => et_builder_i18n( 'Body' ),
[145] Fix | Delete
'css' => array(
[146] Fix | Delete
'main' => "{$this->main_css_element} .et_pb_pricing li",
[147] Fix | Delete
'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",
[148] Fix | Delete
),
[149] Fix | Delete
'line_height' => array(
[150] Fix | Delete
'range_settings' => array(
[151] Fix | Delete
'min' => '1',
[152] Fix | Delete
'max' => '100',
[153] Fix | Delete
'step' => '1',
[154] Fix | Delete
),
[155] Fix | Delete
),
[156] Fix | Delete
'font_size' => array(
[157] Fix | Delete
'default' => absint( et_get_option( 'body_font_size', '14' ) ) . 'px',
[158] Fix | Delete
),
[159] Fix | Delete
'letter_spacing' => array(
[160] Fix | Delete
'default' => '0px',
[161] Fix | Delete
),
[162] Fix | Delete
'block_elements' => array(
[163] Fix | Delete
'tabbed_subtoggles' => true,
[164] Fix | Delete
'bb_icons_support' => true,
[165] Fix | Delete
),
[166] Fix | Delete
'options_priority' => array(
[167] Fix | Delete
'body_text_color' => 9,
[168] Fix | Delete
),
[169] Fix | Delete
),
[170] Fix | Delete
'subheader' => array(
[171] Fix | Delete
'label' => esc_html__( 'Subtitle', 'et_builder' ),
[172] Fix | Delete
'css' => array(
[173] Fix | Delete
'main' => "{$this->main_css_element} .et_pb_best_value",
[174] Fix | Delete
),
[175] Fix | Delete
'letter_spacing' => array(
[176] Fix | Delete
'default' => '0px',
[177] Fix | Delete
),
[178] Fix | Delete
'line_height' => array(
[179] Fix | Delete
'default' => '1em',
[180] Fix | Delete
),
[181] Fix | Delete
'options_priority' => array(
[182] Fix | Delete
'subheader_text_color' => 9,
[183] Fix | Delete
),
[184] Fix | Delete
),
[185] Fix | Delete
'price' => array(
[186] Fix | Delete
'label' => esc_html__( 'Price', 'et_builder' ),
[187] Fix | Delete
'css' => array(
[188] Fix | Delete
'main' => "{$this->main_css_element} .et_pb_sum",
[189] Fix | Delete
'text_align' => "{$this->main_css_element} .et_pb_pricing_content_top",
[190] Fix | Delete
),
[191] Fix | Delete
'line_height' => array(
[192] Fix | Delete
'range_settings' => array(
[193] Fix | Delete
'min' => '1',
[194] Fix | Delete
'max' => '100',
[195] Fix | Delete
'step' => '1',
[196] Fix | Delete
),
[197] Fix | Delete
),
[198] Fix | Delete
'options_priority' => array(
[199] Fix | Delete
'price_text_color' => 8,
[200] Fix | Delete
),
[201] Fix | Delete
),
[202] Fix | Delete
'currency_frequency' => array(
[203] Fix | Delete
'label' => esc_html__( 'Currency &amp; Frequency', 'et_builder' ),
[204] Fix | Delete
'css' => array(
[205] Fix | Delete
'main' => "{$this->main_css_element} .et_pb_dollar_sign, {$this->main_css_element} .et_pb_frequency",
[206] Fix | Delete
),
[207] Fix | Delete
'hide_text_align' => true,
[208] Fix | Delete
'options_priority' => array(
[209] Fix | Delete
'currency_frequency_text_color' => 9,
[210] Fix | Delete
),
[211] Fix | Delete
),
[212] Fix | Delete
'excluded' => array(
[213] Fix | Delete
'label' => esc_html__( 'Excluded Item', 'et_builder' ),
[214] Fix | Delete
'css' => array(
[215] Fix | Delete
'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",
[216] Fix | Delete
),
[217] Fix | Delete
'line_height' => array(
[218] Fix | Delete
'range_settings' => array(
[219] Fix | Delete
'min' => '1',
[220] Fix | Delete
'max' => '100',
[221] Fix | Delete
'step' => '1',
[222] Fix | Delete
),
[223] Fix | Delete
),
[224] Fix | Delete
'font_size' => array(
[225] Fix | Delete
'default' => absint( et_get_option( 'body_font_size', '14' ) ) . 'px',
[226] Fix | Delete
),
[227] Fix | Delete
'options_priority' => array(
[228] Fix | Delete
'excluded_text_color' => 9,
[229] Fix | Delete
),
[230] Fix | Delete
),
[231] Fix | Delete
),
[232] Fix | Delete
'background' => array(
[233] Fix | Delete
'css' => array(
[234] Fix | Delete
'main' => "{$this->main_css_element} .et_pb_pricing_table",
[235] Fix | Delete
),
[236] Fix | Delete
'settings' => array(
[237] Fix | Delete
'color' => 'alpha',
[238] Fix | Delete
),
[239] Fix | Delete
),
[240] Fix | Delete
'button' => array(
[241] Fix | Delete
'button' => array(
[242] Fix | Delete
'label' => et_builder_i18n( 'Button' ),
[243] Fix | Delete
'css' => array(
[244] Fix | Delete
'main' => "{$this->main_css_element} .et_pb_pricing_table_button.et_pb_button",
[245] Fix | Delete
'limited_main' => "{$this->main_css_element} .et_pb_pricing_table_button.et_pb_button",
[246] Fix | Delete
'alignment' => "{$this->main_css_element} .et_pb_button_wrapper",
[247] Fix | Delete
),
[248] Fix | Delete
'use_alignment' => true,
[249] Fix | Delete
'box_shadow' => array(
[250] Fix | Delete
'css' => array(
[251] Fix | Delete
'main' => '%%order_class%% .et_pb_button',
[252] Fix | Delete
),
[253] Fix | Delete
),
[254] Fix | Delete
'margin_padding' => array(
[255] Fix | Delete
'css' => array(
[256] Fix | Delete
'important' => 'all',
[257] Fix | Delete
),
[258] Fix | Delete
),
[259] Fix | Delete
),
[260] Fix | Delete
),
[261] Fix | Delete
'margin_padding' => array(
[262] Fix | Delete
'css' => array(
[263] Fix | Delete
'important' => 'all', // needed to overwrite last module margin-bottom styling
[264] Fix | Delete
'main' => '%%order_class%% .et_pb_pricing_heading, %%order_class%% .et_pb_pricing_content_top, %%order_class%% .et_pb_pricing_content',
[265] Fix | Delete
'padding-right' => '%%order_class%% .et_pb_button_wrapper',
[266] Fix | Delete
'padding-bottom' => '%%order_class%% .et_pb_pricing_table',
[267] Fix | Delete
'padding-left' => '%%order_class%% .et_pb_button_wrapper',
[268] Fix | Delete
),
[269] Fix | Delete
),
[270] Fix | Delete
'text' => array(
[271] Fix | Delete
'css' => array(
[272] Fix | Delete
'text_orientation' => '%%order_class%% .et_pb_pricing_table, %%order_class%% .et_pb_pricing_content',
[273] Fix | Delete
'text_shadow' => '%%order_class%% .et_pb_pricing_heading, %%order_class%% .et_pb_pricing_content_top, %%order_class%% .et_pb_pricing_content',
[274] Fix | Delete
),
[275] Fix | Delete
),
[276] Fix | Delete
'position_fields' => array(
[277] Fix | Delete
'default' => 'relative',
[278] Fix | Delete
),
[279] Fix | Delete
);
[280] Fix | Delete
[281] Fix | Delete
$this->help_videos = array(
[282] Fix | Delete
array(
[283] Fix | Delete
'id' => 'BVzu4WnjgYI',
[284] Fix | Delete
'name' => esc_html__( 'An introduction to the Pricing Tables module', 'et_builder' ),
[285] Fix | Delete
),
[286] Fix | Delete
);
[287] Fix | Delete
}
[288] Fix | Delete
[289] Fix | Delete
function get_fields() {
[290] Fix | Delete
$fields = array(
[291] Fix | Delete
'featured_table_background_color' => array(
[292] Fix | Delete
'label' => esc_html__( 'Featured Background Color', 'et_builder' ),
[293] Fix | Delete
'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' ),
[294] Fix | Delete
'type' => 'color-alpha',
[295] Fix | Delete
'custom_color' => true,
[296] Fix | Delete
'tab_slug' => 'advanced',
[297] Fix | Delete
'toggle_slug' => 'layout',
[298] Fix | Delete
'priority' => 23,
[299] Fix | Delete
'hover' => 'tabs',
[300] Fix | Delete
'mobile_options' => true,
[301] Fix | Delete
),
[302] Fix | Delete
'featured_table_header_background_color' => array(
[303] Fix | Delete
'label' => esc_html__( 'Featured Header Background Color', 'et_builder' ),
[304] Fix | Delete
'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' ),
[305] Fix | Delete
'type' => 'color-alpha',
[306] Fix | Delete
'custom_color' => true,
[307] Fix | Delete
'tab_slug' => 'advanced',
[308] Fix | Delete
'toggle_slug' => 'header',
[309] Fix | Delete
'priority' => 21,
[310] Fix | Delete
'hover' => 'tabs',
[311] Fix | Delete
'mobile_options' => true,
[312] Fix | Delete
),
[313] Fix | Delete
'featured_table_header_text_color' => array(
[314] Fix | Delete
'label' => esc_html__( 'Featured Title Text Color', 'et_builder' ),
[315] Fix | Delete
'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' ),
[316] Fix | Delete
'type' => 'color-alpha',
[317] Fix | Delete
'custom_color' => true,
[318] Fix | Delete
'tab_slug' => 'advanced',
[319] Fix | Delete
'toggle_slug' => 'header',
[320] Fix | Delete
'priority' => 20,
[321] Fix | Delete
'hover' => 'tabs',
[322] Fix | Delete
'mobile_options' => true,
[323] Fix | Delete
),
[324] Fix | Delete
'header_background_color' => array(
[325] Fix | Delete
'label' => esc_html__( 'Table Header Background Color', 'et_builder' ),
[326] Fix | Delete
'description' => esc_html__( 'Pick a color to use for the background behind pricing table titles.', 'et_builder' ),
[327] Fix | Delete
'type' => 'color-alpha',
[328] Fix | Delete
'custom_color' => true,
[329] Fix | Delete
'tab_slug' => 'advanced',
[330] Fix | Delete
'toggle_slug' => 'header',
[331] Fix | Delete
'hover' => 'tabs',
[332] Fix | Delete
'mobile_options' => true,
[333] Fix | Delete
),
[334] Fix | Delete
'featured_table_subheader_text_color' => array(
[335] Fix | Delete
'label' => esc_html__( 'Featured Subtitle Text Color', 'et_builder' ),
[336] Fix | Delete
'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' ),
[337] Fix | Delete
'type' => 'color-alpha',
[338] Fix | Delete
'custom_color' => true,
[339] Fix | Delete
'tab_slug' => 'advanced',
[340] Fix | Delete
'toggle_slug' => 'subheader',
[341] Fix | Delete
'priority' => 20,
[342] Fix | Delete
'hover' => 'tabs',
[343] Fix | Delete
'mobile_options' => true,
[344] Fix | Delete
),
[345] Fix | Delete
'featured_table_text_color' => array(
[346] Fix | Delete
'label' => esc_html__( 'Featured Body Text Color', 'et_builder' ),
[347] Fix | Delete
'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' ),
[348] Fix | Delete
'type' => 'color-alpha',
[349] Fix | Delete
'custom_color' => true,
[350] Fix | Delete
'tab_slug' => 'advanced',
[351] Fix | Delete
'toggle_slug' => 'body',
[352] Fix | Delete
'sub_toggle' => 'p',
[353] Fix | Delete
'priority' => 8,
[354] Fix | Delete
'hover' => 'tabs',
[355] Fix | Delete
'mobile_options' => true,
[356] Fix | Delete
),
[357] Fix | Delete
'show_bullet' => array(
[358] Fix | Delete
'label' => esc_html__( 'Show Bullets', 'et_builder' ),
[359] Fix | Delete
'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' ),
[360] Fix | Delete
'type' => 'yes_no_button',
[361] Fix | Delete
'option_category' => 'layout',
[362] Fix | Delete
'options' => array(
[363] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[364] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[365] Fix | Delete
),
[366] Fix | Delete
'default_on_front' => 'on',
[367] Fix | Delete
'toggle_slug' => 'elements',
[368] Fix | Delete
'affects' => array(
[369] Fix | Delete
'bullet_color',
[370] Fix | Delete
),
[371] Fix | Delete
'mobile_options' => true,
[372] Fix | Delete
'hover' => 'tabs',
[373] Fix | Delete
),
[374] Fix | Delete
'featured_table_bullet_color' => array(
[375] Fix | Delete
'label' => esc_html__( 'Featured Bullet Color', 'et_builder' ),
[376] Fix | Delete
'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' ),
[377] Fix | Delete
'type' => 'color-alpha',
[378] Fix | Delete
'custom_color' => true,
[379] Fix | Delete
'tab_slug' => 'advanced',
[380] Fix | Delete
'toggle_slug' => 'bullet',
[381] Fix | Delete
'priority' => 22,
[382] Fix | Delete
'hover' => 'tabs',
[383] Fix | Delete
'mobile_options' => true,
[384] Fix | Delete
),
[385] Fix | Delete
'bullet_color' => array(
[386] Fix | Delete
'label' => esc_html__( 'Bullet Color', 'et_builder' ),
[387] Fix | Delete
'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' ),
[388] Fix | Delete
'type' => 'color-alpha',
[389] Fix | Delete
'custom_color' => true,
[390] Fix | Delete
'tab_slug' => 'advanced',
[391] Fix | Delete
'toggle_slug' => 'bullet',
[392] Fix | Delete
'depends_show_if' => 'on',
[393] Fix | Delete
'hover' => 'tabs',
[394] Fix | Delete
'mobile_options' => true,
[395] Fix | Delete
),
[396] Fix | Delete
'show_featured_drop_shadow' => array(
[397] Fix | Delete
'label' => esc_html__( 'Show Featured Drop Shadow', 'et_builder' ),
[398] Fix | Delete
'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' ),
[399] Fix | Delete
'type' => 'yes_no_button',
[400] Fix | Delete
'option_category' => 'layout',
[401] Fix | Delete
'options' => array(
[402] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[403] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[404] Fix | Delete
),
[405] Fix | Delete
'default_on_front' => 'on',
[406] Fix | Delete
'tab_slug' => 'advanced',
[407] Fix | Delete
'toggle_slug' => 'layout',
[408] Fix | Delete
'priority' => 24,
[409] Fix | Delete
'mobile_options' => true,
[410] Fix | Delete
),
[411] Fix | Delete
'featured_table_excluded_text_color' => array(
[412] Fix | Delete
'label' => esc_html__( 'Featured Excluded Item Color', 'et_builder' ),
[413] Fix | Delete
'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' ),
[414] Fix | Delete
'type' => 'color-alpha',
[415] Fix | Delete
'custom_color' => true,
[416] Fix | Delete
'tab_slug' => 'advanced',
[417] Fix | Delete
'toggle_slug' => 'excluded',
[418] Fix | Delete
'priority' => 20,
[419] Fix | Delete
'hover' => 'tabs',
[420] Fix | Delete
'mobile_options' => true,
[421] Fix | Delete
),
[422] Fix | Delete
'featured_table_price_background_color' => array(
[423] Fix | Delete
'label' => esc_html__( 'Featured Pricing Area Background Color', 'et_builder' ),
[424] Fix | Delete
'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' ),
[425] Fix | Delete
'type' => 'color-alpha',
[426] Fix | Delete
'custom_color' => true,
[427] Fix | Delete
'tab_slug' => 'advanced',
[428] Fix | Delete
'toggle_slug' => 'price',
[429] Fix | Delete
'priority' => 18,
[430] Fix | Delete
'hover' => 'tabs',
[431] Fix | Delete
'mobile_options' => true,
[432] Fix | Delete
),
[433] Fix | Delete
'featured_table_price_color' => array(
[434] Fix | Delete
'label' => esc_html__( 'Featured Price Text Color', 'et_builder' ),
[435] Fix | Delete
'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' ),
[436] Fix | Delete
'type' => 'color-alpha',
[437] Fix | Delete
'custom_color' => true,
[438] Fix | Delete
'tab_slug' => 'advanced',
[439] Fix | Delete
'toggle_slug' => 'price',
[440] Fix | Delete
'priority' => 19,
[441] Fix | Delete
'hover' => 'tabs',
[442] Fix | Delete
'mobile_options' => true,
[443] Fix | Delete
),
[444] Fix | Delete
'featured_table_currency_frequency_text_color' => array(
[445] Fix | Delete
'label' => esc_html__( 'Featured Currency &amp; Frequency Text Color', 'et_builder' ),
[446] Fix | Delete
'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' ),
[447] Fix | Delete
'type' => 'color-alpha',
[448] Fix | Delete
'custom_color' => true,
[449] Fix | Delete
'tab_slug' => 'advanced',
[450] Fix | Delete
'toggle_slug' => 'currency_frequency',
[451] Fix | Delete
'priority' => 20,
[452] Fix | Delete
'hover' => 'tabs',
[453] Fix | Delete
'mobile_options' => true,
[454] Fix | Delete
),
[455] Fix | Delete
'price_background_color' => array(
[456] Fix | Delete
'label' => esc_html__( 'Pricing Area Background Color', 'et_builder' ),
[457] Fix | Delete
'description' => esc_html__( 'Pick a color to use for the background area that appears behind the pricing text.', 'et_builder' ),
[458] Fix | Delete
'type' => 'color-alpha',
[459] Fix | Delete
'custom_color' => true,
[460] Fix | Delete
'tab_slug' => 'advanced',
[461] Fix | Delete
'toggle_slug' => 'price',
[462] Fix | Delete
'priority' => 21,
[463] Fix | Delete
'hover' => 'tabs',
[464] Fix | Delete
'mobile_options' => true,
[465] Fix | Delete
),
[466] Fix | Delete
);
[467] Fix | Delete
return $fields;
[468] Fix | Delete
}
[469] Fix | Delete
[470] Fix | Delete
public function get_transition_fields_css_props() {
[471] Fix | Delete
$fields = parent::get_transition_fields_css_props();
[472] Fix | Delete
[473] Fix | Delete
$fields['bullet_color'] = array('border-color' => '%%order_class%% .et_pb_pricing li span:before');
[474] Fix | Delete
$fields['featured_table_bullet_color'] = array('border-color' => '%%order_class%% .et_pb_featured_table .et_pb_pricing li span:before');
[475] Fix | Delete
[476] Fix | Delete
$fields['featured_table_header_background_color'] = array('background-color' => '%%order_class%% .et_pb_featured_table .et_pb_pricing_heading');
[477] Fix | Delete
$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');
[478] Fix | Delete
$fields['header_background_color'] = array('background-color' => '%%order_class%% .et_pb_pricing_heading');
[479] Fix | Delete
$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');
[480] Fix | Delete
$fields['featured_table_subheader_text_color'] = array('color' => '%%order_class%% .et_pb_featured_table .et_pb_best_value');
[481] Fix | Delete
$fields['featured_table_price_color'] = array('color' => '%%order_class%% .et_pb_featured_table .et_pb_sum');
[482] Fix | Delete
[483] Fix | Delete
$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' );
[484] Fix | Delete
$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' );
[485] Fix | Delete
$fields['featured_table_price_background_color'] = array( 'background-color' => '%%order_class%% .et_pb_featured_table .et_pb_pricing_content_top' );
[486] Fix | Delete
$fields['price_background_color'] = array( 'background-color' => '%%order_class%% .et_pb_pricing_content_top' );
[487] Fix | Delete
[488] Fix | Delete
return $fields;
[489] Fix | Delete
}
[490] Fix | Delete
[491] Fix | Delete
function before_render() {
[492] Fix | Delete
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;
[493] Fix | Delete
[494] Fix | Delete
$button_custom = $this->props['custom_button'];
[495] Fix | Delete
[496] Fix | Delete
$custom_icon_values = et_pb_responsive_options()->get_property_values( $this->props, 'button_icon' );
[497] Fix | Delete
$custom_icon = isset( $custom_icon_values['desktop'] ) ? $custom_icon_values['desktop'] : '';
[498] Fix | Delete
$custom_icon_tablet = isset( $custom_icon_values['tablet'] ) ? $custom_icon_values['tablet'] : '';
[499] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function