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: Gallery.php
$auto = $this->props['auto'];
[500] Fix | Delete
$auto_speed = $this->props['auto_speed'];
[501] Fix | Delete
$orientation = $this->props['orientation'];
[502] Fix | Delete
$pagination_text_align = $this->get_pagination_alignment();
[503] Fix | Delete
$header_level = $this->props['title_level'];
[504] Fix | Delete
$zoom_icon_color_values = et_pb_responsive_options()->get_property_values( $this->props, 'zoom_icon_color' );
[505] Fix | Delete
$hover_overlay_color_values = et_pb_responsive_options()->get_property_values( $this->props, 'hover_overlay_color' );
[506] Fix | Delete
[507] Fix | Delete
$hover_icon = $this->props['hover_icon'];
[508] Fix | Delete
$hover_icon_values = et_pb_responsive_options()->get_property_values( $this->props, 'hover_icon' );
[509] Fix | Delete
$hover_icon_tablet = isset( $hover_icon_values['tablet'] ) ? $hover_icon_values['tablet'] : '';
[510] Fix | Delete
$hover_icon_phone = isset( $hover_icon_values['phone'] ) ? $hover_icon_values['phone'] : '';
[511] Fix | Delete
[512] Fix | Delete
// Zoom Icon Color.
[513] Fix | Delete
et_pb_responsive_options()->generate_responsive_css( $zoom_icon_color_values, '%%order_class%% .et_overlay:before', 'color', $render_slug, ' !important;', 'color' );
[514] Fix | Delete
[515] Fix | Delete
// Hover Overlay Color.
[516] Fix | Delete
et_pb_responsive_options()->generate_responsive_css( $hover_overlay_color_values, '%%order_class%% .et_overlay', 'background-color', $render_slug, '', 'color' );
[517] Fix | Delete
et_pb_responsive_options()->generate_responsive_css( $hover_overlay_color_values, '%%order_class%% .et_overlay', 'border-color', $render_slug, '', 'color' );
[518] Fix | Delete
[519] Fix | Delete
// Get gallery item data
[520] Fix | Delete
$attachments = $this->get_attachments( array(
[521] Fix | Delete
'gallery_ids' => $gallery_ids,
[522] Fix | Delete
'gallery_orderby' => $gallery_orderby,
[523] Fix | Delete
'fullwidth' => $fullwidth,
[524] Fix | Delete
'orientation' => $orientation,
[525] Fix | Delete
) );
[526] Fix | Delete
[527] Fix | Delete
if ( empty( $attachments ) ) {
[528] Fix | Delete
return '';
[529] Fix | Delete
}
[530] Fix | Delete
[531] Fix | Delete
wp_enqueue_script( 'hashchange' );
[532] Fix | Delete
[533] Fix | Delete
$video_background = $this->video_background();
[534] Fix | Delete
$parallax_image_background = $this->get_parallax_image_background();
[535] Fix | Delete
$posts_number = 0 === intval( $posts_number ) ? 4 : intval( $posts_number );
[536] Fix | Delete
[537] Fix | Delete
// Module classnames
[538] Fix | Delete
$this->add_classname( array(
[539] Fix | Delete
$this->get_text_orientation_classname(),
[540] Fix | Delete
) );
[541] Fix | Delete
[542] Fix | Delete
// Background layout class names.
[543] Fix | Delete
$background_layout_class_names = et_pb_background_layout_options()->get_background_layout_class( $this->props );
[544] Fix | Delete
$this->add_classname( $background_layout_class_names );
[545] Fix | Delete
[546] Fix | Delete
if ( 'on' === $fullwidth ) {
[547] Fix | Delete
$this->add_classname( array(
[548] Fix | Delete
'et_pb_slider',
[549] Fix | Delete
'et_pb_gallery_fullwidth',
[550] Fix | Delete
) );
[551] Fix | Delete
} else {
[552] Fix | Delete
$this->add_classname( 'et_pb_gallery_grid' );
[553] Fix | Delete
}
[554] Fix | Delete
[555] Fix | Delete
if ( 'on' === $auto && 'on' === $fullwidth ) {
[556] Fix | Delete
$this->add_classname( array(
[557] Fix | Delete
'et_slider_auto',
[558] Fix | Delete
"et_slider_speed_{$auto_speed}",
[559] Fix | Delete
'clearfix',
[560] Fix | Delete
) );
[561] Fix | Delete
}
[562] Fix | Delete
[563] Fix | Delete
// Background layout data attributes.
[564] Fix | Delete
$data_background_layout = et_pb_background_layout_options()->get_background_layout_attrs( $this->props );
[565] Fix | Delete
[566] Fix | Delete
$output = sprintf(
[567] Fix | Delete
'<div%1$s class="%2$s"%4$s>%5$s%6$s
[568] Fix | Delete
<div class="et_pb_gallery_items et_post_gallery clearfix" data-per_page="%3$d">',
[569] Fix | Delete
$this->module_id(),
[570] Fix | Delete
$this->module_classname( $render_slug ),
[571] Fix | Delete
esc_attr( $posts_number ),
[572] Fix | Delete
et_core_esc_previously( $data_background_layout ),
[573] Fix | Delete
$parallax_image_background,
[574] Fix | Delete
$video_background
[575] Fix | Delete
);
[576] Fix | Delete
[577] Fix | Delete
// Images: Add CSS Filters and Mix Blend Mode rules (if set)
[578] Fix | Delete
if ( array_key_exists( 'image', $this->advanced_fields ) && array_key_exists( 'css', $this->advanced_fields['image'] ) ) {
[579] Fix | Delete
$generate_css_filters_item = $this->generate_css_filters(
[580] Fix | Delete
$render_slug,
[581] Fix | Delete
'child_',
[582] Fix | Delete
self::$data_utils->array_get( $this->advanced_fields['image']['css'], 'main', '%%order_class%%' )
[583] Fix | Delete
);
[584] Fix | Delete
}
[585] Fix | Delete
[586] Fix | Delete
$images_count = 0;
[587] Fix | Delete
[588] Fix | Delete
foreach ( $attachments as $id => $attachment ) {
[589] Fix | Delete
$data_icon = '' !== $hover_icon
[590] Fix | Delete
? sprintf(
[591] Fix | Delete
' data-icon="%1$s"',
[592] Fix | Delete
esc_attr( et_pb_process_font_icon( $hover_icon ) )
[593] Fix | Delete
)
[594] Fix | Delete
: '';
[595] Fix | Delete
[596] Fix | Delete
$data_icon_tablet = '' !== $hover_icon_tablet
[597] Fix | Delete
? sprintf(
[598] Fix | Delete
' data-icon-tablet="%1$s"',
[599] Fix | Delete
esc_attr( et_pb_process_font_icon( $hover_icon_tablet ) )
[600] Fix | Delete
)
[601] Fix | Delete
: '';
[602] Fix | Delete
[603] Fix | Delete
$data_icon_phone = '' !== $hover_icon_phone
[604] Fix | Delete
? sprintf(
[605] Fix | Delete
' data-icon-phone="%1$s"',
[606] Fix | Delete
esc_attr( et_pb_process_font_icon( $hover_icon_phone ) )
[607] Fix | Delete
)
[608] Fix | Delete
: '';
[609] Fix | Delete
[610] Fix | Delete
$image_attrs = array(
[611] Fix | Delete
'alt' => $attachment->image_alt_text,
[612] Fix | Delete
);
[613] Fix | Delete
[614] Fix | Delete
if ( 'on' !== $fullwidth ) {
[615] Fix | Delete
$image_attrs['srcset'] = $attachment->image_src_full[0] . ' 479w, ' . $attachment->image_src_thumb[0] . ' 480w';
[616] Fix | Delete
$image_attrs['sizes'] = '(max-width:479px) 479px, 100vw';
[617] Fix | Delete
}
[618] Fix | Delete
[619] Fix | Delete
$image_output = sprintf(
[620] Fix | Delete
'<a href="%1$s" title="%2$s">
[621] Fix | Delete
%3$s
[622] Fix | Delete
<span class="et_overlay%4$s%6$s%8$s"%5$s%7$s%9$s></span>
[623] Fix | Delete
</a>',
[624] Fix | Delete
esc_url( $attachment->image_src_full[0] ),
[625] Fix | Delete
esc_attr( $attachment->post_title ),
[626] Fix | Delete
$this->render_image( $attachment->image_src_thumb[0], $image_attrs, false ),
[627] Fix | Delete
( '' !== $hover_icon ? ' et_pb_inline_icon' : '' ),
[628] Fix | Delete
$data_icon,
[629] Fix | Delete
( '' !== $hover_icon_tablet ? ' et_pb_inline_icon_tablet' : '' ),
[630] Fix | Delete
$data_icon_tablet,
[631] Fix | Delete
( '' !== $hover_icon_phone ? ' et_pb_inline_icon_phone' : '' ),
[632] Fix | Delete
$data_icon_phone
[633] Fix | Delete
);
[634] Fix | Delete
[635] Fix | Delete
$gallery_order = self::_get_index( array( self::INDEX_MODULE_ORDER, $render_slug ) );
[636] Fix | Delete
$item_class = sprintf( ' et_pb_gallery_item_%1$s_%2$s', $gallery_order, $images_count );
[637] Fix | Delete
[638] Fix | Delete
$output .= sprintf(
[639] Fix | Delete
'<div class="et_pb_gallery_item%2$s%1$s%3$s%4$s">',
[640] Fix | Delete
esc_attr( ' ' . implode( ' ', $background_layout_class_names ) ),
[641] Fix | Delete
( 'on' !== $fullwidth ? ' et_pb_grid_item' : '' ),
[642] Fix | Delete
$generate_css_filters_item,
[643] Fix | Delete
$item_class
[644] Fix | Delete
);
[645] Fix | Delete
[646] Fix | Delete
$images_count++;
[647] Fix | Delete
[648] Fix | Delete
$output .= "
[649] Fix | Delete
<div class='et_pb_gallery_image {$orientation}'>
[650] Fix | Delete
$image_output
[651] Fix | Delete
</div>";
[652] Fix | Delete
[653] Fix | Delete
if ( 'on' !== $fullwidth && $multi_view->has_value( 'show_title_and_caption', 'on' ) ) {
[654] Fix | Delete
if ( trim( $attachment->post_title ) ) {
[655] Fix | Delete
$output .= $multi_view->render_element( array(
[656] Fix | Delete
'tag' => et_pb_process_header_level( $header_level, 'h3' ),
[657] Fix | Delete
'content' => wptexturize( $attachment->post_title ),
[658] Fix | Delete
'attrs' => array(
[659] Fix | Delete
'class' => 'et_pb_gallery_title',
[660] Fix | Delete
),
[661] Fix | Delete
'visibility' => array(
[662] Fix | Delete
'show_title_and_caption' => 'on',
[663] Fix | Delete
),
[664] Fix | Delete
) );
[665] Fix | Delete
}
[666] Fix | Delete
if ( trim( $attachment->post_excerpt ) ) {
[667] Fix | Delete
$output .= $multi_view->render_element( array(
[668] Fix | Delete
'tag' => 'p',
[669] Fix | Delete
'content' => wptexturize( $attachment->post_excerpt ),
[670] Fix | Delete
'attrs' => array(
[671] Fix | Delete
'class' => 'et_pb_gallery_caption',
[672] Fix | Delete
),
[673] Fix | Delete
'visibility' => array(
[674] Fix | Delete
'show_title_and_caption' => 'on',
[675] Fix | Delete
),
[676] Fix | Delete
) );
[677] Fix | Delete
}
[678] Fix | Delete
}
[679] Fix | Delete
$output .= "</div>";
[680] Fix | Delete
}
[681] Fix | Delete
[682] Fix | Delete
$output .= "</div><!-- .et_pb_gallery_items -->";
[683] Fix | Delete
[684] Fix | Delete
if ( 'on' !== $fullwidth && $multi_view->has_value( 'show_pagination', 'on' ) ) {
[685] Fix | Delete
$pagination_classes = array( 'et_pb_gallery_pagination' );
[686] Fix | Delete
if ( 'justify' === $pagination_text_align ) {
[687] Fix | Delete
$pagination_classes[] = 'et_pb_gallery_pagination_justify';
[688] Fix | Delete
}
[689] Fix | Delete
[690] Fix | Delete
$output .= $multi_view->render_element( array(
[691] Fix | Delete
'tag' => 'div',
[692] Fix | Delete
'attrs' => array(
[693] Fix | Delete
'class' => implode( ' ', $pagination_classes ),
[694] Fix | Delete
),
[695] Fix | Delete
'visibility' => array(
[696] Fix | Delete
'show_pagination' => 'on',
[697] Fix | Delete
),
[698] Fix | Delete
) );
[699] Fix | Delete
}
[700] Fix | Delete
[701] Fix | Delete
$output .= "</div><!-- .et_pb_gallery -->";
[702] Fix | Delete
[703] Fix | Delete
return $output;
[704] Fix | Delete
}
[705] Fix | Delete
}
[706] Fix | Delete
[707] Fix | Delete
new ET_Builder_Module_Gallery;
[708] Fix | Delete
[709] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function