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: Slider.php
// Background Gradient.
[500] Fix | Delete
'use_background_color_gradient' => $this->props['use_background_color_gradient'],
[501] Fix | Delete
'use_background_color_gradient_tablet' => $this->props['use_background_color_gradient_tablet'],
[502] Fix | Delete
'use_background_color_gradient_phone' => $this->props['use_background_color_gradient_phone'],
[503] Fix | Delete
'use_background_color_gradient__hover' => isset( $this->props['use_background_color_gradient__hover'] ) ? $this->props['use_background_color_gradient__hover'] : '',
[504] Fix | Delete
'background_color_gradient_type' => $this->props['background_color_gradient_type'],
[505] Fix | Delete
'background_color_gradient_type_tablet' => $this->props['background_color_gradient_type_tablet'],
[506] Fix | Delete
'background_color_gradient_type_phone' => $this->props['background_color_gradient_type_phone'],
[507] Fix | Delete
'background_color_gradient_type__hover' => isset( $this->props['background_color_gradient_type__hover'] ) ? $this->props['background_color_gradient_type__hover'] : '',
[508] Fix | Delete
'background_color_gradient_direction' => $this->props['background_color_gradient_direction'],
[509] Fix | Delete
'background_color_gradient_direction_tablet' => $this->props['background_color_gradient_direction_tablet'],
[510] Fix | Delete
'background_color_gradient_direction_phone' => $this->props['background_color_gradient_direction_phone'],
[511] Fix | Delete
'background_color_gradient_direction__hover' => isset( $this->props['background_color_gradient_direction__hover'] ) ? $this->props['background_color_gradient_direction__hover'] : '',
[512] Fix | Delete
'background_color_gradient_direction_radial' => $this->props['background_color_gradient_direction_radial'],
[513] Fix | Delete
'background_color_gradient_direction_radial_tablet' => $this->props['background_color_gradient_direction_radial_tablet'],
[514] Fix | Delete
'background_color_gradient_direction_radial_phone' => $this->props['background_color_gradient_direction_radial_phone'],
[515] Fix | Delete
'background_color_gradient_direction_radial__hover' => isset( $this->props['background_color_gradient_direction_radial__hover'] ) ? $this->props['background_color_gradient_direction_radial__hover'] : '',
[516] Fix | Delete
'background_color_gradient_start' => $this->props['background_color_gradient_start'],
[517] Fix | Delete
'background_color_gradient_start_tablet' => $this->props['background_color_gradient_start_tablet'],
[518] Fix | Delete
'background_color_gradient_start_phone' => $this->props['background_color_gradient_start_phone'],
[519] Fix | Delete
'background_color_gradient_start__hover' => isset( $this->props['background_color_gradient_start__hover'] ) ? $this->props['background_color_gradient_start__hover'] : '',
[520] Fix | Delete
'background_color_gradient_end' => $this->props['background_color_gradient_end'],
[521] Fix | Delete
'background_color_gradient_end_tablet' => $this->props['background_color_gradient_end_tablet'],
[522] Fix | Delete
'background_color_gradient_end_phone' => $this->props['background_color_gradient_end_phone'],
[523] Fix | Delete
'background_color_gradient_end__hover' => isset( $this->props['background_color_gradient_end__hover'] ) ? $this->props['background_color_gradient_end__hover'] : '',
[524] Fix | Delete
'background_color_gradient_start_position' => $this->props['background_color_gradient_start_position'],
[525] Fix | Delete
'background_color_gradient_start_position_tablet' => $this->props['background_color_gradient_start_position_tablet'],
[526] Fix | Delete
'background_color_gradient_start_position_phone' => $this->props['background_color_gradient_start_position_phone'],
[527] Fix | Delete
'background_color_gradient_start_position__hover' => isset( $this->props['background_color_gradient_start_position__hover'] ) ? $this->props['background_color_gradient_start_position__hover'] : '',
[528] Fix | Delete
'background_color_gradient_end_position' => $this->props['background_color_gradient_end_position'],
[529] Fix | Delete
'background_color_gradient_end_position_tablet' => $this->props['background_color_gradient_end_position_tablet'],
[530] Fix | Delete
'background_color_gradient_end_position_phone' => $this->props['background_color_gradient_end_position_phone'],
[531] Fix | Delete
'background_color_gradient_end_position__hover' => isset( $this->props['background_color_gradient_end_position__hover'] ) ? $this->props['background_color_gradient_end_position__hover'] : '',
[532] Fix | Delete
'background_color_gradient_overlays_image' => $this->props['background_color_gradient_overlays_image'],
[533] Fix | Delete
'background_color_gradient_overlays_image_tablet' => $this->props['background_color_gradient_overlays_image_tablet'],
[534] Fix | Delete
'background_color_gradient_overlays_image_phone' => $this->props['background_color_gradient_overlays_image_phone'],
[535] Fix | Delete
'background_color_gradient_overlays_image__hover' => isset( $this->props['background_color_gradient_overlays_image__hover'] ) ? $this->props['background_color_gradient_overlays_image__hover'] : '',
[536] Fix | Delete
// Background Image.
[537] Fix | Delete
'background_enable_image' => $this->props['background_enable_image'],
[538] Fix | Delete
'background_enable_image_tablet' => $this->props['background_enable_image_tablet'],
[539] Fix | Delete
'background_enable_image_phone' => $this->props['background_enable_image_phone'],
[540] Fix | Delete
'background_enable_image__hover' => isset( $this->props['background_enable_image__hover'] ) ? $this->props['background_enable_image__hover'] : '',
[541] Fix | Delete
'background_image' => $this->props['background_image'],
[542] Fix | Delete
'background_image_tablet' => $this->props['background_image_tablet'],
[543] Fix | Delete
'background_image_phone' => $this->props['background_image_phone'],
[544] Fix | Delete
'background_image__hover' => isset( $this->props['background_image__hover'] ) ? $this->props['background_image__hover'] : '',
[545] Fix | Delete
'background_size' => $this->props['background_size'],
[546] Fix | Delete
'background_size_tablet' => $this->props['background_size_tablet'],
[547] Fix | Delete
'background_size_phone' => $this->props['background_size_phone'],
[548] Fix | Delete
'background_size__hover' => isset( $this->props['background_size__hover'] ) ? $this->props['background_size__hover'] : '',
[549] Fix | Delete
'background_position' => $this->props['background_position'],
[550] Fix | Delete
'background_position_tablet' => $this->props['background_position_tablet'],
[551] Fix | Delete
'background_position_phone' => $this->props['background_position_phone'],
[552] Fix | Delete
'background_position__hover' => isset( $this->props['background_position__hover'] ) ? $this->props['background_position__hover'] : '',
[553] Fix | Delete
'background_repeat' => $this->props['background_repeat'],
[554] Fix | Delete
'background_repeat_tablet' => $this->props['background_repeat_tablet'],
[555] Fix | Delete
'background_repeat_phone' => $this->props['background_repeat_phone'],
[556] Fix | Delete
'background_repeat__hover' => isset( $this->props['background_repeat__hover'] ) ? $this->props['background_repeat__hover'] : '',
[557] Fix | Delete
'background_blend' => $this->props['background_blend'],
[558] Fix | Delete
'background_blend_tablet' => $this->props['background_blend_tablet'],
[559] Fix | Delete
'background_blend_phone' => $this->props['background_blend_phone'],
[560] Fix | Delete
'background_blend__hover' => isset( $this->props['background_blend__hover'] ) ? $this->props['background_blend__hover'] : '',
[561] Fix | Delete
'parallax' => $this->props['parallax'],
[562] Fix | Delete
'parallax_tablet' => $this->props['parallax_tablet'],
[563] Fix | Delete
'parallax_phone' => $this->props['parallax_phone'],
[564] Fix | Delete
'parallax__hover' => isset( $this->props['parallax__hover'] ) ? $this->props['parallax__hover'] : '',
[565] Fix | Delete
'parallax_method' => $this->props['parallax_method'],
[566] Fix | Delete
'parallax_method_tablet' => $this->props['parallax_method_tablet'],
[567] Fix | Delete
'parallax_method_phone' => $this->props['parallax_method_phone'],
[568] Fix | Delete
'parallax_method__hover' => isset( $this->props['parallax_method__hover'] ) ? $this->props['parallax_method__hover'] : '',
[569] Fix | Delete
// Background Video.
[570] Fix | Delete
'background_enable_video_mp4' => $this->props['background_enable_video_mp4'],
[571] Fix | Delete
'background_enable_video_mp4_tablet' => $this->props['background_enable_video_mp4_tablet'],
[572] Fix | Delete
'background_enable_video_mp4_phone' => $this->props['background_enable_video_mp4_phone'],
[573] Fix | Delete
'background_enable_video_mp4__hover' => isset( $this->props['background_enable_video_mp4__hover'] ) ? $this->props['background_enable_video_mp4__hover'] : '',
[574] Fix | Delete
'background_enable_video_webm' => $this->props['background_enable_video_webm'],
[575] Fix | Delete
'background_enable_video_webm_tablet' => $this->props['background_enable_video_webm_tablet'],
[576] Fix | Delete
'background_enable_video_webm_phone' => $this->props['background_enable_video_webm_phone'],
[577] Fix | Delete
'background_enable_video_webm__hover' => isset( $this->props['background_enable_video_webm__hover'] ) ? $this->props['background_enable_video_webm__hover'] : '',
[578] Fix | Delete
'background_video_mp4' => $this->props['background_video_mp4'],
[579] Fix | Delete
'background_video_mp4_tablet' => $this->props['background_video_mp4_tablet'],
[580] Fix | Delete
'background_video_mp4_phone' => $this->props['background_video_mp4_phone'],
[581] Fix | Delete
'background_video_mp4__hover' => isset( $this->props['background_video_mp4__hover'] ) ? $this->props['background_video_mp4__hover'] : '',
[582] Fix | Delete
'background_video_webm' => $this->props['background_video_webm'],
[583] Fix | Delete
'background_video_webm_tablet' => $this->props['background_video_webm_tablet'],
[584] Fix | Delete
'background_video_webm_phone' => $this->props['background_video_webm_phone'],
[585] Fix | Delete
'background_video_webm__hover' => isset( $this->props['background_video_webm__hover'] ) ? $this->props['background_video_webm__hover'] : '',
[586] Fix | Delete
'background_video_width' => $this->props['background_video_width'],
[587] Fix | Delete
'background_video_width_tablet' => $this->props['background_video_width_tablet'],
[588] Fix | Delete
'background_video_width_phone' => $this->props['background_video_width_phone'],
[589] Fix | Delete
'background_video_width__hover' => isset( $this->props['background_video_width__hover'] ) ? $this->props['background_video_width__hover'] : '',
[590] Fix | Delete
'background_video_height' => $this->props['background_video_height'],
[591] Fix | Delete
'background_video_height_tablet' => $this->props['background_video_height_tablet'],
[592] Fix | Delete
'background_video_height_phone' => $this->props['background_video_height_phone'],
[593] Fix | Delete
'background_video_height__hover' => isset( $this->props['background_video_height__hover'] ) ? $this->props['background_video_height__hover'] : '',
[594] Fix | Delete
'header_level' => $this->props['header_level'],
[595] Fix | Delete
'use_bg_overlay' => $this->props['use_bg_overlay'],
[596] Fix | Delete
'bg_overlay_color' => $bg_overlay_color,
[597] Fix | Delete
'bg_overlay_color_slider_last_edited' => $this->props['bg_overlay_color_last_edited'],
[598] Fix | Delete
'bg_overlay_color_tablet' => $bg_overlay_color_tablet,
[599] Fix | Delete
'bg_overlay_color_phone' => $bg_overlay_color_phone,
[600] Fix | Delete
'use_text_overlay' => $this->props['use_text_overlay'],
[601] Fix | Delete
'text_overlay_color' => $text_overlay_color,
[602] Fix | Delete
'text_overlay_color_slider_last_edited' => $this->props['text_overlay_color_last_edited'],
[603] Fix | Delete
'text_overlay_color_tablet' => $text_overlay_color_tablet,
[604] Fix | Delete
'text_overlay_color_phone' => $text_overlay_color_phone,
[605] Fix | Delete
'text_border_radius' => $text_border_radius,
[606] Fix | Delete
'text_border_radius_slider_last_edited' => $this->props['text_border_radius_last_edited'],
[607] Fix | Delete
'text_border_radius_tablet' => $text_border_radius_tablet,
[608] Fix | Delete
'text_border_radius_phone' => $text_border_radius_phone,
[609] Fix | Delete
'arrows_custom_color' => $arrows_custom_color,
[610] Fix | Delete
'arrows_custom_color_slider_last_edited' => $this->props['arrows_custom_color_last_edited'],
[611] Fix | Delete
'arrows_custom_color_tablet' => $arrows_custom_color_tablet,
[612] Fix | Delete
'arrows_custom_color_phone' => $arrows_custom_color_phone,
[613] Fix | Delete
'dot_nav_custom_color' => $dot_nav_custom_color,
[614] Fix | Delete
'dot_nav_custom_color_slider_last_edited' => $this->props['dot_nav_custom_color_last_edited'],
[615] Fix | Delete
'dot_nav_custom_color_tablet' => $dot_nav_custom_color_tablet,
[616] Fix | Delete
'dot_nav_custom_color_phone' => $dot_nav_custom_color_phone,
[617] Fix | Delete
);
[618] Fix | Delete
[619] Fix | Delete
// Hover Options attribute doesn't have field definition and rendered on the fly, thus the use of array_get()
[620] Fix | Delete
$background_hover_enabled_key = et_pb_hover_options()->get_hover_enabled_field( 'background' );
[621] Fix | Delete
$background_color_hover_key = et_pb_hover_options()->get_hover_field( 'background_color' );
[622] Fix | Delete
[623] Fix | Delete
$et_pb_slider[ $background_hover_enabled_key ] = self::$_->array_get( $this->props, $background_hover_enabled_key, '' );
[624] Fix | Delete
$et_pb_slider[ $background_color_hover_key ] = self::$_->array_get( $this->props, $background_color_hover_key, '' );
[625] Fix | Delete
}
[626] Fix | Delete
[627] Fix | Delete
function render( $attrs, $content = null, $render_slug ) {
[628] Fix | Delete
$multi_view = et_pb_multi_view_options( $this );
[629] Fix | Delete
$show_arrows = $this->props['show_arrows'];
[630] Fix | Delete
$show_pagination = $this->props['show_pagination'];
[631] Fix | Delete
$parallax = $this->props['parallax'];
[632] Fix | Delete
$parallax_method = $this->props['parallax_method'];
[633] Fix | Delete
$auto = $this->props['auto'];
[634] Fix | Delete
$auto_speed = $this->props['auto_speed'];
[635] Fix | Delete
$auto_ignore_hover = $this->props['auto_ignore_hover'];
[636] Fix | Delete
$body_font_size = $this->props['body_font_size'];
[637] Fix | Delete
$show_content_on_mobile = $this->props['show_content_on_mobile'];
[638] Fix | Delete
$show_cta_on_mobile = $this->props['show_cta_on_mobile'];
[639] Fix | Delete
$show_image_video_mobile = $this->props['show_image_video_mobile'];
[640] Fix | Delete
$background_position = $this->props['background_position'];
[641] Fix | Delete
$background_size = $this->props['background_size'];
[642] Fix | Delete
[643] Fix | Delete
global $et_pb_slider_has_video, $et_pb_slider_parallax, $et_pb_slider_parallax_method, $et_pb_slider_show_mobile, $et_pb_slider_custom_icon, $et_pb_slider_custom_icon_tablet, $et_pb_slider_custom_icon_phone, $et_pb_slider;
[644] Fix | Delete
[645] Fix | Delete
$content = $this->content;
[646] Fix | Delete
[647] Fix | Delete
$video_background = $this->video_background();
[648] Fix | Delete
$parallax_image_background = $this->get_parallax_image_background();
[649] Fix | Delete
[650] Fix | Delete
if ( '' !== $background_position && 'default' !== $background_position && 'off' === $parallax ) {
[651] Fix | Delete
$processed_position = str_replace( '_', ' ', $background_position );
[652] Fix | Delete
[653] Fix | Delete
ET_Builder_Module::set_style( $render_slug, array(
[654] Fix | Delete
'selector' => '%%order_class%% .et_pb_slide',
[655] Fix | Delete
'declaration' => sprintf(
[656] Fix | Delete
'background-position: %1$s;',
[657] Fix | Delete
esc_html( $processed_position )
[658] Fix | Delete
),
[659] Fix | Delete
) );
[660] Fix | Delete
}
[661] Fix | Delete
[662] Fix | Delete
// Handle slider's previous background size default value ("default") as well
[663] Fix | Delete
if ( '' !== $background_size && 'default' !== $background_size && 'off' === $parallax ) {
[664] Fix | Delete
ET_Builder_Module::set_style( $render_slug, array(
[665] Fix | Delete
'selector' => '%%order_class%% .et_pb_slide',
[666] Fix | Delete
'declaration' => sprintf(
[667] Fix | Delete
'-moz-background-size: %1$s;
[668] Fix | Delete
-webkit-background-size: %1$s;
[669] Fix | Delete
background-size: %1$s;',
[670] Fix | Delete
esc_html( $background_size )
[671] Fix | Delete
),
[672] Fix | Delete
) );
[673] Fix | Delete
}
[674] Fix | Delete
[675] Fix | Delete
// Module classnames
[676] Fix | Delete
$this->add_classname( 'et_pb_slider_fullwidth_off' );
[677] Fix | Delete
[678] Fix | Delete
if ( ! $multi_view->has_value( 'show_arrows', 'on' ) ) {
[679] Fix | Delete
$this->add_classname( 'et_pb_slider_no_arrows' );
[680] Fix | Delete
}
[681] Fix | Delete
[682] Fix | Delete
if ( ! $multi_view->has_value( 'show_pagination', 'on' ) ) {
[683] Fix | Delete
$this->add_classname( 'et_pb_slider_no_pagination' );
[684] Fix | Delete
}
[685] Fix | Delete
[686] Fix | Delete
if ( 'on' === $parallax ) {
[687] Fix | Delete
$this->add_classname( 'et_pb_slider_parallax' );
[688] Fix | Delete
}
[689] Fix | Delete
[690] Fix | Delete
if ( 'on' === $auto ) {
[691] Fix | Delete
$this->add_classname( array(
[692] Fix | Delete
'et_slider_auto',
[693] Fix | Delete
"et_slider_speed_{$auto_speed}",
[694] Fix | Delete
) );
[695] Fix | Delete
}
[696] Fix | Delete
[697] Fix | Delete
if ( 'on' === $auto_ignore_hover ) {
[698] Fix | Delete
$this->add_classname( 'et_slider_auto_ignore_hover' );
[699] Fix | Delete
}
[700] Fix | Delete
[701] Fix | Delete
if ( 'on' === $show_image_video_mobile ) {
[702] Fix | Delete
$this->add_classname( 'et_pb_slider_show_image' );
[703] Fix | Delete
}
[704] Fix | Delete
[705] Fix | Delete
$this->generate_responsive_hover_style( 'arrows_custom_color', et_pb_slider_options()->get_arrows_selector(), 'color' );
[706] Fix | Delete
$this->generate_responsive_hover_style( 'dot_nav_custom_color', et_pb_slider_options()->get_dots_selector(), 'background-color' );
[707] Fix | Delete
[708] Fix | Delete
$multi_view_data_attr = $multi_view->render_attrs( array(
[709] Fix | Delete
'classes' => array(
[710] Fix | Delete
'et_pb_slider_no_arrows' => array(
[711] Fix | Delete
'show_arrows' => 'off',
[712] Fix | Delete
),
[713] Fix | Delete
'et_pb_slider_no_pagination' => array(
[714] Fix | Delete
'show_pagination' => 'off',
[715] Fix | Delete
),
[716] Fix | Delete
),
[717] Fix | Delete
) );
[718] Fix | Delete
[719] Fix | Delete
$output = sprintf(
[720] Fix | Delete
'<div%3$s class="%1$s"%5$s>
[721] Fix | Delete
<div class="et_pb_slides">
[722] Fix | Delete
%2$s
[723] Fix | Delete
</div> <!-- .et_pb_slides -->
[724] Fix | Delete
%4$s
[725] Fix | Delete
</div> <!-- .et_pb_slider -->
[726] Fix | Delete
',
[727] Fix | Delete
$this->module_classname( $render_slug ),
[728] Fix | Delete
$content,
[729] Fix | Delete
$this->module_id(),
[730] Fix | Delete
$this->inner_shadow_back_compatibility( $render_slug ),
[731] Fix | Delete
$multi_view_data_attr
[732] Fix | Delete
);
[733] Fix | Delete
[734] Fix | Delete
// Reset passed slider item value
[735] Fix | Delete
$et_pb_slider = array();
[736] Fix | Delete
[737] Fix | Delete
return $output;
[738] Fix | Delete
}
[739] Fix | Delete
[740] Fix | Delete
private function inner_shadow_back_compatibility( $functions_name ) {
[741] Fix | Delete
$utils = ET_Core_Data_Utils::instance();
[742] Fix | Delete
$atts = $this->props;
[743] Fix | Delete
$style = '';
[744] Fix | Delete
[745] Fix | Delete
if (
[746] Fix | Delete
version_compare( $utils->array_get( $atts, '_builder_version', '3.0.93' ), '3.0.99', 'lt' )
[747] Fix | Delete
) {
[748] Fix | Delete
$class = self::get_module_order_class( $functions_name );
[749] Fix | Delete
$style = sprintf(
[750] Fix | Delete
'<style>%1$s</style>',
[751] Fix | Delete
sprintf(
[752] Fix | Delete
'.%1$s.et_pb_slider .et_pb_slide {'
[753] Fix | Delete
. '-webkit-box-shadow: none; '
[754] Fix | Delete
. '-moz-box-shadow: none; '
[755] Fix | Delete
. 'box-shadow: none; '
[756] Fix | Delete
.'}',
[757] Fix | Delete
esc_attr( $class )
[758] Fix | Delete
)
[759] Fix | Delete
);
[760] Fix | Delete
[761] Fix | Delete
if ( 'off' !== $utils->array_get( $atts, 'show_inner_shadow' ) ) {
[762] Fix | Delete
$style .= sprintf(
[763] Fix | Delete
'<style>%1$s</style>',
[764] Fix | Delete
sprintf(
[765] Fix | Delete
'.%1$s > .box-shadow-overlay { '
[766] Fix | Delete
. '-webkit-box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1); '
[767] Fix | Delete
. '-moz-box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1); '
[768] Fix | Delete
. 'box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1); '
[769] Fix | Delete
. '}',
[770] Fix | Delete
esc_attr( $class )
[771] Fix | Delete
)
[772] Fix | Delete
);
[773] Fix | Delete
}
[774] Fix | Delete
}
[775] Fix | Delete
[776] Fix | Delete
return $style;
[777] Fix | Delete
}
[778] Fix | Delete
}
[779] Fix | Delete
[780] Fix | Delete
new ET_Builder_Module_Slider;
[781] Fix | Delete
[782] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function