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

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-conte.../themes/Divi/includes/builder/module
File: PricingTables.php
$custom_icon_phone = isset( $custom_icon_values['phone'] ) ? $custom_icon_values['phone'] : '';
[500] Fix | Delete
[501] Fix | Delete
$et_pb_pricing_tables_num = 0;
[502] Fix | Delete
[503] Fix | Delete
$et_pb_pricing_tables_icon = 'on' === $button_custom ? $custom_icon : '';
[504] Fix | Delete
$et_pb_pricing_tables_icon_tablet = 'on' === $button_custom ? $custom_icon_tablet : '';
[505] Fix | Delete
$et_pb_pricing_tables_icon_phone = 'on' === $button_custom ? $custom_icon_phone : '';
[506] Fix | Delete
[507] Fix | Delete
$et_pb_pricing_tables_button_rel = $this->props['button_rel'];
[508] Fix | Delete
$et_pb_pricing_tables_header_level = 'h2' === $this->props['header_level'] ? '' : $this->props['header_level'];
[509] Fix | Delete
}
[510] Fix | Delete
[511] Fix | Delete
function render( $attrs, $content = null, $render_slug ) {
[512] Fix | Delete
$multi_view = et_pb_multi_view_options( $this );
[513] Fix | Delete
$featured_table = $this->get_featured_table( $content );
[514] Fix | Delete
$featured_table_background_color_hover = $this->get_hover_value( 'featured_table_background_color' );
[515] Fix | Delete
$featured_table_background_color_values = et_pb_responsive_options()->get_property_values( $this->props, 'featured_table_background_color' );
[516] Fix | Delete
$featured_table_text_color_hover = $this->get_hover_value( 'featured_table_text_color' );
[517] Fix | Delete
$featured_table_text_color_values = et_pb_responsive_options()->get_property_values( $this->props, 'featured_table_text_color' );
[518] Fix | Delete
$header_background_color_hover = $this->get_hover_value( 'header_background_color' );
[519] Fix | Delete
$header_background_color_values = et_pb_responsive_options()->get_property_values( $this->props, 'header_background_color' );
[520] Fix | Delete
$featured_table_header_background_color_hover = $this->get_hover_value( 'featured_table_header_background_color' );
[521] Fix | Delete
$featured_table_header_background_color_values = et_pb_responsive_options()->get_property_values( $this->props, 'featured_table_header_background_color' );
[522] Fix | Delete
$featured_table_header_text_color_hover = $this->get_hover_value( 'featured_table_header_text_color' );
[523] Fix | Delete
$featured_table_header_text_color_values = et_pb_responsive_options()->get_property_values( $this->props, 'featured_table_header_text_color' );
[524] Fix | Delete
$featured_table_subheader_text_color_hover = $this->get_hover_value( 'featured_table_subheader_text_color' );
[525] Fix | Delete
$featured_table_subheader_text_color_values = et_pb_responsive_options()->get_property_values( $this->props, 'featured_table_subheader_text_color' );
[526] Fix | Delete
$featured_table_currency_text_color_hover = $this->get_hover_value( 'featured_table_currency_frequency_text_color' );
[527] Fix | Delete
$featured_table_currency_text_color_values = et_pb_responsive_options()->get_property_values( $this->props, 'featured_table_currency_frequency_text_color' );
[528] Fix | Delete
$featured_table_price_color_hover = $this->get_hover_value( 'featured_table_price_color' );
[529] Fix | Delete
$featured_table_price_color_values = et_pb_responsive_options()->get_property_values( $this->props, 'featured_table_price_color' );
[530] Fix | Delete
$bullet_color_hover = $this->get_hover_value( 'bullet_color' );
[531] Fix | Delete
$bullet_color_values = et_pb_responsive_options()->get_property_values( $this->props, 'bullet_color' );
[532] Fix | Delete
$featured_table_bullet_color_hover = $this->get_hover_value( 'featured_table_bullet_color' );
[533] Fix | Delete
$featured_table_bullet_color_values = et_pb_responsive_options()->get_property_values( $this->props, 'featured_table_bullet_color' );
[534] Fix | Delete
$featured_table_excluded_text_color_hover = $this->get_hover_value( 'featured_table_excluded_text_color' );
[535] Fix | Delete
$featured_table_excluded_text_color_values = et_pb_responsive_options()->get_property_values( $this->props, 'featured_table_excluded_text_color' );
[536] Fix | Delete
$featured_table_price_background_color_hover = $this->get_hover_value( 'featured_table_price_background_color' );
[537] Fix | Delete
$featured_table_price_background_color_values = et_pb_responsive_options()->get_property_values( $this->props, 'featured_table_price_background_color' );
[538] Fix | Delete
$price_background_color_hover = $this->get_hover_value( 'price_background_color' );
[539] Fix | Delete
$price_background_color_values = et_pb_responsive_options()->get_property_values( $this->props, 'price_background_color' );
[540] Fix | Delete
[541] Fix | Delete
$show_featured_drop_shadow = $this->props['show_featured_drop_shadow'];
[542] Fix | Delete
$show_featured_drop_shadow_values = et_pb_responsive_options()->get_property_values( $this->props, 'show_featured_drop_shadow' );
[543] Fix | Delete
$show_featured_drop_shadow_tablet = isset( $show_featured_drop_shadow_values['tablet'] ) ? $show_featured_drop_shadow_values['tablet'] : '';
[544] Fix | Delete
$show_featured_drop_shadow_phone = isset( $show_featured_drop_shadow_values['phone'] ) ? $show_featured_drop_shadow_values['phone'] : '';
[545] Fix | Delete
[546] Fix | Delete
$body_text_align_values = et_pb_responsive_options()->get_property_values( $this->props, 'body_text_align' );
[547] Fix | Delete
[548] 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;
[549] Fix | Delete
[550] Fix | Delete
// Show Featured Drop Shadow.
[551] Fix | Delete
$disabled_shadow = 'none';
[552] Fix | Delete
$reset_shadow = '0 0 12px rgba(0,0,0,0.1)';
[553] Fix | Delete
$featured_shadow = '';
[554] Fix | Delete
$featured_shadow_tablet = '';
[555] Fix | Delete
$featured_shadow_phone = '';
[556] Fix | Delete
[557] Fix | Delete
if ( 'on' !== $show_featured_drop_shadow ) {
[558] Fix | Delete
$featured_shadow = 'none';
[559] Fix | Delete
}
[560] Fix | Delete
[561] Fix | Delete
if ( '' !== $show_featured_drop_shadow_tablet ) {
[562] Fix | Delete
if ( 'on' !== $show_featured_drop_shadow_tablet ) {
[563] Fix | Delete
$featured_shadow_tablet = $disabled_shadow;
[564] Fix | Delete
} elseif ( 'on' === $show_featured_drop_shadow_tablet && 'on' !== $featured_shadow ) {
[565] Fix | Delete
$featured_shadow_tablet = $reset_shadow;
[566] Fix | Delete
}
[567] Fix | Delete
[568] Fix | Delete
if ( $featured_shadow_tablet === $featured_shadow ) {
[569] Fix | Delete
$featured_shadow_tablet = '';
[570] Fix | Delete
}
[571] Fix | Delete
}
[572] Fix | Delete
[573] Fix | Delete
if ( '' !== $show_featured_drop_shadow_phone ) {
[574] Fix | Delete
if ( 'on' !== $show_featured_drop_shadow_phone ) {
[575] Fix | Delete
$featured_shadow_phone = $disabled_shadow;
[576] Fix | Delete
} elseif ( 'on' === $show_featured_drop_shadow_phone && 'on' !== $featured_shadow_tablet ) {
[577] Fix | Delete
$featured_shadow_phone = $reset_shadow;
[578] Fix | Delete
}
[579] Fix | Delete
[580] Fix | Delete
if ( $featured_shadow_phone === $featured_shadow_tablet ) {
[581] Fix | Delete
$featured_shadow_phone = '';
[582] Fix | Delete
}
[583] Fix | Delete
}
[584] Fix | Delete
[585] Fix | Delete
$featured_shadow_values = array(
[586] Fix | Delete
'desktop' => esc_html( $featured_shadow ),
[587] Fix | Delete
'tablet' => esc_html( $featured_shadow_tablet ),
[588] Fix | Delete
'phone' => esc_html( $featured_shadow_phone ),
[589] Fix | Delete
);
[590] Fix | Delete
[591] Fix | Delete
et_pb_responsive_options()->generate_responsive_css( $featured_shadow_values, '%%order_class%% .et_pb_featured_table', array( '-moz-box-shadow', '-webkit-box-shadow', 'box-shadow' ), $render_slug, '', 'shadow' );
[592] Fix | Delete
[593] Fix | Delete
// Featured Table Background Color.
[594] Fix | Delete
et_pb_responsive_options()->generate_responsive_css( $featured_table_background_color_values, '%%order_class%% .et_pb_featured_table', 'background-color', $render_slug, '', 'color' );
[595] Fix | Delete
[596] Fix | Delete
if ( et_builder_is_hover_enabled( 'featured_table_background_color', $this->props ) ) {
[597] Fix | Delete
ET_Builder_Element::set_style( $render_slug, array(
[598] Fix | Delete
'selector' => '%%order_class%% .et_pb_featured_table:hover',
[599] Fix | Delete
'declaration' => sprintf(
[600] Fix | Delete
'background-color: %1$s;',
[601] Fix | Delete
esc_html( $featured_table_background_color_hover )
[602] Fix | Delete
),
[603] Fix | Delete
) );
[604] Fix | Delete
}
[605] Fix | Delete
[606] Fix | Delete
// Header Background Color.
[607] Fix | Delete
et_pb_responsive_options()->generate_responsive_css( $header_background_color_values, '%%order_class%% .et_pb_pricing_heading', 'background-color', $render_slug, '', 'color' );
[608] Fix | Delete
[609] Fix | Delete
if ( et_builder_is_hover_enabled( 'header_background_color', $this->props ) ) {
[610] Fix | Delete
ET_Builder_Element::set_style( $render_slug, array(
[611] Fix | Delete
'selector' => '%%order_class%% .et_pb_pricing_table:hover .et_pb_pricing_heading',
[612] Fix | Delete
'declaration' => sprintf(
[613] Fix | Delete
'background-color: %1$s;',
[614] Fix | Delete
esc_html( $header_background_color_hover )
[615] Fix | Delete
),
[616] Fix | Delete
) );
[617] Fix | Delete
}
[618] Fix | Delete
[619] Fix | Delete
// Featured Table Header Background Color.
[620] Fix | Delete
et_pb_responsive_options()->generate_responsive_css( $featured_table_header_background_color_values, '%%order_class%% .et_pb_featured_table .et_pb_pricing_heading', 'background-color', $render_slug, ' !important;', 'color' );
[621] Fix | Delete
[622] Fix | Delete
if ( et_builder_is_hover_enabled( 'featured_table_header_background_color', $this->props ) ) {
[623] Fix | Delete
ET_Builder_Element::set_style( $render_slug, array(
[624] Fix | Delete
'selector' => '%%order_class%% .et_pb_featured_table:hover .et_pb_pricing_heading' ,
[625] Fix | Delete
'declaration' => sprintf(
[626] Fix | Delete
'background-color: %1$s !important;',
[627] Fix | Delete
esc_html( $featured_table_header_background_color_hover )
[628] Fix | Delete
),
[629] Fix | Delete
) );
[630] Fix | Delete
}
[631] Fix | Delete
[632] Fix | Delete
// Featured Table Title Text Color.
[633] Fix | Delete
et_pb_responsive_options()->generate_responsive_css( $featured_table_header_text_color_values, '%%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', 'color', $render_slug, ' !important;', 'color' );
[634] Fix | Delete
[635] Fix | Delete
if ( et_builder_is_hover_enabled( 'featured_table_header_text_color', $this->props ) ) {
[636] Fix | Delete
ET_Builder_Element::set_style( $render_slug, array(
[637] Fix | Delete
'selector' => '%%order_class%% .et_pb_featured_table:hover .et_pb_pricing_heading h2, %%order_class%% .et_pb_featured_table:hover .et_pb_pricing_heading .et_pb_pricing_title',
[638] Fix | Delete
'declaration' => sprintf(
[639] Fix | Delete
'color: %1$s !important;',
[640] Fix | Delete
esc_html( $featured_table_header_text_color_hover )
[641] Fix | Delete
),
[642] Fix | Delete
) );
[643] Fix | Delete
}
[644] Fix | Delete
[645] Fix | Delete
// Featured Table Sutitle Text Color.
[646] Fix | Delete
et_pb_responsive_options()->generate_responsive_css( $featured_table_subheader_text_color_values, '%%order_class%% .et_pb_featured_table .et_pb_best_value', 'color', $render_slug, ' !important;', 'color' );
[647] Fix | Delete
[648] Fix | Delete
if ( et_builder_is_hover_enabled( 'featured_table_subheader_text_color', $this->props ) ) {
[649] Fix | Delete
ET_Builder_Element::set_style( $render_slug, array(
[650] Fix | Delete
'selector' => '%%order_class%% .et_pb_featured_table:hover .et_pb_best_value',
[651] Fix | Delete
'declaration' => sprintf(
[652] Fix | Delete
'color: %1$s !important;',
[653] Fix | Delete
esc_html( $featured_table_subheader_text_color_hover )
[654] Fix | Delete
),
[655] Fix | Delete
) );
[656] Fix | Delete
}
[657] Fix | Delete
[658] Fix | Delete
// Featured Table Price Text Color.
[659] Fix | Delete
et_pb_responsive_options()->generate_responsive_css( $featured_table_price_color_values, '%%order_class%% .et_pb_featured_table .et_pb_sum', 'color', $render_slug, ' !important;', 'color' );
[660] Fix | Delete
[661] Fix | Delete
if ( et_builder_is_hover_enabled( 'featured_table_price_color', $this->props ) ) {
[662] Fix | Delete
ET_Builder_Element::set_style( $render_slug, array(
[663] Fix | Delete
'selector' => '%%order_class%% .et_pb_featured_table:hover .et_pb_sum',
[664] Fix | Delete
'declaration' => sprintf(
[665] Fix | Delete
'color: %1$s !important;',
[666] Fix | Delete
esc_html( $featured_table_price_color_hover )
[667] Fix | Delete
),
[668] Fix | Delete
) );
[669] Fix | Delete
}
[670] Fix | Delete
[671] Fix | Delete
// Featured Table Body Text Color.
[672] Fix | Delete
$featured_table_text_color_selector = et_builder_has_limitation( 'use_additional_limiting_styles' ) ? '%%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' : '%%order_class%% .et_pb_featured_table .et_pb_pricing_content li';
[673] Fix | Delete
[674] Fix | Delete
et_pb_responsive_options()->generate_responsive_css( $featured_table_text_color_values, $featured_table_text_color_selector, 'color', $render_slug, ' !important;', 'color' );
[675] Fix | Delete
[676] Fix | Delete
if ( et_builder_is_hover_enabled( 'featured_table_text_color', $this->props ) ) {
[677] Fix | Delete
$featured_table_text_color_selector_hover = et_is_builder_plugin_active() ? '%%order_class%% .et_pb_featured_table:hover .et_pb_pricing_content li, %%order_class%% .et_pb_featured_table:hover .et_pb_pricing_content li span, %%order_class%% .et_pb_featured_table:hover .et_pb_pricing_content li a' : '%%order_class%% .et_pb_featured_table:hover .et_pb_pricing_content li';
[678] Fix | Delete
ET_Builder_Element::set_style( $render_slug, array(
[679] Fix | Delete
'selector' => $featured_table_text_color_selector_hover,
[680] Fix | Delete
'declaration' => sprintf(
[681] Fix | Delete
'color: %1$s !important;',
[682] Fix | Delete
esc_html( $featured_table_text_color_hover )
[683] Fix | Delete
),
[684] Fix | Delete
) );
[685] Fix | Delete
}
[686] Fix | Delete
[687] Fix | Delete
// Bullet Color.
[688] Fix | Delete
et_pb_responsive_options()->generate_responsive_css( $bullet_color_values, '%%order_class%% .et_pb_pricing li span:before', 'border-color', $render_slug, '', 'color' );
[689] Fix | Delete
[690] Fix | Delete
if ( et_builder_is_hover_enabled( 'bullet_color', $this->props ) ) {
[691] Fix | Delete
ET_Builder_Element::set_style( $render_slug, array(
[692] Fix | Delete
'selector' => '%%order_class%% .et_pb_pricing:hover li span:before',
[693] Fix | Delete
'declaration' => sprintf(
[694] Fix | Delete
'border-color: %1$s;',
[695] Fix | Delete
esc_html( $bullet_color_hover )
[696] Fix | Delete
),
[697] Fix | Delete
) );
[698] Fix | Delete
}
[699] Fix | Delete
[700] Fix | Delete
// Featured Table Bullet Color.
[701] Fix | Delete
et_pb_responsive_options()->generate_responsive_css( $featured_table_bullet_color_values, '%%order_class%% .et_pb_featured_table .et_pb_pricing li span:before', 'border-color', $render_slug, '', 'color' );
[702] Fix | Delete
[703] Fix | Delete
if ( et_builder_is_hover_enabled( 'featured_table_bullet_color', $this->props ) ) {
[704] Fix | Delete
ET_Builder_Element::set_style( $render_slug, array(
[705] Fix | Delete
'selector' => '%%order_class%% .et_pb_featured_table:hover .et_pb_pricing li span:before',
[706] Fix | Delete
'declaration' => sprintf(
[707] Fix | Delete
'border-color: %1$s;',
[708] Fix | Delete
esc_html( $featured_table_bullet_color_hover )
[709] Fix | Delete
),
[710] Fix | Delete
) );
[711] Fix | Delete
}
[712] Fix | Delete
[713] Fix | Delete
// Featured Table Currency Frequency Text Color.
[714] Fix | Delete
et_pb_responsive_options()->generate_responsive_css( $featured_table_currency_text_color_values, '%%order_class%% .et_pb_featured_table .et_pb_dollar_sign, %%order_class%% .et_pb_featured_table .et_pb_frequency', 'color', $render_slug, ' !important;', 'color' );
[715] Fix | Delete
[716] Fix | Delete
if ( et_builder_is_hover_enabled( 'featured_table_currency_frequency_text_color', $this->props ) ) {
[717] Fix | Delete
ET_Builder_Element::set_style( $render_slug, array(
[718] Fix | Delete
'selector' => '%%order_class%% .et_pb_featured_table:hover .et_pb_dollar_sign, %%order_class%% .et_pb_featured_table:hover .et_pb_frequency',
[719] Fix | Delete
'declaration' => sprintf(
[720] Fix | Delete
'color: %1$s !important;',
[721] Fix | Delete
esc_html( $featured_table_currency_text_color_hover )
[722] Fix | Delete
),
[723] Fix | Delete
) );
[724] Fix | Delete
}
[725] Fix | Delete
[726] Fix | Delete
// Featured Table Excluded Item Text Color.
[727] Fix | Delete
et_pb_responsive_options()->generate_responsive_css( $featured_table_excluded_text_color_values, '%%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', 'color', $render_slug, ' !important;', 'color' );
[728] Fix | Delete
[729] Fix | Delete
if ( et_builder_is_hover_enabled( 'featured_table_excluded_text_color', $this->props ) ) {
[730] Fix | Delete
ET_Builder_Element::set_style( $render_slug, array(
[731] Fix | Delete
'selector' => '%%order_class%% .et_pb_featured_table:hover .et_pb_pricing li.et_pb_not_available, %%order_class%% .et_pb_featured_table:hover .et_pb_pricing li.et_pb_not_available span, %%order_class%% .et_pb_featured_table:hover .et_pb_pricing li.et_pb_not_available a',
[732] Fix | Delete
'declaration' => sprintf(
[733] Fix | Delete
'color: %1$s !important;',
[734] Fix | Delete
esc_html( $featured_table_excluded_text_color_hover )
[735] Fix | Delete
),
[736] Fix | Delete
) );
[737] Fix | Delete
}
[738] Fix | Delete
[739] Fix | Delete
// Featured Table Price Background Color.
[740] Fix | Delete
et_pb_responsive_options()->generate_responsive_css( $featured_table_price_background_color_values, '%%order_class%% .et_pb_featured_table .et_pb_pricing_content_top', 'background-color', $render_slug, '', 'color' );
[741] Fix | Delete
[742] Fix | Delete
if ( et_builder_is_hover_enabled( 'featured_table_price_background_color', $this->props ) ) {
[743] Fix | Delete
ET_Builder_Element::set_style( $render_slug, array(
[744] Fix | Delete
'selector' => '%%order_class%% .et_pb_featured_table:hover .et_pb_pricing_content_top',
[745] Fix | Delete
'declaration' => sprintf(
[746] Fix | Delete
'background-color: %1$s;',
[747] Fix | Delete
esc_html( $featured_table_price_background_color_hover )
[748] Fix | Delete
),
[749] Fix | Delete
) );
[750] Fix | Delete
}
[751] Fix | Delete
[752] Fix | Delete
// Price Background Color.
[753] Fix | Delete
et_pb_responsive_options()->generate_responsive_css( $price_background_color_values, '%%order_class%% .et_pb_pricing_content_top', 'background-color', $render_slug, '', 'color' );
[754] Fix | Delete
[755] Fix | Delete
if ( et_builder_is_hover_enabled( 'price_background_color', $this->props ) ) {
[756] Fix | Delete
ET_Builder_Element::set_style( $render_slug, array(
[757] Fix | Delete
'selector' => '%%order_class%%:hover .et_pb_pricing_content_top',
[758] Fix | Delete
'declaration' => sprintf(
[759] Fix | Delete
'background-color: %1$s;',
[760] Fix | Delete
esc_html( $price_background_color_hover )
[761] Fix | Delete
),
[762] Fix | Delete
) );
[763] Fix | Delete
}
[764] Fix | Delete
[765] Fix | Delete
// Custom Padding Left On Center.
[766] Fix | Delete
if ( ! empty( $body_text_align_values ) ) {
[767] Fix | Delete
foreach( $body_text_align_values as $body_text_align_device => $body_text_align_value ) {
[768] Fix | Delete
if ( 'center' !== $body_text_align_value ) {
[769] Fix | Delete
continue;
[770] Fix | Delete
}
[771] Fix | Delete
[772] Fix | Delete
$padding_left_style = array(
[773] Fix | Delete
'selector' => '%%order_class%% .et_pb_pricing li',
[774] Fix | Delete
'declaration' => esc_html( 'padding-left: 0;' ),
[775] Fix | Delete
);
[776] Fix | Delete
[777] Fix | Delete
if ( 'desktop' !== $body_text_align_device ) {
[778] Fix | Delete
$current_media_query = 'tablet' === $body_text_align_device ? 'max_width_980' : 'max_width_767';
[779] Fix | Delete
$padding_left_style['media_query'] = ET_Builder_Element::get_media_query( $current_media_query );
[780] Fix | Delete
}
[781] Fix | Delete
[782] Fix | Delete
ET_Builder_Element::set_style( $render_slug, $padding_left_style );
[783] Fix | Delete
}
[784] Fix | Delete
}
[785] Fix | Delete
[786] Fix | Delete
$video_background = $this->video_background();
[787] Fix | Delete
$parallax_image_background = $this->get_parallax_image_background();
[788] Fix | Delete
$content = $this->content;
[789] Fix | Delete
[790] Fix | Delete
// Module classnames
[791] Fix | Delete
$this->add_classname( array(
[792] Fix | Delete
'et_pb_pricing',
[793] Fix | Delete
'clearfix',
[794] Fix | Delete
"et_pb_pricing_{$et_pb_pricing_tables_num}",
[795] Fix | Delete
$featured_table,
[796] Fix | Delete
) );
[797] Fix | Delete
[798] Fix | Delete
if ( 'off' === $multi_view->get_value( 'show_bullet' ) ) {
[799] Fix | Delete
$this->add_classname( 'et_pb_pricing_no_bullet' );
[800] Fix | Delete
}
[801] Fix | Delete
[802] Fix | Delete
// Remove automatically added classnames
[803] Fix | Delete
$this->remove_classname( array(
[804] Fix | Delete
$render_slug
[805] Fix | Delete
) );
[806] Fix | Delete
[807] Fix | Delete
$multi_view_data_attr = $multi_view->render_attrs( array(
[808] Fix | Delete
'classes' => array(
[809] Fix | Delete
'et_pb_pricing_no_bullet' => array(
[810] Fix | Delete
'show_bullet' => 'off',
[811] Fix | Delete
),
[812] Fix | Delete
),
[813] Fix | Delete
) );
[814] Fix | Delete
[815] Fix | Delete
$output = sprintf(
[816] Fix | Delete
'<div%3$s class="%2$s"%6$s>
[817] Fix | Delete
%5$s
[818] Fix | Delete
%4$s
[819] Fix | Delete
<div class="et_pb_pricing_table_wrap">
[820] Fix | Delete
%1$s
[821] Fix | Delete
</div>
[822] Fix | Delete
</div>',
[823] Fix | Delete
$content,
[824] Fix | Delete
$this->module_classname( $render_slug ),
[825] Fix | Delete
$this->module_id(),
[826] Fix | Delete
$video_background,
[827] Fix | Delete
$parallax_image_background,
[828] Fix | Delete
$multi_view_data_attr
[829] Fix | Delete
);
[830] Fix | Delete
[831] Fix | Delete
$output .= $this->keep_box_shadow_compatibility( $attrs, $content, $render_slug );
[832] Fix | Delete
[833] Fix | Delete
return $output;
[834] Fix | Delete
}
[835] Fix | Delete
[836] Fix | Delete
function additional_render( $atts, $content = null, $function_name ) {
[837] Fix | Delete
$attributes = shortcode_atts( array(
[838] Fix | Delete
'available' => 'on',
[839] Fix | Delete
), $atts );
[840] Fix | Delete
[841] Fix | Delete
$output = sprintf( '<li%2$s><span>%1$s</span></li>',
[842] Fix | Delete
$content,
[843] Fix | Delete
( 'on' !== $attributes['available'] ? ' class="et_pb_not_available"' : '' )
[844] Fix | Delete
);
[845] Fix | Delete
return $output;
[846] Fix | Delete
}
[847] Fix | Delete
[848] Fix | Delete
private function get_featured_table( $content ) {
[849] Fix | Delete
//Extract `et_pb_pricing_table` shortcode attributes
[850] Fix | Delete
preg_match_all( '/\[et_pb_pricing_table(\s+[^\]]*)\]/', $content, $matches );
[851] Fix | Delete
[852] Fix | Delete
if ( ! isset( $matches[1] ) || 0 === count( $matches[1] ) ) {
[853] Fix | Delete
return '';
[854] Fix | Delete
}
[855] Fix | Delete
[856] Fix | Delete
$list = array();
[857] Fix | Delete
[858] Fix | Delete
foreach ( $matches[1] as $match ) {
[859] Fix | Delete
//Check if the shortcode has the `feature` attribute on
[860] Fix | Delete
//TODO: Find a better way to do that
[861] Fix | Delete
$list[] = (bool) preg_match( '/[\s]featured=[\'|"]on[\'|"]/', $match );
[862] Fix | Delete
}
[863] Fix | Delete
[864] Fix | Delete
//We need to know only the first 4 tables status,
[865] Fix | Delete
//because in a row are maximum 4 tables
[866] Fix | Delete
$count = count( $list ) > 4 ? 4 : count( $list );
[867] Fix | Delete
[868] Fix | Delete
for ( $i = 0; $i < $count; $i ++ ) {
[869] Fix | Delete
if ( true === $list[ $i ] ) {
[870] Fix | Delete
switch ( $i ) {
[871] Fix | Delete
case 0 :
[872] Fix | Delete
return '';
[873] Fix | Delete
case 1 :
[874] Fix | Delete
return 'et_pb_second_featured';
[875] Fix | Delete
case 2 :
[876] Fix | Delete
return 'et_pb_third_featured';
[877] Fix | Delete
case 3 :
[878] Fix | Delete
return 'et_pb_fourth_featured';
[879] Fix | Delete
}
[880] Fix | Delete
}
[881] Fix | Delete
}
[882] Fix | Delete
[883] Fix | Delete
return 'et_pb_no_featured_in_first_row';
[884] Fix | Delete
}
[885] Fix | Delete
[886] Fix | Delete
private function keep_box_shadow_compatibility( $atts, $content, $function_name ) {
[887] Fix | Delete
/**
[888] Fix | Delete
* @var ET_Builder_Module_Field_BoxShadow $box_shadow
[889] Fix | Delete
*/
[890] Fix | Delete
$box_shadow = ET_Builder_Module_Fields_Factory::get( 'BoxShadow' );
[891] Fix | Delete
$utils = ET_Core_Data_Utils::instance();
[892] Fix | Delete
[893] Fix | Delete
if (
[894] Fix | Delete
! is_admin()
[895] Fix | Delete
&&
[896] Fix | Delete
version_compare( $utils->array_get( $atts, '_builder_version', '3.0.93' ), '3.0.97', 'lt' )
[897] Fix | Delete
&&
[898] Fix | Delete
$box_shadow->is_inset( $box_shadow->get_value( $atts ) )
[899] Fix | Delete
) {
[900] Fix | Delete
$class = '.' . self::get_module_order_class($function_name);
[901] Fix | Delete
$overlay_shadow = $box_shadow->get_style( $class, $atts);
[902] Fix | Delete
[903] Fix | Delete
return sprintf(
[904] Fix | Delete
'<style type="text/css">%1$s %2$s %3$s</style>',
[905] Fix | Delete
'.et_pb_pricing > .box-shadow-overlay { z-index: 11; }',
[906] Fix | Delete
sprintf( '%1$s { box-shadow: none; }', esc_attr( $class ) ),
[907] Fix | Delete
sprintf( '%1$s { %2$s }', esc_attr( $overlay_shadow['selector'] ), esc_attr( $overlay_shadow['declaration'] ) )
[908] Fix | Delete
);
[909] Fix | Delete
}
[910] Fix | Delete
[911] Fix | Delete
return '';
[912] Fix | Delete
}
[913] Fix | Delete
}
[914] Fix | Delete
[915] Fix | Delete
new ET_Builder_Module_Pricing_Tables;
[916] Fix | Delete
[917] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function