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