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
[1000] Fix | Delete
// Background hover styles
[1001] Fix | Delete
$bg_color = $hover->get_value( 'background_color', $this->props );
[1002] Fix | Delete
$bg_color = empty( $bg_color ) ? $background_color : $bg_color;
[1003] Fix | Delete
if ( $hover->is_enabled( 'background', $this->props ) && ! empty( $bg_color ) ) {
[1004] Fix | Delete
ET_Builder_Element::set_style( $function_name, array(
[1005] Fix | Delete
'selector' => '%%order_class%%.et_pb_section:hover',
[1006] Fix | Delete
'declaration' => sprintf(
[1007] Fix | Delete
'background-color:%s !important;',
[1008] Fix | Delete
esc_attr( $bg_color )
[1009] Fix | Delete
),
[1010] Fix | Delete
) );
[1011] Fix | Delete
}
[1012] Fix | Delete
[1013] Fix | Delete
// Transparent is default for Builder Plugin, but not for theme
[1014] Fix | Delete
$is_transparent_background = $this->is_transparent_background( $background_color );
[1015] Fix | Delete
$is_transparent_background_tablet = $this->is_transparent_background( $background_color_tablet );
[1016] Fix | Delete
$is_transparent_background_phone = $this->is_transparent_background( $background_color_phone );
[1017] Fix | Delete
$is_background_color = ( '' !== $background_color && ! $is_transparent_background ) || ( '' !== $background_color_tablet && ! $is_transparent_background_tablet ) || ( '' !== $background_color_phone && ! $is_transparent_background_phone );
[1018] Fix | Delete
[1019] Fix | Delete
if ( ! empty( $background_video ) || $is_background_color || '' !== $background_image ) {
[1020] Fix | Delete
$this->add_classname( 'et_pb_with_background' );
[1021] Fix | Delete
}
[1022] Fix | Delete
[1023] Fix | Delete
// Background UI
[1024] Fix | Delete
if ( 'on' === $parallax ) {
[1025] Fix | Delete
$this->add_classname( 'et_pb_section_parallax' );
[1026] Fix | Delete
}
[1027] Fix | Delete
[1028] Fix | Delete
// CSS Filters
[1029] Fix | Delete
$this->add_classname( $this->generate_css_filters( $function_name ) );
[1030] Fix | Delete
[1031] Fix | Delete
if ( 'on' === $inner_shadow && ! ( '' !== $background_image && 'on' === $parallax && 'off' === $parallax_method ) ) {
[1032] Fix | Delete
$this->add_classname( 'et_pb_inner_shadow' );
[1033] Fix | Delete
}
[1034] Fix | Delete
[1035] Fix | Delete
if ( 'on' === $fullwidth ) {
[1036] Fix | Delete
$this->add_classname( 'et_pb_fullwidth_section' );
[1037] Fix | Delete
}
[1038] Fix | Delete
[1039] Fix | Delete
if ( 'on' === $specialty ) {
[1040] Fix | Delete
$this->add_classname( 'et_section_specialty' );
[1041] Fix | Delete
} else {
[1042] Fix | Delete
$this->add_classname( 'et_section_regular' );
[1043] Fix | Delete
}
[1044] Fix | Delete
[1045] Fix | Delete
if ( $is_transparent_background || $is_transparent_background_tablet || $is_transparent_background_phone ) {
[1046] Fix | Delete
$this->add_classname( 'et_section_transparent' );
[1047] Fix | Delete
}
[1048] Fix | Delete
[1049] Fix | Delete
// Setup for SVG.
[1050] Fix | Delete
$bottom = '';
[1051] Fix | Delete
$top = '';
[1052] Fix | Delete
$divider = ET_Builder_Module_Fields_Factory::get( 'Divider' );
[1053] Fix | Delete
// pass section number for background color usage.
[1054] Fix | Delete
$divider->count = $this->render_count();
[1055] Fix | Delete
[1056] Fix | Delete
// Divider Placement.
[1057] Fix | Delete
foreach ( array( 'bottom', 'top' ) as $placement ) {
[1058] Fix | Delete
// Divider Responsive.
[1059] Fix | Delete
foreach ( array( 'desktop', 'tablet', 'phone' ) as $device ) {
[1060] Fix | Delete
// Ensure responsive settings for style is active on tablet and phone.
[1061] Fix | Delete
$is_desktop = 'desktop' === $device;
[1062] Fix | Delete
$is_responsive_style = et_pb_responsive_options()->is_responsive_enabled( $this->props, "{$placement}_divider_style" );
[1063] Fix | Delete
[1064] Fix | Delete
// Get all responsive values if it's exist and not empty.
[1065] Fix | Delete
$values = array();
[1066] Fix | Delete
if ( ! $is_desktop ) {
[1067] Fix | Delete
$values = et_pb_responsive_options()->get_any_responsive_values( $this->props, array(
[1068] Fix | Delete
"{$placement}_divider_color" => '',
[1069] Fix | Delete
"{$placement}_divider_height" => '',
[1070] Fix | Delete
"{$placement}_divider_repeat" => '',
[1071] Fix | Delete
"{$placement}_divider_flip" => '',
[1072] Fix | Delete
"{$placement}_divider_arrangement" => '',
[1073] Fix | Delete
), false, $device );
[1074] Fix | Delete
}
[1075] Fix | Delete
[1076] Fix | Delete
// Get Divider Style.
[1077] Fix | Delete
$divider_style = $is_desktop || ! empty( $values ) ? et_pb_responsive_options()->get_any_value( $this->props, "{$placement}_divider_style" ) : '';
[1078] Fix | Delete
if ( ! $is_desktop && $is_responsive_style ) {
[1079] Fix | Delete
$divider_style = et_pb_responsive_options()->get_any_value( $this->props, "{$placement}_divider_style", '', true, $device );
[1080] Fix | Delete
}
[1081] Fix | Delete
[1082] Fix | Delete
// Check if style is not default.
[1083] Fix | Delete
if ( '' !== $divider_style ) {
[1084] Fix | Delete
// get an svg for using in ::before
[1085] Fix | Delete
$breakpoint = ! $is_desktop ? $device : '';
[1086] Fix | Delete
$divider->process_svg( $placement, $this->props, $breakpoint, $values );
[1087] Fix | Delete
[1088] Fix | Delete
// Get the placeholder for the bottom/top.
[1089] Fix | Delete
if ( 'bottom' === $placement && '' === $bottom ) {
[1090] Fix | Delete
$bottom = $divider->get_svg( 'bottom' );
[1091] Fix | Delete
} else if ( 'top' === $placement && '' === $top ) {
[1092] Fix | Delete
$top = $divider->get_svg( 'top' );
[1093] Fix | Delete
}
[1094] Fix | Delete
[1095] Fix | Delete
// add a corresponding class
[1096] Fix | Delete
$this->add_classname( $divider->classes );
[1097] Fix | Delete
}
[1098] Fix | Delete
}
[1099] Fix | Delete
}
[1100] Fix | Delete
[1101] Fix | Delete
// Position Options
[1102] Fix | Delete
if ( $multi_view->has_value( 'positioning', 'absolute' ) ) {
[1103] Fix | Delete
$this->add_classname( 'et_pb_section--absolute' );
[1104] Fix | Delete
}
[1105] Fix | Delete
[1106] Fix | Delete
if ( $multi_view->has_value( 'positioning', 'fixed' ) ) {
[1107] Fix | Delete
$this->add_classname( 'et_pb_section--fixed' );
[1108] Fix | Delete
}
[1109] Fix | Delete
[1110] Fix | Delete
$muti_view_attributes = $multi_view->render_attrs( array(
[1111] Fix | Delete
'classes' => array(
[1112] Fix | Delete
'et_pb_section--absolute' => array(
[1113] Fix | Delete
'positioning' => 'absolute',
[1114] Fix | Delete
),
[1115] Fix | Delete
'et_pb_section--fixed' => array(
[1116] Fix | Delete
'positioning' => 'fixed',
[1117] Fix | Delete
),
[1118] Fix | Delete
)
[1119] Fix | Delete
) );
[1120] Fix | Delete
[1121] Fix | Delete
// Remove automatically added classnames
[1122] Fix | Delete
$this->remove_classname( 'et_pb_module' );
[1123] Fix | Delete
[1124] Fix | Delete
// Save module classes into variable BEFORE processing the content with `do_shortcode()`
[1125] Fix | Delete
// Otherwise order classes messed up with internal sections if exist
[1126] Fix | Delete
$module_classes = $this->module_classname( $function_name );
[1127] Fix | Delete
[1128] Fix | Delete
$output = sprintf(
[1129] Fix | Delete
'<div%4$s class="%3$s"%8$s %11$s>
[1130] Fix | Delete
%9$s
[1131] Fix | Delete
%7$s
[1132] Fix | Delete
%2$s
[1133] Fix | Delete
%5$s
[1134] Fix | Delete
%1$s
[1135] Fix | Delete
%6$s
[1136] Fix | Delete
%10$s
[1137] Fix | Delete
</div> <!-- .et_pb_section -->',
[1138] Fix | Delete
do_shortcode( et_pb_fix_shortcodes( $content ) ), // 1
[1139] Fix | Delete
$background_video, // 2
[1140] Fix | Delete
$module_classes, // 3
[1141] Fix | Delete
$this->module_id(), // 4
[1142] Fix | Delete
( 'on' === $specialty ?
[1143] Fix | Delete
sprintf( '<div class="et_pb_row%1$s"%2$s>', $gutter_class, et_core_esc_previously( $gutter_hover_data ) )
[1144] Fix | Delete
: '' ), // 5
[1145] Fix | Delete
( 'on' === $specialty ? '</div> <!-- .et_pb_row -->' : '' ), // 6
[1146] Fix | Delete
$parallax_image, // 7
[1147] Fix | Delete
$this->get_module_data_attributes(), // 8
[1148] Fix | Delete
et_core_esc_previously( $top ), // 9
[1149] Fix | Delete
et_core_esc_previously( $bottom ), // 10,
[1150] Fix | Delete
et_core_esc_previously( $muti_view_attributes )
[1151] Fix | Delete
);
[1152] Fix | Delete
[1153] Fix | Delete
if ( 'on' === $specialty ) {
[1154] Fix | Delete
// reset the global column settings to make sure they are not affected by internal content
[1155] Fix | Delete
$et_pb_all_column_settings = $et_pb_all_column_settings_backup;
[1156] Fix | Delete
[1157] Fix | Delete
if ( $et_pb_rendering_column_content_row ) {
[1158] Fix | Delete
$et_pb_rendering_column_content_row = false;
[1159] Fix | Delete
}
[1160] Fix | Delete
}
[1161] Fix | Delete
[1162] Fix | Delete
return $output;
[1163] Fix | Delete
[1164] Fix | Delete
}
[1165] Fix | Delete
[1166] Fix | Delete
public function process_box_shadow( $function_name ) {
[1167] Fix | Delete
/**
[1168] Fix | Delete
* @var ET_Builder_Module_Field_BoxShadow $boxShadow
[1169] Fix | Delete
*/
[1170] Fix | Delete
$boxShadow = ET_Builder_Module_Fields_Factory::get( 'BoxShadow' );
[1171] Fix | Delete
$style = $boxShadow->get_value( $this->props );
[1172] Fix | Delete
$hover_style = $boxShadow->get_value( $this->props, array( 'hover' => true ) );
[1173] Fix | Delete
[1174] Fix | Delete
if ( ! empty( $style ) && 'none' !== $style && false === strpos( $style, 'inset' ) ) {
[1175] Fix | Delete
// Make section z-index higher if it has outer box shadow #4762
[1176] Fix | Delete
self::set_style( $function_name, array(
[1177] Fix | Delete
'selector' => '%%order_class%%',
[1178] Fix | Delete
'declaration' => 'z-index: 10;'
[1179] Fix | Delete
) );
[1180] Fix | Delete
}
[1181] Fix | Delete
[1182] Fix | Delete
if ( ! empty( $hover_style ) && 'none' !== $hover_style && false === strpos( $hover_style, 'inset' ) ) {
[1183] Fix | Delete
// Make section z-index higher if it has outer box shadow #4762
[1184] Fix | Delete
self::set_style( $function_name, array(
[1185] Fix | Delete
'selector' => '%%order_class%%:hover',
[1186] Fix | Delete
'declaration' => 'z-index: 10;'
[1187] Fix | Delete
) );
[1188] Fix | Delete
}
[1189] Fix | Delete
[1190] Fix | Delete
parent::process_box_shadow( $function_name );
[1191] Fix | Delete
}
[1192] Fix | Delete
[1193] Fix | Delete
private function _keep_box_shadow_compatibility( $function_name ) {
[1194] Fix | Delete
/**
[1195] Fix | Delete
* @var ET_Builder_Module_Field_BoxShadow $box_shadow
[1196] Fix | Delete
*/
[1197] Fix | Delete
$box_shadow = ET_Builder_Module_Fields_Factory::get( 'BoxShadow' );
[1198] Fix | Delete
$utils = ET_Core_Data_Utils::instance();
[1199] Fix | Delete
$atts = $this->props;
[1200] Fix | Delete
$style = $box_shadow->get_value( $atts );
[1201] Fix | Delete
[1202] Fix | Delete
if (
[1203] Fix | Delete
! empty( $style )
[1204] Fix | Delete
&&
[1205] Fix | Delete
! is_admin()
[1206] Fix | Delete
&&
[1207] Fix | Delete
version_compare( $utils->array_get( $atts, '_builder_version', '3.0.93' ), '3.0.94', 'lt' )
[1208] Fix | Delete
&&
[1209] Fix | Delete
! $box_shadow->is_inset( $box_shadow->get_value( $atts ) )
[1210] Fix | Delete
) {
[1211] Fix | Delete
$class = '.' . self::get_module_order_class( $function_name );
[1212] Fix | Delete
[1213] Fix | Delete
return sprintf(
[1214] Fix | Delete
'<style type="text/css">%1$s</style>',
[1215] Fix | Delete
sprintf( '%1$s { z-index: 11; %2$s }', esc_html( $class ), esc_html( $style ) )
[1216] Fix | Delete
);
[1217] Fix | Delete
}
[1218] Fix | Delete
[1219] Fix | Delete
return '';
[1220] Fix | Delete
}
[1221] Fix | Delete
}
[1222] Fix | Delete
new ET_Builder_Section;
[1223] Fix | Delete
[1224] Fix | Delete
class ET_Builder_Row extends ET_Builder_Structure_Element {
[1225] Fix | Delete
function init() {
[1226] Fix | Delete
$this->name = esc_html__( 'Row', 'et_builder' );
[1227] Fix | Delete
$this->plural = esc_html__( 'Rows', 'et_builder' );
[1228] Fix | Delete
$this->slug = 'et_pb_row';
[1229] Fix | Delete
$this->vb_support = 'on';
[1230] Fix | Delete
$this->child_slug = 'et_pb_column';
[1231] Fix | Delete
$this->child_item_text = esc_html__( 'Column', 'et_builder' );
[1232] Fix | Delete
[1233] Fix | Delete
$this->advanced_fields = array(
[1234] Fix | Delete
'background' => array(
[1235] Fix | Delete
'use_background_color' => true,
[1236] Fix | Delete
'use_background_image' => true,
[1237] Fix | Delete
'use_background_color_gradient' => true,
[1238] Fix | Delete
'use_background_video' => true,
[1239] Fix | Delete
'options' => array(
[1240] Fix | Delete
'background_color' => array(
[1241] Fix | Delete
'default' => '',
[1242] Fix | Delete
'hover' => 'tabs',
[1243] Fix | Delete
),
[1244] Fix | Delete
'allow_player_pause' => array(
[1245] Fix | Delete
'default_on_front' => 'off',
[1246] Fix | Delete
),
[1247] Fix | Delete
'parallax' => array(
[1248] Fix | Delete
'default_on_front' => 'off',
[1249] Fix | Delete
),
[1250] Fix | Delete
'parallax_method' => array(
[1251] Fix | Delete
'default_on_front' => 'on',
[1252] Fix | Delete
),
[1253] Fix | Delete
),
[1254] Fix | Delete
),
[1255] Fix | Delete
'max_width' => array(
[1256] Fix | Delete
'css' => array(
[1257] Fix | Delete
'module_alignment' => '%%order_class%%.et_pb_row',
[1258] Fix | Delete
),
[1259] Fix | Delete
'options' => array(
[1260] Fix | Delete
'width' => array(
[1261] Fix | Delete
'default' => '80%',
[1262] Fix | Delete
),
[1263] Fix | Delete
'max_width' => array(
[1264] Fix | Delete
'default' => '1080px',
[1265] Fix | Delete
'range_settings' => array(
[1266] Fix | Delete
'min' => 0,
[1267] Fix | Delete
'max' => 2560,
[1268] Fix | Delete
'step' => 1,
[1269] Fix | Delete
),
[1270] Fix | Delete
),
[1271] Fix | Delete
'module_alignment' => array(
[1272] Fix | Delete
'label' => esc_html__( 'Row Alignment', 'et_builder' ),
[1273] Fix | Delete
'mobile_options' => true,
[1274] Fix | Delete
'description' => esc_html__( 'Rows can be aligned to the left, right or center. By default, rows are centered within their parent section.', 'et_builder' ),
[1275] Fix | Delete
),
[1276] Fix | Delete
),
[1277] Fix | Delete
'toggle_slug' => 'width',
[1278] Fix | Delete
'toggle_title' => esc_html__( 'Alignment', 'et_builder' ),
[1279] Fix | Delete
'toggle_priority' => 50,
[1280] Fix | Delete
),
[1281] Fix | Delete
'margin_padding' => array(
[1282] Fix | Delete
'css' => array(
[1283] Fix | Delete
'main' => '%%order_class%%.et_pb_row',
[1284] Fix | Delete
'important' => 'all',
[1285] Fix | Delete
),
[1286] Fix | Delete
),
[1287] Fix | Delete
'fonts' => false,
[1288] Fix | Delete
'text' => false,
[1289] Fix | Delete
'button' => false,
[1290] Fix | Delete
'position_fields' => array(
[1291] Fix | Delete
'default' => 'relative',
[1292] Fix | Delete
),
[1293] Fix | Delete
);
[1294] Fix | Delete
[1295] Fix | Delete
$this->settings_modal_toggles = array(
[1296] Fix | Delete
'general' => array(
[1297] Fix | Delete
'toggles' => array(
[1298] Fix | Delete
'column_structure' => array(
[1299] Fix | Delete
'title' => esc_html__( 'Column Structure', 'et_builder' ),
[1300] Fix | Delete
'priority' => 1,
[1301] Fix | Delete
'always_open' => true,
[1302] Fix | Delete
),
[1303] Fix | Delete
),
[1304] Fix | Delete
),
[1305] Fix | Delete
'advanced' => array(
[1306] Fix | Delete
'toggles' => array(
[1307] Fix | Delete
'width' => array(
[1308] Fix | Delete
'title' => et_builder_i18n( 'Sizing' ),
[1309] Fix | Delete
'priority' => 65,
[1310] Fix | Delete
),
[1311] Fix | Delete
),
[1312] Fix | Delete
),
[1313] Fix | Delete
);
[1314] Fix | Delete
[1315] Fix | Delete
$this->help_videos = array(
[1316] Fix | Delete
array(
[1317] Fix | Delete
'id' => 'R9ds7bEaHE8',
[1318] Fix | Delete
'name' => esc_html__( 'An introduction to Rows', 'et_builder' ),
[1319] Fix | Delete
),
[1320] Fix | Delete
);
[1321] Fix | Delete
}
[1322] Fix | Delete
[1323] Fix | Delete
function get_fields() {
[1324] Fix | Delete
$fields = array(
[1325] Fix | Delete
'column_structure' => array(
[1326] Fix | Delete
'label' => esc_html__( 'Column Structure', 'et_builder' ),
[1327] Fix | Delete
'description' => esc_html__( 'Here you can choose the Column Structure for this Row.', 'et_builder' ),
[1328] Fix | Delete
'type' => 'column-structure',
[1329] Fix | Delete
'default' => '4_4',
[1330] Fix | Delete
'options' => array(
[1331] Fix | Delete
'4_4' => et_pb_get_column_svg( '4_4' ),
[1332] Fix | Delete
'1_2,1_2' => et_pb_get_column_svg( '1_2,1_2' ),
[1333] Fix | Delete
'1_3,1_3,1_3' => et_pb_get_column_svg( '1_3,1_3,1_3' ),
[1334] Fix | Delete
'1_4,1_4,1_4,1_4' => et_pb_get_column_svg( '1_4,1_4,1_4,1_4' ),
[1335] Fix | Delete
'1_4,1_4,1_4,1_4' => et_pb_get_column_svg( '1_4,1_4,1_4,1_4' ),
[1336] Fix | Delete
'1_5,1_5,1_5,1_5,1_5' => et_pb_get_column_svg( '1_5,1_5,1_5,1_5,1_5' ),
[1337] Fix | Delete
'1_6,1_6,1_6,1_6,1_6,1_6' => et_pb_get_column_svg( '1_6,1_6,1_6,1_6,1_6,1_6' ),
[1338] Fix | Delete
'2_5,3_5' => et_pb_get_column_svg( '2_5,3_5' ),
[1339] Fix | Delete
'3_5,2_5' => et_pb_get_column_svg( '3_5,2_5' ),
[1340] Fix | Delete
'1_3,2_3' => et_pb_get_column_svg( '1_3,2_3' ),
[1341] Fix | Delete
'2_3,1_3' => et_pb_get_column_svg( '2_3,1_3' ),
[1342] Fix | Delete
'1_4,3_4' => et_pb_get_column_svg( '1_4,3_4' ),
[1343] Fix | Delete
'3_4,1_4' => et_pb_get_column_svg( '3_4,1_4' ),
[1344] Fix | Delete
'1_4,1_2,1_4' => et_pb_get_column_svg( '1_4,1_2,1_4' ),
[1345] Fix | Delete
'1_5,3_5,1_5' => et_pb_get_column_svg( '1_5,3_5,1_5' ),
[1346] Fix | Delete
'1_4,1_4,1_2' => et_pb_get_column_svg( '1_4,1_4,1_2' ),
[1347] Fix | Delete
'1_2,1_4,1_4' => et_pb_get_column_svg( '1_2,1_4,1_4' ),
[1348] Fix | Delete
'1_5,1_5,3_5' => et_pb_get_column_svg( '1_5,1_5,3_5' ),
[1349] Fix | Delete
'3_5,1_5,1_5' => et_pb_get_column_svg( '3_5,1_5,1_5' ),
[1350] Fix | Delete
'1_6,1_6,1_6,1_2' => et_pb_get_column_svg( '1_6,1_6,1_6,1_2' ),
[1351] Fix | Delete
'1_2,1_6,1_6,1_6' => et_pb_get_column_svg( '1_2,1_6,1_6,1_6' ),
[1352] Fix | Delete
),
[1353] Fix | Delete
'toggle_slug' => 'column_structure',
[1354] Fix | Delete
),
[1355] Fix | Delete
'use_custom_gutter' => array(
[1356] Fix | Delete
'label' => esc_html__( 'Use Custom Gutter Width', 'et_builder' ),
[1357] Fix | Delete
'type' => 'yes_no_button',
[1358] Fix | Delete
'option_category' => 'layout',
[1359] Fix | Delete
'options' => array(
[1360] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[1361] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[1362] Fix | Delete
),
[1363] Fix | Delete
'default' => 'off',
[1364] Fix | Delete
'affects' => array(
[1365] Fix | Delete
'gutter_width',
[1366] Fix | Delete
),
[1367] Fix | Delete
'description' => esc_html__( 'Enable this option to define custom gutter width for this row.', 'et_builder' ),
[1368] Fix | Delete
'tab_slug' => 'advanced',
[1369] Fix | Delete
'toggle_slug' => 'width',
[1370] Fix | Delete
),
[1371] Fix | Delete
'gutter_width' => array(
[1372] Fix | Delete
'label' => esc_html__( 'Gutter Width', 'et_builder' ),
[1373] Fix | Delete
'type' => 'range',
[1374] Fix | Delete
'option_category' => 'layout',
[1375] Fix | Delete
'range_settings' => array(
[1376] Fix | Delete
'min' => 1,
[1377] Fix | Delete
'max' => 4,
[1378] Fix | Delete
'step' => 1,
[1379] Fix | Delete
'min_limit' => 1,
[1380] Fix | Delete
'max_limit' => 4,
[1381] Fix | Delete
),
[1382] Fix | Delete
'depends_show_if' => 'on',
[1383] Fix | Delete
'description' => esc_html__( 'Adjust the spacing between each column in this row.', 'et_builder' ),
[1384] Fix | Delete
'validate_unit' => false,
[1385] Fix | Delete
'fixed_range' => true,
[1386] Fix | Delete
'tab_slug' => 'advanced',
[1387] Fix | Delete
'toggle_slug' => 'width',
[1388] Fix | Delete
'default_on_front' => (string) et_get_option( 'gutter_width', '3' ),
[1389] Fix | Delete
'hover' => 'tabs',
[1390] Fix | Delete
),
[1391] Fix | Delete
'padding_mobile' => array(
[1392] Fix | Delete
'label' => esc_html__( 'Keep Custom Padding on Mobile', 'et_builder' ),
[1393] Fix | Delete
'type' => 'skip', // Remaining attribute for backward compatibility
[1394] Fix | Delete
'tab_slug' => 'advanced',
[1395] Fix | Delete
'toggle_slug' => 'margin_padding',
[1396] Fix | Delete
'default_on_front' => '',
[1397] Fix | Delete
),
[1398] Fix | Delete
'make_equal' => array(
[1399] Fix | Delete
'label' => esc_html__( 'Equalize Column Heights', 'et_builder' ),
[1400] Fix | Delete
'description' => esc_html__( 'Equalizing column heights will force all columns to assume the height of the tallest column in the row. All columns will have the same height, keeping their appearance uniform.', 'et_builder' ),
[1401] Fix | Delete
'type' => 'yes_no_button',
[1402] Fix | Delete
'option_category' => 'layout',
[1403] Fix | Delete
'options' => array(
[1404] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[1405] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[1406] Fix | Delete
),
[1407] Fix | Delete
'default' => 'off',
[1408] Fix | Delete
'tab_slug' => 'advanced',
[1409] Fix | Delete
'toggle_slug' => 'width',
[1410] Fix | Delete
),
[1411] Fix | Delete
'column_padding_mobile' => array(
[1412] Fix | Delete
'label' => esc_html__( 'Keep Column Padding on Mobile', 'et_builder' ),
[1413] Fix | Delete
'tab_slug' => 'advanced',
[1414] Fix | Delete
'type' => 'skip', // Remaining attribute for backward compatibility
[1415] Fix | Delete
'default_on_front' => '',
[1416] Fix | Delete
),
[1417] Fix | Delete
'custom_padding_last_edited' => array(
[1418] Fix | Delete
'type' => 'skip',
[1419] Fix | Delete
'tab_slug' => 'advanced',
[1420] Fix | Delete
),
[1421] Fix | Delete
'__video_background' => array(
[1422] Fix | Delete
'type' => 'computed',
[1423] Fix | Delete
'computed_callback' => array( 'ET_Builder_Module_Helper_ResponsiveOptions', 'get_video_background' ),
[1424] Fix | Delete
'computed_depends_on' => array(
[1425] Fix | Delete
'background_video_mp4',
[1426] Fix | Delete
'background_video_webm',
[1427] Fix | Delete
'background_video_width',
[1428] Fix | Delete
'background_video_height',
[1429] Fix | Delete
),
[1430] Fix | Delete
'computed_minimum' => array(
[1431] Fix | Delete
'background_video_mp4',
[1432] Fix | Delete
'background_video_webm',
[1433] Fix | Delete
),
[1434] Fix | Delete
),
[1435] Fix | Delete
);
[1436] Fix | Delete
[1437] Fix | Delete
$column_fields = $this->get_column_fields( 6, array(
[1438] Fix | Delete
'background_color' => array(),
[1439] Fix | Delete
'bg_img' => array(),
[1440] Fix | Delete
'padding_top_bottom_link' => array(),
[1441] Fix | Delete
'padding_left_right_link' => array(),
[1442] Fix | Delete
'parallax' => array(
[1443] Fix | Delete
'default_on_front' => 'off',
[1444] Fix | Delete
),
[1445] Fix | Delete
'parallax_method' => array(
[1446] Fix | Delete
'default_on_front' => 'on',
[1447] Fix | Delete
),
[1448] Fix | Delete
'background_size' => array(),
[1449] Fix | Delete
'background_position' => array(),
[1450] Fix | Delete
'background_repeat' => array(),
[1451] Fix | Delete
'background_blend' => array(),
[1452] Fix | Delete
'use_background_color_gradient' => array(),
[1453] Fix | Delete
'background_color_gradient_start' => array(),
[1454] Fix | Delete
'background_color_gradient_end' => array(),
[1455] Fix | Delete
'background_color_gradient_type' => array(),
[1456] Fix | Delete
'background_color_gradient_direction' => array(),
[1457] Fix | Delete
'background_color_gradient_direction_radial' => array(),
[1458] Fix | Delete
'background_color_gradient_start_position' => array(),
[1459] Fix | Delete
'background_color_gradient_end_position' => array(),
[1460] Fix | Delete
'background_color_gradient_overlays_image' => array(),
[1461] Fix | Delete
'background_video_mp4' => array(
[1462] Fix | Delete
'computed_affects' => array(
[1463] Fix | Delete
'__video_background',
[1464] Fix | Delete
),
[1465] Fix | Delete
),
[1466] Fix | Delete
'background_video_webm' => array(
[1467] Fix | Delete
'computed_affects' => array(
[1468] Fix | Delete
'__video_background',
[1469] Fix | Delete
),
[1470] Fix | Delete
),
[1471] Fix | Delete
'background_video_width' => array(
[1472] Fix | Delete
'computed_affects' => array(
[1473] Fix | Delete
'__video_background',
[1474] Fix | Delete
),
[1475] Fix | Delete
),
[1476] Fix | Delete
'background_video_height' => array(
[1477] Fix | Delete
'computed_affects' => array(
[1478] Fix | Delete
'__video_background',
[1479] Fix | Delete
),
[1480] Fix | Delete
),
[1481] Fix | Delete
'allow_player_pause' => array(
[1482] Fix | Delete
'computed_affects' => array(
[1483] Fix | Delete
'__video_background',
[1484] Fix | Delete
),
[1485] Fix | Delete
),
[1486] Fix | Delete
'background_video_pause_outside_viewport' => array(
[1487] Fix | Delete
'computed_affects' => array(
[1488] Fix | Delete
'__video_background',
[1489] Fix | Delete
),
[1490] Fix | Delete
),
[1491] Fix | Delete
'__video_background' => array(
[1492] Fix | Delete
'type' => 'computed',
[1493] Fix | Delete
'computed_callback' => array(
[1494] Fix | Delete
'ET_Builder_Column',
[1495] Fix | Delete
'get_column_video_background'
[1496] Fix | Delete
),
[1497] Fix | Delete
'computed_depends_on' => array(
[1498] Fix | Delete
'background_video_mp4',
[1499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function