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
/home/sportsfe.../httpdocs/wp-conte.../plugins/themify-.../template...
File: template-gallery-showcase.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Template Gallery Showcase
[2] Fix | Delete
*
[3] Fix | Delete
* This template can be overridden by copying it to your child_theme_folder/themify-builder/template-gallery-showcase.php.
[4] Fix | Delete
*
[5] Fix | Delete
* Access original fields: $args['mod_settings']
[6] Fix | Delete
* @author Themify
[7] Fix | Delete
*/
[8] Fix | Delete
[9] Fix | Delete
defined( 'ABSPATH' ) || exit;
[10] Fix | Delete
[11] Fix | Delete
$settings=$args['settings'];
[12] Fix | Delete
if ( is_object( $settings['gallery_images'][0] ) ) :
[13] Fix | Delete
$caption = $settings['gallery_images'][0]->post_excerpt;
[14] Fix | Delete
$title = $settings['gallery_images'][0]->post_title;
[15] Fix | Delete
$image_attr=array('src'=>$settings['gallery_images'][0]->ID, 'w'=> $settings['s_image_w_gallery'], 'h'=> $settings['s_image_h_gallery'],'image_size'=>$settings['s_image_size_gallery']);
[16] Fix | Delete
?>
[17] Fix | Delete
<div class="gallery-showcase-image">
[18] Fix | Delete
<div class="image-wrapper gallery-icon tf_rel">
[19] Fix | Delete
<?php echo themify_get_image($image_attr);?>
[20] Fix | Delete
<?php if(($title!=='' && $settings['gallery_image_title'] === 'yes') || ($caption!=='' && $settings['gallery_exclude_caption'] !== 'yes')) : ?>
[21] Fix | Delete
<div class="gallery-showcase-title tf_hidden tf_abs tf_textl">
[22] Fix | Delete
<?php
[23] Fix | Delete
($title!=='' && $settings['gallery_image_title'] === 'yes')
[24] Fix | Delete
&& printf( '<strong class="gallery-showcase-title-text">%s</strong>'
[25] Fix | Delete
, esc_attr( $title ) );
[26] Fix | Delete
[27] Fix | Delete
($caption!=='' && $settings['gallery_exclude_caption'] !== 'yes')
[28] Fix | Delete
&& printf( '<span class="gallery-showcase-caption">%s</span>'
[29] Fix | Delete
, esc_attr( $caption ) );
[30] Fix | Delete
?>
[31] Fix | Delete
</div>
[32] Fix | Delete
<?php endif; ?>
[33] Fix | Delete
</div>
[34] Fix | Delete
</div>
[35] Fix | Delete
<div class="gallery-images tf_hidden">
[36] Fix | Delete
<?php
[37] Fix | Delete
$image_attr=array('w'=>$settings['thumb_w_gallery'],'h'=>$settings['thumb_h_gallery'],'image_size'=>$settings['image_size_gallery']);
[38] Fix | Delete
foreach ($settings['gallery_images'] as $image):?>
[39] Fix | Delete
<div class="gallery-icon">
[40] Fix | Delete
<?php
[41] Fix | Delete
$link = themify_get_image(array('src'=>$image->ID, 'w'=>$settings['s_image_w_gallery'], 'h'=>$settings['s_image_h_gallery'],'urlonly'=>true,'image_size'=>$settings['s_image_size_gallery']));
[42] Fix | Delete
if ( ! empty( $link ) ) {
[43] Fix | Delete
echo '<a data-image="' . esc_url( $link ) . '" title="' . esc_attr($image->post_title ) . '" data-caption="' . esc_attr( $image->post_excerpt ) . '" href="#">';
[44] Fix | Delete
}
[45] Fix | Delete
$image_attr['src']=$image->ID;
[46] Fix | Delete
echo themify_get_image($image_attr);
[47] Fix | Delete
if ( ! empty( $link ) ) echo '</a>';
[48] Fix | Delete
?>
[49] Fix | Delete
</div>
[50] Fix | Delete
<?php endforeach;?>
[51] Fix | Delete
</div>
[52] Fix | Delete
<?php endif;
[53] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function