Fix File
•
/
home
/
sportsfe...
/
httpdocs
/
wp-conte...
/
plugins
/
themify-...
/
template...
/
wc
/
loop
•
File:
image.php
•
Content:
<?php themify_product_image_start(); // Hook $hover_image=''; if(isset($args['hover_image']) && 'yes'===$args['hover_image']){ global $product; $attachment_ids = $product->get_gallery_image_ids(); if ( !empty($attachment_ids) && is_array( $attachment_ids )){ $hover_image = $attachment_ids[0]; } } $param_image=array( 'w'=>$args['image_w'], 'h'=>$args['image_h'] ); if ($args['fallback_s'] === 'yes' && $args['fallback_i'] !== '' && !has_post_thumbnail()) { $param_image['src']=$args['fallback_i']; } if($args['link']!=='none'){ $hasLink=true; $link = $args['link']==='permalink'?get_the_permalink():($args['link']==='media'?wp_get_attachment_url(get_post_thumbnail_id()):''); $link_attr=Tbp_Utils::getLinkParams($args,$link); if(!isset($link_attr['href'])){ $hasLink=false; } } else{ $hasLink=false; } if($args['sale_b'] === 'yes'){ Tbp_Utils::loadCssModules('sale_badge',TBP_WC_CSS_MODULES.'sale-badge.css'); } if(isset($args['appearance_image'])){ Tbp_Utils::loadCssModules('product-image',TBP_WC_CSS_MODULES.'product-image.css'); } ?> <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'] : ''; ?>"> <?php if ($args['sale_b'] === 'yes'):?> <?php woocommerce_show_product_loop_sale_flash();?> <?php endif; ?> <?php if($hasLink===true):?> <a <?php echo self::get_element_attributes($link_attr); ?>> <?php endif;?> <?php echo apply_filters('woocommerce_product_get_image',themify_get_image($param_image));?> <?php if(!empty($hover_image)){ $param_image['src']=$hover_image; $param_image['class']='tbp_product_hover_image'; echo themify_get_image( $param_image); } ?> <?php if($hasLink===true):?> </a> <?php endif;?> </figure> <?php themify_product_image_end(); // Hook $args=$param_image=null;
•
Search:
•
Replace:
Function
Edit by line
Download
Information
Rename
Copy
Move
Delete
Chmod
List