PATH:
home
/
letacommog
/
pymreception1
/
wp-content
/
themes
/
legenda
/
woocommerce
<?php /** * The template for displaying product category thumbnails within loops. * * Override this template by copying it to yourtheme/woocommerce/content-product_cat.php * * @author WooThemes * @package WooCommerce/Templates * @version 2.6.1 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly global $woocommerce_loop; // 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 ); // Increase loop count $woocommerce_loop['loop']++; if ( etheme_get_option( 'product_page_image_width' ) != '' && etheme_get_option( 'product_page_image_height' ) != '' ) { $image_size = array(); $image_size[] = etheme_get_option('product_page_image_width'); $image_size[] = etheme_get_option('product_page_image_height'); } else { $image_size = apply_filters( 'single_product_large_thumbnail_size', 'shop_catalog' ); } ?> <div class="span4 product-category <?php if ( ( $woocommerce_loop['loop'] - 1 ) % $woocommerce_loop['columns'] == 0 || $woocommerce_loop['columns'] == 1) echo ' first'; if ( $woocommerce_loop['loop'] % $woocommerce_loop['columns'] == 0 ) echo ' last'; ?>"> <?php do_action( 'woocommerce_before_subcategory', $category ); ?> <div class="mask-container"> <?php $thumbnail_id = get_woocommerce_term_meta( $category->term_id, 'thumbnail_id', true ); if ( $thumbnail_id ) { $image = wp_get_attachment_image_url( $thumbnail_id, $image_size ); echo '<img src="' . $image . '" alt="' . $category->name . '" />'; } else { echo wc_placeholder_img( $image_size ); } ?> <div class="block-mask"> <div class="mask-content"> <a href="<?php echo get_term_link( $category->slug, 'product_cat' ); ?>"><i class="icon-link"></i></a> </div> </div> </div> <a href="<?php echo get_term_link( $category->slug, 'product_cat' ); ?>"><h5> <?php echo $category->name; if ( $category->count > 0 ) echo apply_filters( 'woocommerce_subcategory_count_html', ' (' . $category->count . ')', $category ); ?> </h5></a> <?php /** * woocommerce_after_subcategory_title hook */ do_action( 'woocommerce_after_subcategory_title', $category ); ?> <?php do_action( 'woocommerce_after_subcategory', $category ); ?> </div>
[+]
..
[-] archive-product.php
[edit]
[-] style.css
[edit]
[+]
cart
[-] content-widget-product.php
[edit]
[-] product-quick-view.php
[edit]
[+]
myaccount
[+]
checkout
[+]
single-product
[-] content-product.php
[edit]
[-] content-single-product.php
[edit]
[+]
loop
[-] content-product-slide.php
[edit]
[-] single-product-reviews.php
[edit]
[+]
shop
[-] wishlist.php
[edit]
[-] single-product.php
[edit]
[+]
global
[-] content-product_cat.php
[edit]