File: /var/www/shoetique/wp-content/themes/north-wp/woocommerce/content-product-small.php
<?php
/**
* The template for displaying product content within loops.
*
* Override this template by copying it to yourtheme/woocommerce/content-product.php
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 1.6.4
*/
global $product, $woocommerce_loop;
$attachment_ids = $product->get_gallery_attachment_ids();
// Store loop count we're currently on
if ( empty( $woocommerce_loop['loop'] ) )
$woocommerce_loop['loop'] = 0;
// Store column count for displaying the grid
if ( empty( $woocommerce_loop['columns'] ) )
$woocommerce_loop['columns'] = apply_filters( 'loop_shop_columns', 4 );
// Ensure visibilty
if ( ! $product->is_visible() )
return;
// Increase loop count
$woocommerce_loop['loop']++;
$catalog_mode = ot_get_option('shop_catalog_mode', 'off');
$shop_product_listing = (isset($_GET['shop_product_listing']) ? htmlspecialchars($_GET['shop_product_listing']) : ot_get_option('shop_product_listing', 'style1'));
?>
<article <?php post_class("small-5 medium-3 columns " . $shop_product_listing); ?>>
<?php do_action( 'woocommerce_before_shop_loop_item' ); ?>
<?php
$image_html = "";
if ( has_post_thumbnail() ) {
$image_html = wp_get_attachment_image( get_post_thumbnail_id(), 'shop_catalog' );
}
?>
<?php if ($shop_product_listing == 'style1') { ?>
<figure class="fresco">
<?php do_action( 'thb_product_badge'); ?>
<?php echo $image_html; ?>
<div class="overlay"></div>
<div class="buttons">
<?php echo thb_wishlist_button(); ?>
<div class="post-title<?php if ($catalog_mode == 'on') { echo ' catalog-mode'; } ?>">
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</div>
<?php if ($catalog_mode != 'on') { ?>
<?php
/**
* woocommerce_after_shop_loop_item_title hook
*
* @hooked woocommerce_template_loop_price - 10
*/
do_action( 'woocommerce_after_shop_loop_item_title' );
?>
<?php do_action( 'woocommerce_after_shop_loop_item' ); ?>
<?php } ?>
</div>
</figure>
<?php } else if ($shop_product_listing == 'style2') { ?>
<figure class="fresco">
<?php do_action( 'thb_product_badge'); ?>
<a href="<?php the_permalink(); ?>"><?php echo $image_html; ?></a>
</figure>
<div class="post-title<?php if ($catalog_mode == 'on') { echo ' catalog-mode'; } ?>">
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</div>
<?php if ($catalog_mode != 'on') { ?>
<?php
/**
* woocommerce_after_shop_loop_item_title hook
*
* @hooked woocommerce_template_loop_price - 10
*/
do_action( 'woocommerce_after_shop_loop_item_title' );
?>
<?php do_action( 'woocommerce_after_shop_loop_item' ); ?>
<?php } ?>
<?php } ?>
</article><!-- end product -->