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
File: main-structure-elements.php
$background_image = et_pb_responsive_options()->get_inheritance_background_value( $this->props, "{$attr_prefix}image", $mode, $base_name, $this->fields_unprocessed );
[500] Fix | Delete
$parallax = $is_hover ? et_pb_hover_options()->get_raw_value( "parallax", $this->props ) : et_pb_responsive_options()->get_any_value( $this->props, "parallax{$suffix}", '', true );
[501] Fix | Delete
$parallax_method = $is_hover ? et_pb_hover_options()->get_raw_value( "parallax_method", $this->props ) : et_pb_responsive_options()->get_any_value( $this->props, "parallax_method{$suffix}", '', true );
[502] Fix | Delete
[503] Fix | Delete
// B.2. Set default value for parallax and parallax method on hover when they are empty.
[504] Fix | Delete
if ( $is_hover ) {
[505] Fix | Delete
$parallax = empty( $parallax ) ? et_pb_responsive_options()->get_any_value( $this->props, "parallax", '', true ) : $parallax;
[506] Fix | Delete
$parallax_method = empty( $parallax_method ) ? et_pb_responsive_options()->get_any_value( $this->props, "parallax_method", '', true ) : $parallax_method;
[507] Fix | Delete
}
[508] Fix | Delete
[509] Fix | Delete
// B.3. Override background image with featured image if needed.
[510] Fix | Delete
if ( 'on' === $featured_image && 'background' === $featured_placement && '' !== $featured_image_src ) {
[511] Fix | Delete
$background_image = $featured_image_src;
[512] Fix | Delete
}
[513] Fix | Delete
[514] Fix | Delete
// C.1. Parallax BG Class to inform if other modes exist.
[515] Fix | Delete
$parallax_classname = array();
[516] Fix | Delete
if ( ( '_tablet' === $suffix || '' === $suffix ) && in_array( '_phone', $parallax_processed ) ) {
[517] Fix | Delete
$parallax_classname[] = 'et_parallax_bg_phone_exist';
[518] Fix | Delete
}
[519] Fix | Delete
[520] Fix | Delete
if ( '' === $suffix && in_array( '_tablet', $parallax_processed ) ) {
[521] Fix | Delete
$parallax_classname[] = 'et_parallax_bg_tablet_exist';
[522] Fix | Delete
}
[523] Fix | Delete
[524] Fix | Delete
if ( in_array( $hover_suffix, $parallax_processed ) ) {
[525] Fix | Delete
$parallax_classname[] = 'et_parallax_bg_hover_exist';
[526] Fix | Delete
}
[527] Fix | Delete
[528] Fix | Delete
// C.2. Set up parallax class and wrapper.
[529] Fix | Delete
if ( '' !== $background_image && 'on' === $parallax ) {
[530] Fix | Delete
$parallax_classname[] = 'et_parallax_bg';
[531] Fix | Delete
[532] Fix | Delete
if ( 'off' === $parallax_method ) {
[533] Fix | Delete
$parallax_classname[] = 'et_pb_parallax_css';
[534] Fix | Delete
[535] Fix | Delete
$inner_shadow = $this->props['inner_shadow'];
[536] Fix | Delete
if ( 'off' !== $inner_shadow ) {
[537] Fix | Delete
$parallax_classname[] = 'et_pb_inner_shadow';
[538] Fix | Delete
}
[539] Fix | Delete
}
[540] Fix | Delete
[541] Fix | Delete
// Parallax BG Class with suffix.
[542] Fix | Delete
if ( '' !== $suffix ) {
[543] Fix | Delete
$parallax_classname[] = "et_parallax_bg{$suffix}";
[544] Fix | Delete
}
[545] Fix | Delete
[546] Fix | Delete
$parallax_background .= sprintf(
[547] Fix | Delete
'<div class="et_parallax_bg_wrap"><div
[548] Fix | Delete
class="%1$s"
[549] Fix | Delete
style="background-image: url(%2$s);"
[550] Fix | Delete
></div></div>',
[551] Fix | Delete
esc_attr( implode( ' ', $parallax_classname ) ),
[552] Fix | Delete
esc_url( $background_image )
[553] Fix | Delete
);
[554] Fix | Delete
[555] Fix | Delete
// set `.et_parallax_bg_wrap` border-radius
[556] Fix | Delete
et_set_parallax_bg_wrap_border_radius( $this->props, $this->slug, '%%order_class%%' );
[557] Fix | Delete
}
[558] Fix | Delete
[559] Fix | Delete
// C.3. Hover parallax class.
[560] Fix | Delete
if ( '' !== $background_image && $is_hover ) {
[561] Fix | Delete
$this->add_classname( 'et_pb_section_parallax_hover' );
[562] Fix | Delete
}
[563] Fix | Delete
[564] Fix | Delete
array_push( $parallax_processed, $suffix );
[565] Fix | Delete
}
[566] Fix | Delete
[567] Fix | Delete
// Added classname for module wrapper
[568] Fix | Delete
if ( '' !== $parallax_background ) {
[569] Fix | Delete
$this->add_classname( 'et_pb_section_parallax' );
[570] Fix | Delete
}
[571] Fix | Delete
[572] Fix | Delete
return $parallax_background;
[573] Fix | Delete
}
[574] Fix | Delete
[575] Fix | Delete
function render( $atts, $content = null, $function_name ) {
[576] Fix | Delete
$multi_view = et_pb_multi_view_options( $this );
[577] Fix | Delete
$background_video_mp4 = $this->props['background_video_mp4'];
[578] Fix | Delete
$background_video_webm = $this->props['background_video_webm'];
[579] Fix | Delete
$inner_shadow = $this->props['inner_shadow'];
[580] Fix | Delete
$parallax = $this->props['parallax'];
[581] Fix | Delete
$parallax_method = $this->props['parallax_method'];
[582] Fix | Delete
$fullwidth = $this->props['fullwidth'];
[583] Fix | Delete
$specialty = $this->props['specialty'];
[584] Fix | Delete
$background_color_1 = $this->props['background_color_1'];
[585] Fix | Delete
$background_color_2 = $this->props['background_color_2'];
[586] Fix | Delete
$background_color_3 = $this->props['background_color_3'];
[587] Fix | Delete
$bg_img_1 = $this->props['bg_img_1'];
[588] Fix | Delete
$bg_img_2 = $this->props['bg_img_2'];
[589] Fix | Delete
$bg_img_3 = $this->props['bg_img_3'];
[590] Fix | Delete
$background_size_1 = $this->props['background_size_1'];
[591] Fix | Delete
$background_size_2 = $this->props['background_size_2'];
[592] Fix | Delete
$background_size_3 = $this->props['background_size_3'];
[593] Fix | Delete
$background_position_1 = $this->props['background_position_1'];
[594] Fix | Delete
$background_position_2 = $this->props['background_position_2'];
[595] Fix | Delete
$background_position_3 = $this->props['background_position_3'];
[596] Fix | Delete
$background_repeat_1 = $this->props['background_repeat_1'];
[597] Fix | Delete
$background_repeat_2 = $this->props['background_repeat_2'];
[598] Fix | Delete
$background_repeat_3 = $this->props['background_repeat_3'];
[599] Fix | Delete
$background_blend_1 = $this->props['background_blend_1'];
[600] Fix | Delete
$background_blend_2 = $this->props['background_blend_2'];
[601] Fix | Delete
$background_blend_3 = $this->props['background_blend_3'];
[602] Fix | Delete
$parallax_1 = $this->props['parallax_1'];
[603] Fix | Delete
$parallax_2 = $this->props['parallax_2'];
[604] Fix | Delete
$parallax_3 = $this->props['parallax_3'];
[605] Fix | Delete
$parallax_method_1 = $this->props['parallax_method_1'];
[606] Fix | Delete
$parallax_method_2 = $this->props['parallax_method_2'];
[607] Fix | Delete
$parallax_method_3 = $this->props['parallax_method_3'];
[608] Fix | Delete
$padding_top_1 = $this->props['padding_top_1'];
[609] Fix | Delete
$padding_right_1 = $this->props['padding_right_1'];
[610] Fix | Delete
$padding_bottom_1 = $this->props['padding_bottom_1'];
[611] Fix | Delete
$padding_left_1 = $this->props['padding_left_1'];
[612] Fix | Delete
$padding_top_2 = $this->props['padding_top_2'];
[613] Fix | Delete
$padding_right_2 = $this->props['padding_right_2'];
[614] Fix | Delete
$padding_bottom_2 = $this->props['padding_bottom_2'];
[615] Fix | Delete
$padding_left_2 = $this->props['padding_left_2'];
[616] Fix | Delete
$padding_top_3 = $this->props['padding_top_3'];
[617] Fix | Delete
$padding_right_3 = $this->props['padding_right_3'];
[618] Fix | Delete
$padding_bottom_3 = $this->props['padding_bottom_3'];
[619] Fix | Delete
$padding_left_3 = $this->props['padding_left_3'];
[620] Fix | Delete
$padding_1_tablet = $this->props['padding_1_tablet'];
[621] Fix | Delete
$padding_2_tablet = $this->props['padding_2_tablet'];
[622] Fix | Delete
$padding_3_tablet = $this->props['padding_3_tablet'];
[623] Fix | Delete
$padding_1_phone = $this->props['padding_1_phone'];
[624] Fix | Delete
$padding_2_phone = $this->props['padding_2_phone'];
[625] Fix | Delete
$padding_3_phone = $this->props['padding_3_phone'];
[626] Fix | Delete
$padding_1_last_edited = $this->props['padding_1_last_edited'];
[627] Fix | Delete
$padding_2_last_edited = $this->props['padding_2_last_edited'];
[628] Fix | Delete
$padding_3_last_edited = $this->props['padding_3_last_edited'];
[629] Fix | Delete
$gutter_width = $this->props['gutter_width'];
[630] Fix | Delete
$gutter_width_hover = $this->get_hover_value( 'gutter_width' );
[631] Fix | Delete
$make_equal = $this->props['make_equal'];
[632] Fix | Delete
$global_module = $this->props['global_module'];
[633] Fix | Delete
$use_custom_gutter = $this->props['use_custom_gutter'];
[634] Fix | Delete
$module_id_1 = $this->props['module_id_1'];
[635] Fix | Delete
$module_id_2 = $this->props['module_id_2'];
[636] Fix | Delete
$module_id_3 = $this->props['module_id_3'];
[637] Fix | Delete
$module_class_1 = $this->props['module_class_1'];
[638] Fix | Delete
$module_class_2 = $this->props['module_class_2'];
[639] Fix | Delete
$module_class_3 = $this->props['module_class_3'];
[640] Fix | Delete
$custom_css_before_1 = $this->props['custom_css_before_1'];
[641] Fix | Delete
$custom_css_before_2 = $this->props['custom_css_before_2'];
[642] Fix | Delete
$custom_css_before_3 = $this->props['custom_css_before_3'];
[643] Fix | Delete
$custom_css_main_1 = $this->props['custom_css_main_1'];
[644] Fix | Delete
$custom_css_main_2 = $this->props['custom_css_main_2'];
[645] Fix | Delete
$custom_css_main_3 = $this->props['custom_css_main_3'];
[646] Fix | Delete
$custom_css_after_1 = $this->props['custom_css_after_1'];
[647] Fix | Delete
$custom_css_after_2 = $this->props['custom_css_after_2'];
[648] Fix | Delete
$custom_css_after_3 = $this->props['custom_css_after_3'];
[649] Fix | Delete
$custom_css_before_1_hover = $this->get_hover_value( 'custom_css_before_1' );
[650] Fix | Delete
$custom_css_before_2_hover = $this->get_hover_value( 'custom_css_before_2' );
[651] Fix | Delete
$custom_css_before_3_hover = $this->get_hover_value( 'custom_css_before_3' );
[652] Fix | Delete
$custom_css_main_1_hover = $this->get_hover_value( 'custom_css_main_1' );
[653] Fix | Delete
$custom_css_main_2_hover = $this->get_hover_value( 'custom_css_main_2' );
[654] Fix | Delete
$custom_css_main_3_hover = $this->get_hover_value( 'custom_css_main_3' );
[655] Fix | Delete
$custom_css_after_1_hover = $this->get_hover_value( 'custom_css_after_1' );
[656] Fix | Delete
$custom_css_after_2_hover = $this->get_hover_value( 'custom_css_after_2' );
[657] Fix | Delete
$custom_css_after_3_hover = $this->get_hover_value( 'custom_css_after_3' );
[658] Fix | Delete
$use_background_color_gradient_1 = $this->props['use_background_color_gradient_1'];
[659] Fix | Delete
$use_background_color_gradient_2 = $this->props['use_background_color_gradient_2'];
[660] Fix | Delete
$use_background_color_gradient_3 = $this->props['use_background_color_gradient_3'];
[661] Fix | Delete
$background_color_gradient_type_1 = $this->props['background_color_gradient_type_1'];
[662] Fix | Delete
$background_color_gradient_type_2 = $this->props['background_color_gradient_type_2'];
[663] Fix | Delete
$background_color_gradient_type_3 = $this->props['background_color_gradient_type_3'];
[664] Fix | Delete
$background_color_gradient_direction_1 = $this->props['background_color_gradient_direction_1'];
[665] Fix | Delete
$background_color_gradient_direction_2 = $this->props['background_color_gradient_direction_2'];
[666] Fix | Delete
$background_color_gradient_direction_3 = $this->props['background_color_gradient_direction_3'];
[667] Fix | Delete
$background_color_gradient_direction_radial_1 = $this->props['background_color_gradient_direction_radial_1'];
[668] Fix | Delete
$background_color_gradient_direction_radial_2 = $this->props['background_color_gradient_direction_radial_2'];
[669] Fix | Delete
$background_color_gradient_direction_radial_3 = $this->props['background_color_gradient_direction_radial_3'];
[670] Fix | Delete
$background_color_gradient_start_1 = $this->props['background_color_gradient_start_1'];
[671] Fix | Delete
$background_color_gradient_start_2 = $this->props['background_color_gradient_start_2'];
[672] Fix | Delete
$background_color_gradient_start_3 = $this->props['background_color_gradient_start_3'];
[673] Fix | Delete
$background_color_gradient_end_1 = $this->props['background_color_gradient_end_1'];
[674] Fix | Delete
$background_color_gradient_end_2 = $this->props['background_color_gradient_end_2'];
[675] Fix | Delete
$background_color_gradient_end_3 = $this->props['background_color_gradient_end_3'];
[676] Fix | Delete
$background_color_gradient_start_position_1 = $this->props['background_color_gradient_start_position_1'];
[677] Fix | Delete
$background_color_gradient_start_position_2 = $this->props['background_color_gradient_start_position_2'];
[678] Fix | Delete
$background_color_gradient_start_position_3 = $this->props['background_color_gradient_start_position_3'];
[679] Fix | Delete
$background_color_gradient_end_position_1 = $this->props['background_color_gradient_end_position_1'];
[680] Fix | Delete
$background_color_gradient_end_position_2 = $this->props['background_color_gradient_end_position_2'];
[681] Fix | Delete
$background_color_gradient_end_position_3 = $this->props['background_color_gradient_end_position_3'];
[682] Fix | Delete
$background_color_gradient_overlays_image_1 = $this->props['background_color_gradient_overlays_image_1'];
[683] Fix | Delete
$background_color_gradient_overlays_image_2 = $this->props['background_color_gradient_overlays_image_2'];
[684] Fix | Delete
$background_color_gradient_overlays_image_3 = $this->props['background_color_gradient_overlays_image_3'];
[685] Fix | Delete
$background_video_mp4_1 = $this->props['background_video_mp4_1'];
[686] Fix | Delete
$background_video_mp4_2 = $this->props['background_video_mp4_2'];
[687] Fix | Delete
$background_video_mp4_3 = $this->props['background_video_mp4_3'];
[688] Fix | Delete
$background_video_webm_1 = $this->props['background_video_webm_1'];
[689] Fix | Delete
$background_video_webm_2 = $this->props['background_video_webm_2'];
[690] Fix | Delete
$background_video_webm_3 = $this->props['background_video_webm_3'];
[691] Fix | Delete
$background_video_width_1 = $this->props['background_video_width_1'];
[692] Fix | Delete
$background_video_width_2 = $this->props['background_video_width_2'];
[693] Fix | Delete
$background_video_width_3 = $this->props['background_video_width_3'];
[694] Fix | Delete
$background_video_height_1 = $this->props['background_video_height_1'];
[695] Fix | Delete
$background_video_height_2 = $this->props['background_video_height_2'];
[696] Fix | Delete
$background_video_height_3 = $this->props['background_video_height_3'];
[697] Fix | Delete
$allow_player_pause_1 = $this->props['allow_player_pause_1'];
[698] Fix | Delete
$allow_player_pause_2 = $this->props['allow_player_pause_2'];
[699] Fix | Delete
$allow_player_pause_3 = $this->props['allow_player_pause_3'];
[700] Fix | Delete
$background_video_pause_outside_viewport_1 = $this->props['background_video_pause_outside_viewport_1'];
[701] Fix | Delete
$background_video_pause_outside_viewport_2 = $this->props['background_video_pause_outside_viewport_2'];
[702] Fix | Delete
$background_video_pause_outside_viewport_3 = $this->props['background_video_pause_outside_viewport_3'];
[703] Fix | Delete
$prev_background_color = $this->props['prev_background_color'];
[704] Fix | Delete
$next_background_color = $this->props['next_background_color'];
[705] Fix | Delete
[706] Fix | Delete
$is_background_responsive = et_pb_responsive_options()->is_responsive_enabled( $this->props, 'background' );
[707] Fix | Delete
[708] Fix | Delete
global $et_pb_rendering_specialty_section;
[709] Fix | Delete
[710] Fix | Delete
// Check Background Image.
[711] Fix | Delete
$background_image = $this->props['background_image'];
[712] Fix | Delete
if ( '' === $background_image && $is_background_responsive ) {
[713] Fix | Delete
$background_image_tablet = et_pb_responsive_options()->get_inheritance_background_value( $this->props, 'background_image', 'tablet' );
[714] Fix | Delete
$background_image_phone = et_pb_responsive_options()->get_inheritance_background_value( $this->props, 'background_image', 'phone' );
[715] Fix | Delete
$background_image = '' !== $background_image_tablet ? $background_image_tablet : $background_image_phone;
[716] Fix | Delete
}
[717] Fix | Delete
[718] Fix | Delete
// Background Color.
[719] Fix | Delete
$background_color = et_pb_responsive_options()->get_inheritance_background_value( $this->props, 'background_color', 'desktop' );
[720] Fix | Delete
$background_color_tablet = '';
[721] Fix | Delete
$background_color_phone = '';
[722] Fix | Delete
[723] Fix | Delete
$processed_background_color = $this->is_initial_background_color() ? 'inherit' : $background_color;
[724] Fix | Delete
$processed_background_color_tablet = '';
[725] Fix | Delete
$processed_background_color_phone = '';
[726] Fix | Delete
[727] Fix | Delete
if ( $is_background_responsive ) {
[728] Fix | Delete
$background_color_tablet = et_pb_responsive_options()->get_inheritance_background_value( $this->props, 'background_color', 'tablet' );
[729] Fix | Delete
$background_color_phone = et_pb_responsive_options()->get_inheritance_background_value( $this->props, 'background_color', 'phone' );
[730] Fix | Delete
[731] Fix | Delete
$processed_background_color_tablet = $this->is_initial_background_color( 'tablet' ) ? 'inherit' : $background_color_tablet;
[732] Fix | Delete
$processed_background_color_phone = $this->is_initial_background_color( 'phone' ) ? 'inherit' : $background_color_phone;
[733] Fix | Delete
}
[734] Fix | Delete
[735] Fix | Delete
$hover = et_pb_hover_options();
[736] Fix | Delete
[737] Fix | Delete
if ( '' !== $global_module ) {
[738] Fix | Delete
$global_content = et_pb_load_global_module( $global_module, '', $prev_background_color, $next_background_color );
[739] Fix | Delete
[740] Fix | Delete
if ( '' !== $global_content ) {
[741] Fix | Delete
return do_shortcode( et_pb_fix_shortcodes( wpautop( $global_content ) ) );
[742] Fix | Delete
}
[743] Fix | Delete
}
[744] Fix | Delete
[745] Fix | Delete
$gutter_class = '';
[746] Fix | Delete
$gutter_hover_data = '';
[747] Fix | Delete
[748] Fix | Delete
if ( 'on' === $specialty ) {
[749] Fix | Delete
global $et_pb_all_column_settings, $et_pb_rendering_column_content, $et_pb_rendering_column_content_row;
[750] Fix | Delete
[751] Fix | Delete
$et_pb_all_column_settings_backup = $et_pb_all_column_settings;
[752] Fix | Delete
[753] Fix | Delete
$et_pb_all_column_settings = ! isset( $et_pb_all_column_settings ) ? array() : $et_pb_all_column_settings;
[754] Fix | Delete
[755] Fix | Delete
if ('on' === $make_equal) {
[756] Fix | Delete
$this->add_classname( 'et_pb_equal_columns' );
[757] Fix | Delete
}
[758] Fix | Delete
[759] Fix | Delete
if ( 'on' === $use_custom_gutter && '' !== $gutter_width ) {
[760] Fix | Delete
$gutter_width = '0' === $gutter_width ? '1' : $gutter_width; // set the gutter to 1 if 0 entered by user
[761] Fix | Delete
$gutter_class .= ' et_pb_gutters' . $gutter_width;
[762] Fix | Delete
[763] Fix | Delete
if ( et_builder_is_hover_enabled( 'gutter_width', $this->props ) && ! empty( $gutter_width_hover ) && $gutter_width !== $gutter_width_hover ) {
[764] Fix | Delete
$gutter_class .= ' et_pb_gutter_hover';
[765] Fix | Delete
[766] Fix | Delete
$gutter_hover_data = sprintf(
[767] Fix | Delete
' data-original_gutter="%1$s" data-hover_gutter="%2$s"',
[768] Fix | Delete
esc_attr($gutter_width),
[769] Fix | Delete
esc_attr($gutter_width_hover)
[770] Fix | Delete
);
[771] Fix | Delete
}
[772] Fix | Delete
}
[773] Fix | Delete
[774] Fix | Delete
// Column hover backgrounds
[775] Fix | Delete
$column_hover_backgrounds = array();
[776] Fix | Delete
[777] Fix | Delete
for ( $i = 0; $i <= 3; $i ++ ) {
[778] Fix | Delete
$column_hover_backgrounds = array_merge( $column_hover_backgrounds, array(
[779] Fix | Delete
"column_{$i}_color_hover" => $hover->get_value( "background_color_{$i}", $this->props, false ),
[780] Fix | Delete
"column_{$i}_color_hover_enabled" => $hover->is_enabled( "background_color_{$i}", $this->props ),
[781] Fix | Delete
) );
[782] Fix | Delete
}
[783] Fix | Delete
[784] Fix | Delete
$et_pb_column_backgrounds = array(
[785] Fix | Delete
array(
[786] Fix | Delete
'color' => $background_color_1,
[787] Fix | Delete
'color_hover' => $column_hover_backgrounds['column_1_color_hover'],
[788] Fix | Delete
'color_hover_enabled' => $column_hover_backgrounds['column_1_color_hover_enabled'],
[789] Fix | Delete
'image' => $bg_img_1,
[790] Fix | Delete
'image_size' => $background_size_1,
[791] Fix | Delete
'image_position' => $background_position_1,
[792] Fix | Delete
'image_repeat' => $background_repeat_1,
[793] Fix | Delete
'image_blend' => $background_blend_1,
[794] Fix | Delete
),
[795] Fix | Delete
array(
[796] Fix | Delete
'color' => $background_color_2,
[797] Fix | Delete
'color_hover' => $column_hover_backgrounds['column_2_color_hover'],
[798] Fix | Delete
'color_hover_enabled' => $column_hover_backgrounds['column_2_color_hover_enabled'],
[799] Fix | Delete
'image' => $bg_img_2,
[800] Fix | Delete
'image_size' => $background_size_2,
[801] Fix | Delete
'image_position' => $background_position_2,
[802] Fix | Delete
'image_repeat' => $background_repeat_2,
[803] Fix | Delete
'image_blend' => $background_blend_2,
[804] Fix | Delete
),
[805] Fix | Delete
array(
[806] Fix | Delete
'color' => $background_color_3,
[807] Fix | Delete
'color_hover' => $column_hover_backgrounds['column_3_color_hover'],
[808] Fix | Delete
'color_hover_enabled' => $column_hover_backgrounds['column_3_color_hover_enabled'],
[809] Fix | Delete
'image' => $bg_img_3,
[810] Fix | Delete
'image_size' => $background_size_3,
[811] Fix | Delete
'image_position' => $background_position_3,
[812] Fix | Delete
'image_repeat' => $background_repeat_3,
[813] Fix | Delete
'image_blend' => $background_blend_3,
[814] Fix | Delete
),
[815] Fix | Delete
);
[816] Fix | Delete
[817] Fix | Delete
$et_pb_column_backgrounds_gradient = array(
[818] Fix | Delete
array(
[819] Fix | Delete
'active' => $use_background_color_gradient_1,
[820] Fix | Delete
'type' => $background_color_gradient_type_1,
[821] Fix | Delete
'direction' => $background_color_gradient_direction_1,
[822] Fix | Delete
'radial_direction' => $background_color_gradient_direction_radial_1,
[823] Fix | Delete
'color_start' => $background_color_gradient_start_1,
[824] Fix | Delete
'color_end' => $background_color_gradient_end_1,
[825] Fix | Delete
'start_position' => $background_color_gradient_start_position_1,
[826] Fix | Delete
'end_position' => $background_color_gradient_end_position_1,
[827] Fix | Delete
'overlays_image' => $background_color_gradient_overlays_image_1,
[828] Fix | Delete
),
[829] Fix | Delete
array(
[830] Fix | Delete
'active' => $use_background_color_gradient_2,
[831] Fix | Delete
'type' => $background_color_gradient_type_2,
[832] Fix | Delete
'direction' => $background_color_gradient_direction_2,
[833] Fix | Delete
'radial_direction' => $background_color_gradient_direction_radial_2,
[834] Fix | Delete
'color_start' => $background_color_gradient_start_2,
[835] Fix | Delete
'color_end' => $background_color_gradient_end_2,
[836] Fix | Delete
'start_position' => $background_color_gradient_start_position_2,
[837] Fix | Delete
'end_position' => $background_color_gradient_end_position_2,
[838] Fix | Delete
'overlays_image' => $background_color_gradient_overlays_image_2,
[839] Fix | Delete
),
[840] Fix | Delete
array(
[841] Fix | Delete
'active' => $use_background_color_gradient_3,
[842] Fix | Delete
'type' => $background_color_gradient_type_3,
[843] Fix | Delete
'direction' => $background_color_gradient_direction_3,
[844] Fix | Delete
'radial_direction' => $background_color_gradient_direction_radial_3,
[845] Fix | Delete
'color_start' => $background_color_gradient_start_3,
[846] Fix | Delete
'color_end' => $background_color_gradient_end_3,
[847] Fix | Delete
'start_position' => $background_color_gradient_start_position_3,
[848] Fix | Delete
'end_position' => $background_color_gradient_end_position_3,
[849] Fix | Delete
'overlays_image' => $background_color_gradient_overlays_image_3,
[850] Fix | Delete
),
[851] Fix | Delete
);
[852] Fix | Delete
[853] Fix | Delete
$et_pb_column_backgrounds_video = array(
[854] Fix | Delete
array(
[855] Fix | Delete
'background_video_mp4' => $background_video_mp4_1,
[856] Fix | Delete
'background_video_webm' => $background_video_webm_1,
[857] Fix | Delete
'background_video_width' => $background_video_width_1,
[858] Fix | Delete
'background_video_height' => $background_video_height_1,
[859] Fix | Delete
'background_video_allow_pause' => $allow_player_pause_1,
[860] Fix | Delete
'background_video_pause_outside_viewport' => $background_video_pause_outside_viewport_1,
[861] Fix | Delete
),
[862] Fix | Delete
array(
[863] Fix | Delete
'background_video_mp4' => $background_video_mp4_2,
[864] Fix | Delete
'background_video_webm' => $background_video_webm_2,
[865] Fix | Delete
'background_video_width' => $background_video_width_2,
[866] Fix | Delete
'background_video_height' => $background_video_height_2,
[867] Fix | Delete
'background_video_allow_pause' => $allow_player_pause_2,
[868] Fix | Delete
'background_video_pause_outside_viewport' => $background_video_pause_outside_viewport_2,
[869] Fix | Delete
),
[870] Fix | Delete
array(
[871] Fix | Delete
'background_video_mp4' => $background_video_mp4_3,
[872] Fix | Delete
'background_video_webm' => $background_video_webm_3,
[873] Fix | Delete
'background_video_width' => $background_video_width_3,
[874] Fix | Delete
'background_video_height' => $background_video_height_3,
[875] Fix | Delete
'background_video_allow_pause' => $allow_player_pause_3,
[876] Fix | Delete
'background_video_pause_outside_viewport' => $background_video_pause_outside_viewport_3,
[877] Fix | Delete
),
[878] Fix | Delete
);
[879] Fix | Delete
[880] Fix | Delete
// Column hover paddings
[881] Fix | Delete
$column_hover_paddings = array();
[882] Fix | Delete
[883] Fix | Delete
for ( $i = 0; $i <= 3; $i++ ) {
[884] Fix | Delete
$column_hover_paddings = array_merge( $column_hover_paddings, array(
[885] Fix | Delete
"column_{$i}_padding_hover_enabled" => $hover->is_enabled( "padding_{$i}", $this->props ),
[886] Fix | Delete
"column_{$i}_padding_top" => $hover->get_compose_value( "padding_top_{$i}", "padding_{$i}", $this->props ),
[887] Fix | Delete
"column_{$i}_padding_right" => $hover->get_compose_value( "padding_right_{$i}", "padding_{$i}", $this->props ),
[888] Fix | Delete
"column_{$i}_padding_bottom" => $hover->get_compose_value( "padding_bottom_{$i}", "padding_{$i}", $this->props ),
[889] Fix | Delete
"column_{$i}_padding_left" => $hover->get_compose_value( "padding_left_{$i}", "padding_{$i}", $this->props ),
[890] Fix | Delete
) );
[891] Fix | Delete
}
[892] Fix | Delete
[893] Fix | Delete
$et_pb_column_paddings = array(
[894] Fix | Delete
array(
[895] Fix | Delete
'padding-top' => $padding_top_1,
[896] Fix | Delete
'padding-right' => $padding_right_1,
[897] Fix | Delete
'padding-bottom' => $padding_bottom_1,
[898] Fix | Delete
'padding-left' => $padding_left_1,
[899] Fix | Delete
'padding-hover-enabled' => $column_hover_paddings['column_1_padding_hover_enabled'],
[900] Fix | Delete
'padding-top-hover' => $column_hover_paddings['column_1_padding_top'],
[901] Fix | Delete
'padding-right-hover' => $column_hover_paddings['column_1_padding_right'],
[902] Fix | Delete
'padding-bottom-hover' => $column_hover_paddings['column_1_padding_bottom'],
[903] Fix | Delete
'padding-left-hover' => $column_hover_paddings['column_1_padding_left'],
[904] Fix | Delete
),
[905] Fix | Delete
array(
[906] Fix | Delete
'padding-top' => $padding_top_2,
[907] Fix | Delete
'padding-right' => $padding_right_2,
[908] Fix | Delete
'padding-bottom' => $padding_bottom_2,
[909] Fix | Delete
'padding-left' => $padding_left_2,
[910] Fix | Delete
'padding-hover-enabled' => $column_hover_paddings['column_2_padding_hover_enabled'],
[911] Fix | Delete
'padding-top-hover' => $column_hover_paddings['column_2_padding_top'],
[912] Fix | Delete
'padding-right-hover' => $column_hover_paddings['column_2_padding_right'],
[913] Fix | Delete
'padding-bottom-hover' => $column_hover_paddings['column_2_padding_bottom'],
[914] Fix | Delete
'padding-left-hover' => $column_hover_paddings['column_2_padding_left'],
[915] Fix | Delete
),
[916] Fix | Delete
array(
[917] Fix | Delete
'padding-top' => $padding_top_3,
[918] Fix | Delete
'padding-right' => $padding_right_3,
[919] Fix | Delete
'padding-bottom' => $padding_bottom_3,
[920] Fix | Delete
'padding-left' => $padding_left_3,
[921] Fix | Delete
'padding-hover-enabled' => $column_hover_paddings['column_3_padding_hover_enabled'],
[922] Fix | Delete
'padding-top-hover' => $column_hover_paddings['column_3_padding_top'],
[923] Fix | Delete
'padding-right-hover' => $column_hover_paddings['column_3_padding_right'],
[924] Fix | Delete
'padding-bottom-hover' => $column_hover_paddings['column_3_padding_bottom'],
[925] Fix | Delete
'padding-left-hover' => $column_hover_paddings['column_3_padding_left'],
[926] Fix | Delete
),
[927] Fix | Delete
);
[928] Fix | Delete
[929] Fix | Delete
$et_pb_column_paddings_mobile = array(
[930] Fix | Delete
array(
[931] Fix | Delete
'tablet' => explode( '|', $padding_1_tablet ),
[932] Fix | Delete
'phone' => explode( '|', $padding_1_phone ),
[933] Fix | Delete
'last_edited' => $padding_1_last_edited,
[934] Fix | Delete
),
[935] Fix | Delete
array(
[936] Fix | Delete
'tablet' => explode( '|', $padding_2_tablet ),
[937] Fix | Delete
'phone' => explode( '|', $padding_2_phone ),
[938] Fix | Delete
'last_edited' => $padding_2_last_edited,
[939] Fix | Delete
),
[940] Fix | Delete
array(
[941] Fix | Delete
'tablet' => explode( '|', $padding_3_tablet ),
[942] Fix | Delete
'phone' => explode( '|', $padding_3_phone ),
[943] Fix | Delete
'last_edited' => $padding_3_last_edited,
[944] Fix | Delete
),
[945] Fix | Delete
);
[946] Fix | Delete
[947] Fix | Delete
$et_pb_column_parallax = array(
[948] Fix | Delete
array( $parallax_1, $parallax_method_1 ),
[949] Fix | Delete
array( $parallax_2, $parallax_method_2 ),
[950] Fix | Delete
array( $parallax_3, $parallax_method_3 ),
[951] Fix | Delete
);
[952] Fix | Delete
[953] Fix | Delete
$et_pb_column_css = array(
[954] Fix | Delete
'css_class' => array( $module_class_1, $module_class_2, $module_class_3 ),
[955] Fix | Delete
'css_id' => array( $module_id_1, $module_id_2, $module_id_3 ),
[956] Fix | Delete
'custom_css_before' => array( $custom_css_before_1, $custom_css_before_2, $custom_css_before_3 ),
[957] Fix | Delete
'custom_css_main' => array( $custom_css_main_1, $custom_css_main_2, $custom_css_main_3 ),
[958] Fix | Delete
'custom_css_after' => array( $custom_css_after_1, $custom_css_after_2, $custom_css_after_3 ),
[959] Fix | Delete
'custom_css_before_hover' => array( $custom_css_before_1_hover, $custom_css_before_2_hover, $custom_css_before_3_hover ),
[960] Fix | Delete
'custom_css_main_hover' => array( $custom_css_main_1_hover, $custom_css_main_2_hover, $custom_css_main_3_hover ),
[961] Fix | Delete
'custom_css_after_hover' => array( $custom_css_after_1_hover, $custom_css_after_2_hover, $custom_css_after_3_hover ),
[962] Fix | Delete
);
[963] Fix | Delete
[964] Fix | Delete
$internal_columns_settings_array = array(
[965] Fix | Delete
'keep_column_padding_mobile' => 'on',
[966] Fix | Delete
'et_pb_column_backgrounds' => $et_pb_column_backgrounds,
[967] Fix | Delete
'et_pb_column_backgrounds_gradient' => $et_pb_column_backgrounds_gradient,
[968] Fix | Delete
'et_pb_column_backgrounds_video' => $et_pb_column_backgrounds_video,
[969] Fix | Delete
'et_pb_column_parallax' => $et_pb_column_parallax,
[970] Fix | Delete
'et_pb_columns_counter' => 0,
[971] Fix | Delete
'et_pb_column_paddings' => $et_pb_column_paddings,
[972] Fix | Delete
'et_pb_column_paddings_mobile' => $et_pb_column_paddings_mobile,
[973] Fix | Delete
'et_pb_column_css' => $et_pb_column_css,
[974] Fix | Delete
);
[975] Fix | Delete
[976] Fix | Delete
$current_row_position = $et_pb_rendering_column_content ? 'internal_row' : 'regular_row';
[977] Fix | Delete
[978] Fix | Delete
$et_pb_all_column_settings[ $current_row_position ] = $internal_columns_settings_array;
[979] Fix | Delete
[980] Fix | Delete
$et_pb_rendering_specialty_section = true;
[981] Fix | Delete
[982] Fix | Delete
if ( $et_pb_rendering_column_content ) {
[983] Fix | Delete
$et_pb_rendering_column_content_row = true;
[984] Fix | Delete
}
[985] Fix | Delete
} else {
[986] Fix | Delete
$et_pb_rendering_specialty_section = false;
[987] Fix | Delete
}
[988] Fix | Delete
[989] Fix | Delete
$background_video = $this->video_background();
[990] Fix | Delete
$parallax_image = $this->get_parallax_image_background();
[991] Fix | Delete
[992] Fix | Delete
// Background Color.
[993] Fix | Delete
$background_color_values = array(
[994] Fix | Delete
'desktop' => 'rgba(255,255,255,0)' !== $processed_background_color ? esc_html( $processed_background_color ) : '',
[995] Fix | Delete
'tablet' => 'rgba(255,255,255,0)' !== $processed_background_color_tablet ? esc_html( $processed_background_color_tablet ) : '',
[996] Fix | Delete
'phone' => 'rgba(255,255,255,0)' !== $processed_background_color_phone ? esc_html( $processed_background_color_phone ) : '',
[997] Fix | Delete
);
[998] Fix | Delete
et_pb_responsive_options()->generate_responsive_css( $background_color_values, '%%order_class%%.et_pb_section', 'background-color', $function_name, ' !important;', 'color' );
[999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function