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-lightboxed.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Template Gallery Lightboxed
[2] Fix | Delete
*
[3] Fix | Delete
* This template can be overridden by copying it to your child_theme_folder/themify-builder/template-gallery-lightboxed.php.
[4] Fix | Delete
*
[5] Fix | Delete
* Access original fields: $fields_args
[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
$alt = isset($settings['gallery_images'][0]->post_excerpt) ? $settings['gallery_images'][0]->post_excerpt : '';
[13] Fix | Delete
[14] Fix | Delete
if(!empty($settings['thumbnail_gallery'])){
[15] Fix | Delete
$thumbnail = $settings['thumbnail_gallery'];
[16] Fix | Delete
$t_post = get_post(themify_get_attachment_id_from_url($settings['thumbnail_gallery']));
[17] Fix | Delete
}
[18] Fix | Delete
else{
[19] Fix | Delete
/* if no thumbnail is set for the gallery, use the first image */
[20] Fix | Delete
$thumbnail = wp_get_attachment_url($settings['gallery_images'][0]->ID);
[21] Fix | Delete
$t_post=null;
[22] Fix | Delete
}
[23] Fix | Delete
$thumbnail = themify_get_image(array('src'=>$thumbnail,'w'=>$settings['thumb_w_gallery'],'h'=>$settings['thumb_h_gallery'],'alt'=>$alt));
[24] Fix | Delete
foreach ($settings['gallery_images'] as $key => $image):
[25] Fix | Delete
$is_thumbnail = 0 === $key && !empty($settings['thumbnail_gallery']);
[26] Fix | Delete
?>
[27] Fix | Delete
<dl class="gallery-item<?php if($key===0):?> tf_hidden<?php endif;?>"<?php if($key!==0):?> style="display:none"<?php endif;?>>
[28] Fix | Delete
<?php
[29] Fix | Delete
$link = wp_get_attachment_url($image->ID);
[30] Fix | Delete
$title = $is_thumbnail===true && $t_post!==null? $t_post->post_title : $image->post_title;
[31] Fix | Delete
$caption = $is_thumbnail===true && $t_post!==null? $t_post->post_excerpt : $image->post_excerpt;
[32] Fix | Delete
if ( ! empty( $link ) ) : ?>
[33] Fix | Delete
<dt class="gallery-icon">
[34] Fix | Delete
<a data-title="<?php esc_attr_e($settings['lightbox_title']) ?>" href="<?php echo esc_url($link) ?>" title="<?php esc_attr_e($title) ?>" data-rel="<?php echo $args['module_ID']; ?>" class="themify_lightbox"<?php echo ($is_thumbnail===true && $t_post!==null)?' data-t="'.$image->post_title.'"':''; ?>>
[35] Fix | Delete
<?php endif; ?>
[36] Fix | Delete
[37] Fix | Delete
<?php echo $key === 0 ? $thumbnail : wp_get_attachment_image_src($image->ID, 'full')[1]; ?>
[38] Fix | Delete
[39] Fix | Delete
<?php if ( ! empty( $link ) ) : ?>
[40] Fix | Delete
</a>
[41] Fix | Delete
</dt>
[42] Fix | Delete
<?php endif; ?>
[43] Fix | Delete
<?php if (($settings['gallery_image_title'] === 'yes' && $title!=='' ) || ( $settings['gallery_exclude_caption'] !== 'yes' && $caption!=='' )) : ?>
[44] Fix | Delete
<dd lass="wp-caption-text gallery-caption">
[45] Fix | Delete
<?php if ($settings['gallery_image_title'] === 'yes' && $title!==''): ?>
[46] Fix | Delete
<strong class="themify_image_title tf_block"><?php echo $title; ?></strong>
[47] Fix | Delete
<?php endif; ?>
[48] Fix | Delete
<?php if ($settings['gallery_exclude_caption'] !== 'yes' && $caption!==''): ?>
[49] Fix | Delete
<span class="themify_image_caption"><?php echo $caption; ?></span>
[50] Fix | Delete
<?php endif ?>
[51] Fix | Delete
</dd>
[52] Fix | Delete
<?php endif ?>
[53] Fix | Delete
</dl>
[54] Fix | Delete
[55] Fix | Delete
<?php endforeach; // end loop
[56] Fix | Delete
$t_post = null;
[57] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function