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: Menu.php
'menu_id' => $menu_id,
[1000] Fix | Delete
'submenu_direction' => $submenu_direction,
[1001] Fix | Delete
) );
[1002] Fix | Delete
[1003] Fix | Delete
// Active Link Color.
[1004] Fix | Delete
et_pb_responsive_options()->generate_responsive_css( $active_link_color_values, "%%order_class%%.{$menu_slug} ul li.current-menu-item a", 'color', $render_slug, ' !important;', 'color' );
[1005] Fix | Delete
[1006] Fix | Delete
if ( et_builder_is_hover_enabled( 'active_link_color', $this->props ) ) {
[1007] Fix | Delete
ET_Builder_Element::set_style( $render_slug, array(
[1008] Fix | Delete
'selector' => $this->add_hover_to_selectors( "%%order_class%%.{$menu_slug} ul li.current-menu-item a" ),
[1009] Fix | Delete
'declaration' => sprintf(
[1010] Fix | Delete
'color: %1$s !important;',
[1011] Fix | Delete
esc_html( $active_link_color_hover )
[1012] Fix | Delete
),
[1013] Fix | Delete
) );
[1014] Fix | Delete
}
[1015] Fix | Delete
[1016] Fix | Delete
if ( '' !== $background_color || '' !== $dropdown_menu_bg_color ) {
[1017] Fix | Delete
$et_menu_bg_color = '' !== $dropdown_menu_bg_color ? $dropdown_menu_bg_color : $background_color;
[1018] Fix | Delete
[1019] Fix | Delete
ET_Builder_Element::set_style( $render_slug, array(
[1020] Fix | Delete
'selector' => "%%order_class%%.{$menu_slug} .nav li ul",
[1021] Fix | Delete
'declaration' => sprintf(
[1022] Fix | Delete
'background-color: %1$s !important;',
[1023] Fix | Delete
esc_html( $et_menu_bg_color )
[1024] Fix | Delete
),
[1025] Fix | Delete
) );
[1026] Fix | Delete
}
[1027] Fix | Delete
[1028] Fix | Delete
if ( et_builder_is_hover_enabled( 'dropdown_menu_bg_color', $this->props ) ) {
[1029] Fix | Delete
ET_Builder_Element::set_style( $render_slug, array(
[1030] Fix | Delete
'selector' => $this->add_hover_to_selectors( "%%order_class%%.{$menu_slug} .nav li ul" ),
[1031] Fix | Delete
'declaration' => sprintf(
[1032] Fix | Delete
'background-color: %1$s !important;',
[1033] Fix | Delete
esc_html( $dropdown_menu_bg_color_hover )
[1034] Fix | Delete
),
[1035] Fix | Delete
) );
[1036] Fix | Delete
}
[1037] Fix | Delete
[1038] Fix | Delete
$dropdown_menu_line_color_selector = 'upwards' === $submenu_direction
[1039] Fix | Delete
? "%%order_class%%.{$menu_slug} .et-menu-nav > ul.upwards li ul"
[1040] Fix | Delete
: "%%order_class%%.{$menu_slug} .nav li ul";
[1041] Fix | Delete
[1042] Fix | Delete
// Dropdown Menu Line Color.
[1043] Fix | Delete
et_pb_responsive_options()->generate_responsive_css( $dropdown_menu_line_color_values, $dropdown_menu_line_color_selector, 'border-color', $render_slug, '', 'color' );
[1044] Fix | Delete
et_pb_responsive_options()->generate_responsive_css( $dropdown_menu_line_color_values, "%%order_class%%.{$menu_slug} .et_mobile_menu", 'border-color', $render_slug, '', 'color' );
[1045] Fix | Delete
[1046] Fix | Delete
if ( et_builder_is_hover_enabled( 'dropdown_menu_line_color', $this->props ) ) {
[1047] Fix | Delete
ET_Builder_Element::set_style( $render_slug, array(
[1048] Fix | Delete
'selector' => $this->add_hover_to_selectors( $dropdown_menu_line_color_selector ),
[1049] Fix | Delete
'declaration' => sprintf(
[1050] Fix | Delete
'border-color: %1$s;',
[1051] Fix | Delete
esc_html( $dropdown_menu_line_color_hover )
[1052] Fix | Delete
),
[1053] Fix | Delete
) );
[1054] Fix | Delete
[1055] Fix | Delete
ET_Builder_Element::set_style( $render_slug, array(
[1056] Fix | Delete
'selector' => $this->add_hover_to_selectors( "%%order_class%%.{$menu_slug} .et_mobile_menu" ),
[1057] Fix | Delete
'declaration' => sprintf(
[1058] Fix | Delete
'border-color: %1$s;',
[1059] Fix | Delete
esc_html( $dropdown_menu_line_color_hover )
[1060] Fix | Delete
),
[1061] Fix | Delete
) );
[1062] Fix | Delete
}
[1063] Fix | Delete
[1064] Fix | Delete
if ( '' !== $dropdown_menu_text_color ) {
[1065] Fix | Delete
ET_Builder_Element::set_style( $render_slug, array(
[1066] Fix | Delete
'selector' => "%%order_class%%.{$menu_slug} .nav li ul.sub-menu a",
[1067] Fix | Delete
'declaration' => sprintf(
[1068] Fix | Delete
'color: %1$s !important;',
[1069] Fix | Delete
esc_html( $dropdown_menu_text_color )
[1070] Fix | Delete
),
[1071] Fix | Delete
) );
[1072] Fix | Delete
}
[1073] Fix | Delete
[1074] Fix | Delete
if ( '' !== $dropdown_menu_active_link_color ) {
[1075] Fix | Delete
ET_Builder_Element::set_style( $render_slug, array(
[1076] Fix | Delete
'selector' => "%%order_class%%.{$menu_slug} .nav li ul.sub-menu li.current-menu-item a",
[1077] Fix | Delete
'declaration' => sprintf(
[1078] Fix | Delete
'color: %1$s !important;',
[1079] Fix | Delete
esc_html( $dropdown_menu_active_link_color )
[1080] Fix | Delete
),
[1081] Fix | Delete
) );
[1082] Fix | Delete
}
[1083] Fix | Delete
[1084] Fix | Delete
if ( et_builder_is_hover_enabled( 'dropdown_menu_text_color', $this->props ) ) {
[1085] Fix | Delete
ET_Builder_Element::set_style( $render_slug, array(
[1086] Fix | Delete
'selector' => $this->add_hover_to_selectors( "%%order_class%%.{$menu_slug} .nav li ul.sub-menu a" ),
[1087] Fix | Delete
'declaration' => sprintf(
[1088] Fix | Delete
'color: %1$s !important;',
[1089] Fix | Delete
esc_html( $dropdown_menu_text_color_hover )
[1090] Fix | Delete
),
[1091] Fix | Delete
) );
[1092] Fix | Delete
}
[1093] Fix | Delete
[1094] Fix | Delete
if ( et_builder_is_hover_enabled( 'dropdown_menu_active_link_color', $this->props ) ) {
[1095] Fix | Delete
ET_Builder_Element::set_style( $render_slug, array(
[1096] Fix | Delete
'selector' => $this->add_hover_to_selectors( "%%order_class%%.{$menu_slug} .nav li ul.sub-menu li.current-menu-item a" ),
[1097] Fix | Delete
'declaration' => sprintf(
[1098] Fix | Delete
'color: %1$s !important;',
[1099] Fix | Delete
esc_html( $dropdown_menu_active_link_color_hover )
[1100] Fix | Delete
),
[1101] Fix | Delete
) );
[1102] Fix | Delete
}
[1103] Fix | Delete
[1104] Fix | Delete
// Mobile Menu Background Color.
[1105] Fix | Delete
$is_mobile_menu_bg_responsive = et_pb_responsive_options()->is_responsive_enabled( $this->props, 'mobile_menu_bg_color' );
[1106] Fix | Delete
$mobile_menu_bg_color = empty( $mobile_menu_bg_color ) ? $background_color : $mobile_menu_bg_color;
[1107] Fix | Delete
$mobile_menu_bg_color_tablet = empty( $mobile_menu_bg_color_tablet ) ? $background_color : $mobile_menu_bg_color_tablet;
[1108] Fix | Delete
$mobile_menu_bg_color_phone = empty( $mobile_menu_bg_color_phone ) ? $background_color : $mobile_menu_bg_color_phone;
[1109] Fix | Delete
$mobile_menu_bg_color_values = array(
[1110] Fix | Delete
'desktop' => esc_html( $mobile_menu_bg_color ),
[1111] Fix | Delete
'tablet' => $is_mobile_menu_bg_responsive ? esc_html( $mobile_menu_bg_color_tablet ) : '',
[1112] Fix | Delete
'phone' => $is_mobile_menu_bg_responsive ? esc_html( $mobile_menu_bg_color_phone ) : '',
[1113] Fix | Delete
);
[1114] Fix | Delete
et_pb_responsive_options()->generate_responsive_css( $mobile_menu_bg_color_values, "%%order_class%%.{$menu_slug} .et_mobile_menu, %%order_class%%.{$menu_slug} .et_mobile_menu ul", 'background-color', $render_slug, ' !important;', 'color' );
[1115] Fix | Delete
[1116] Fix | Delete
if ( et_builder_is_hover_enabled( 'mobile_menu_bg_color', $this->props ) ) {
[1117] Fix | Delete
ET_Builder_Element::set_style( $render_slug, array(
[1118] Fix | Delete
'selector' => $this->add_hover_to_selectors( "%%order_class%%.{$menu_slug} .et_mobile_menu, %%order_class%%.{$menu_slug} .et_mobile_menu ul" ) . ", %%order_class%%.{$menu_slug} .et_mobile_menu:hover ul",
[1119] Fix | Delete
'declaration' => sprintf(
[1120] Fix | Delete
'background-color: %1$s !important;',
[1121] Fix | Delete
esc_html( $mobile_menu_bg_color_hover )
[1122] Fix | Delete
),
[1123] Fix | Delete
) );
[1124] Fix | Delete
}
[1125] Fix | Delete
[1126] Fix | Delete
// Mobile Menu Text Color.
[1127] Fix | Delete
et_pb_responsive_options()->generate_responsive_css( $mobile_menu_text_color_values, "%%order_class%%.{$menu_slug} .et_mobile_menu a", 'color', $render_slug, ' !important;', 'color' );
[1128] Fix | Delete
[1129] Fix | Delete
if ( et_builder_is_hover_enabled( 'mobile_menu_text_color', $this->props ) ) {
[1130] Fix | Delete
ET_Builder_Element::set_style( $render_slug, array(
[1131] Fix | Delete
'selector' => $this->add_hover_to_selectors( "%%order_class%%.{$menu_slug} .et_mobile_menu a" ),
[1132] Fix | Delete
'declaration' => sprintf(
[1133] Fix | Delete
'color: %1$s !important;',
[1134] Fix | Delete
esc_html( $mobile_menu_text_color_hover )
[1135] Fix | Delete
),
[1136] Fix | Delete
) );
[1137] Fix | Delete
}
[1138] Fix | Delete
[1139] Fix | Delete
$this->apply_logo_styles( $render_slug );
[1140] Fix | Delete
$this->apply_icon_styles( $render_slug, 'menu', '%%order_class%% .mobile_nav .mobile_menu_bar:before' );
[1141] Fix | Delete
$this->apply_icon_styles( $render_slug, 'search', '%%order_class%% .et_pb_menu__icon.et_pb_menu__search-button, %%order_class%% .et_pb_menu__icon.et_pb_menu__close-search-button' );
[1142] Fix | Delete
$this->apply_icon_styles( $render_slug, 'cart', '%%order_class%% .et_pb_menu__icon.et_pb_menu__cart-button' );
[1143] Fix | Delete
[1144] Fix | Delete
$data_background_layout = '';
[1145] Fix | Delete
$data_background_layout_hover = '';
[1146] Fix | Delete
if ( $background_layout_hover_enabled ) {
[1147] Fix | Delete
$data_background_layout = sprintf(
[1148] Fix | Delete
' data-background-layout="%1$s"',
[1149] Fix | Delete
esc_attr( $background_layout )
[1150] Fix | Delete
);
[1151] Fix | Delete
$data_background_layout_hover = sprintf(
[1152] Fix | Delete
' data-background-layout-hover="%1$s"',
[1153] Fix | Delete
esc_attr( $background_layout_hover )
[1154] Fix | Delete
);
[1155] Fix | Delete
}
[1156] Fix | Delete
[1157] Fix | Delete
// Module classnames
[1158] Fix | Delete
$this->add_classname( array(
[1159] Fix | Delete
"et_pb_bg_layout_{$background_layout}",
[1160] Fix | Delete
$this->get_text_orientation_classname(),
[1161] Fix | Delete
"et_dropdown_animation_{$dropdown_menu_animation}",
[1162] Fix | Delete
) );
[1163] Fix | Delete
[1164] Fix | Delete
if ( ! empty( $background_layout_tablet ) ) {
[1165] Fix | Delete
$this->add_classname( "et_pb_bg_layout_{$background_layout_tablet}_tablet" );
[1166] Fix | Delete
}
[1167] Fix | Delete
[1168] Fix | Delete
if ( ! empty( $background_layout_phone ) ) {
[1169] Fix | Delete
$this->add_classname( "et_pb_bg_layout_{$background_layout_phone}_phone" );
[1170] Fix | Delete
}
[1171] Fix | Delete
[1172] Fix | Delete
if ( ! empty( $this->props['logo'] ) ) {
[1173] Fix | Delete
$this->add_classname( "{$menu_slug}--with-logo" );
[1174] Fix | Delete
} else {
[1175] Fix | Delete
$this->add_classname( "{$menu_slug}--without-logo" );
[1176] Fix | Delete
}
[1177] Fix | Delete
[1178] Fix | Delete
$this->add_classname( "{$menu_slug}--style-{$menu_style}" );
[1179] Fix | Delete
[1180] Fix | Delete
// Logo: Add CSS Filters and Mix Blend Mode rules (if set).
[1181] Fix | Delete
if ( ! empty( $this->props['logo'] ) && array_key_exists( 'image', $this->advanced_fields ) && array_key_exists( 'css', $this->advanced_fields['image'] ) ) {
[1182] Fix | Delete
$this->add_classname( $this->generate_css_filters(
[1183] Fix | Delete
$render_slug,
[1184] Fix | Delete
'child_',
[1185] Fix | Delete
self::$data_utils->array_get( $this->advanced_fields['image']['css'], 'main', '%%order_class%%' )
[1186] Fix | Delete
) );
[1187] Fix | Delete
}
[1188] Fix | Delete
[1189] Fix | Delete
$mobile_menu = sprintf(
[1190] Fix | Delete
'<div class="et_mobile_nav_menu">
[1191] Fix | Delete
<a href="#" class="mobile_nav closed%1$s">
[1192] Fix | Delete
<span class="mobile_menu_bar"></span>
[1193] Fix | Delete
</a>
[1194] Fix | Delete
</div>',
[1195] Fix | Delete
'upwards' === $submenu_direction ? ' et_pb_mobile_menu_upwards' : ''
[1196] Fix | Delete
);
[1197] Fix | Delete
[1198] Fix | Delete
if ( 'inline_centered_logo' === $menu_style ) {
[1199] Fix | Delete
$output = sprintf(
[1200] Fix | Delete
'<div%4$s class="%3$s"%2$s%7$s%8$s>
[1201] Fix | Delete
%6$s
[1202] Fix | Delete
%5$s
[1203] Fix | Delete
<div class="et_pb_menu_inner_container clearfix">
[1204] Fix | Delete
%9$s
[1205] Fix | Delete
<div class="et_pb_menu__wrap">
[1206] Fix | Delete
%10$s
[1207] Fix | Delete
<div class="et_pb_menu__menu">
[1208] Fix | Delete
%1$s
[1209] Fix | Delete
</div>
[1210] Fix | Delete
%11$s
[1211] Fix | Delete
%12$s
[1212] Fix | Delete
</div>
[1213] Fix | Delete
%13$s
[1214] Fix | Delete
</div>
[1215] Fix | Delete
</div>',
[1216] Fix | Delete
$menu,
[1217] Fix | Delete
$style,
[1218] Fix | Delete
$this->module_classname( $render_slug ),
[1219] Fix | Delete
$this->module_id(),
[1220] Fix | Delete
$video_background,
[1221] Fix | Delete
$parallax_image_background,
[1222] Fix | Delete
et_core_esc_previously( $data_background_layout ),
[1223] Fix | Delete
et_core_esc_previously( $data_background_layout_hover ),
[1224] Fix | Delete
et_core_esc_previously( $this->render_logo() ),
[1225] Fix | Delete
et_core_esc_previously( $this->render_cart() ),
[1226] Fix | Delete
et_core_esc_previously( $this->render_search() ),
[1227] Fix | Delete
et_core_esc_previously( $mobile_menu ),
[1228] Fix | Delete
et_core_esc_previously( $this->render_search_form() )
[1229] Fix | Delete
);
[1230] Fix | Delete
} else {
[1231] Fix | Delete
$output = sprintf(
[1232] Fix | Delete
'<div%4$s class="%3$s"%2$s%7$s%8$s>
[1233] Fix | Delete
%6$s
[1234] Fix | Delete
%5$s
[1235] Fix | Delete
<div class="et_pb_menu_inner_container clearfix">
[1236] Fix | Delete
%9$s
[1237] Fix | Delete
<div class="et_pb_menu__wrap">
[1238] Fix | Delete
<div class="et_pb_menu__menu">
[1239] Fix | Delete
%1$s
[1240] Fix | Delete
</div>
[1241] Fix | Delete
%10$s
[1242] Fix | Delete
%11$s
[1243] Fix | Delete
%12$s
[1244] Fix | Delete
</div>
[1245] Fix | Delete
%13$s
[1246] Fix | Delete
</div>
[1247] Fix | Delete
</div>',
[1248] Fix | Delete
$menu,
[1249] Fix | Delete
$style,
[1250] Fix | Delete
$this->module_classname( $render_slug ),
[1251] Fix | Delete
$this->module_id(),
[1252] Fix | Delete
$video_background,
[1253] Fix | Delete
$parallax_image_background,
[1254] Fix | Delete
et_core_esc_previously( $data_background_layout ),
[1255] Fix | Delete
et_core_esc_previously( $data_background_layout_hover ),
[1256] Fix | Delete
et_core_esc_previously( $this->render_logo() ),
[1257] Fix | Delete
et_core_esc_previously( $this->render_cart() ),
[1258] Fix | Delete
et_core_esc_previously( $this->render_search() ),
[1259] Fix | Delete
et_core_esc_previously( $mobile_menu ),
[1260] Fix | Delete
et_core_esc_previously( $this->render_search_form() )
[1261] Fix | Delete
);
[1262] Fix | Delete
}
[1263] Fix | Delete
[1264] Fix | Delete
return $output;
[1265] Fix | Delete
}
[1266] Fix | Delete
}
[1267] Fix | Delete
[1268] Fix | Delete
new ET_Builder_Module_Menu;
[1269] Fix | Delete
[1270] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function