Merge branch 'master' of https://github.com/woothemes/woocommerce
This commit is contained in:
commit
f83c406179
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @author WooThemes
|
||||
* @package WooCommerce/Templates
|
||||
* @version 2.0.3
|
||||
* @version 2.0.14
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
|
@ -17,9 +17,11 @@ global $post, $woocommerce, $product;
|
|||
<?php
|
||||
if ( has_post_thumbnail() ) {
|
||||
|
||||
$image = get_the_post_thumbnail( $post->ID, apply_filters( 'single_product_large_thumbnail_size', 'shop_single' ) );
|
||||
$image_title = esc_attr( get_the_title( get_post_thumbnail_id() ) );
|
||||
$image_link = wp_get_attachment_url( get_post_thumbnail_id() );
|
||||
$image = get_the_post_thumbnail( $post->ID, apply_filters( 'single_product_large_thumbnail_size', 'shop_single' ), array(
|
||||
'title' => $image_title
|
||||
) );
|
||||
$attachment_count = count( $product->get_gallery_attachment_ids() );
|
||||
|
||||
if ( $attachment_count > 0 ) {
|
||||
|
|
Loading…
Reference in New Issue