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.../wc/loop
File: image.php
<?php
[0] Fix | Delete
themify_product_image_start(); // Hook
[1] Fix | Delete
$hover_image='';
[2] Fix | Delete
if(isset($args['hover_image']) && 'yes'===$args['hover_image']){
[3] Fix | Delete
global $product;
[4] Fix | Delete
$attachment_ids = $product->get_gallery_image_ids();
[5] Fix | Delete
if ( !empty($attachment_ids) && is_array( $attachment_ids )){
[6] Fix | Delete
$hover_image = $attachment_ids[0];
[7] Fix | Delete
}
[8] Fix | Delete
}
[9] Fix | Delete
$param_image=array(
[10] Fix | Delete
'w'=>$args['image_w'],
[11] Fix | Delete
'h'=>$args['image_h']
[12] Fix | Delete
);
[13] Fix | Delete
if ($args['fallback_s'] === 'yes' && $args['fallback_i'] !== '' && !has_post_thumbnail()) {
[14] Fix | Delete
$param_image['src']=$args['fallback_i'];
[15] Fix | Delete
}
[16] Fix | Delete
if($args['link']!=='none'){
[17] Fix | Delete
$hasLink=true;
[18] Fix | Delete
$link = $args['link']==='permalink'?get_the_permalink():($args['link']==='media'?wp_get_attachment_url(get_post_thumbnail_id()):'');
[19] Fix | Delete
$link_attr=Tbp_Utils::getLinkParams($args,$link);
[20] Fix | Delete
if(!isset($link_attr['href'])){
[21] Fix | Delete
$hasLink=false;
[22] Fix | Delete
}
[23] Fix | Delete
}
[24] Fix | Delete
else{
[25] Fix | Delete
$hasLink=false;
[26] Fix | Delete
}
[27] Fix | Delete
if($args['sale_b'] === 'yes'){
[28] Fix | Delete
Tbp_Utils::loadCssModules('sale_badge',TBP_WC_CSS_MODULES.'sale-badge.css');
[29] Fix | Delete
}
[30] Fix | Delete
if(isset($args['appearance_image'])){
[31] Fix | Delete
Tbp_Utils::loadCssModules('product-image',TBP_WC_CSS_MODULES.'product-image.css');
[32] Fix | Delete
}
[33] Fix | Delete
?>
[34] Fix | Delete
<figure class="product-image<?php echo isset($args['auto_fullwidth'] ) && $args['auto_fullwidth'] == '1' ? ' auto_fullwidth' : ''; ?><?php echo isset($args['appearance_image'])? ' image-wrap' : ''; ?><?php echo $args['sale_b'] === 'yes' ? ' sale-badge-' . $args['badge_pos'] : ''; ?>">
[35] Fix | Delete
<?php if ($args['sale_b'] === 'yes'):?>
[36] Fix | Delete
<?php woocommerce_show_product_loop_sale_flash();?>
[37] Fix | Delete
<?php endif; ?>
[38] Fix | Delete
<?php if($hasLink===true):?>
[39] Fix | Delete
<a <?php echo self::get_element_attributes($link_attr); ?>>
[40] Fix | Delete
<?php endif;?>
[41] Fix | Delete
<?php echo apply_filters('woocommerce_product_get_image',themify_get_image($param_image));?>
[42] Fix | Delete
<?php
[43] Fix | Delete
if(!empty($hover_image)){
[44] Fix | Delete
$param_image['src']=$hover_image;
[45] Fix | Delete
$param_image['class']='tbp_product_hover_image';
[46] Fix | Delete
echo themify_get_image( $param_image);
[47] Fix | Delete
}
[48] Fix | Delete
?>
[49] Fix | Delete
<?php if($hasLink===true):?>
[50] Fix | Delete
</a>
[51] Fix | Delete
<?php endif;?>
[52] Fix | Delete
</figure>
[53] Fix | Delete
<?php
[54] Fix | Delete
themify_product_image_end(); // Hook
[55] Fix | Delete
$args=$param_image=null;
[56] Fix | Delete
[57] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function