auth
1 year ago
block-notices
2 years ago
cart
1 year ago
checkout
1 year ago
emails
1 year ago
global
1 year ago
loop
1 year ago
myaccount
1 year ago
notices
2 years ago
order
1 year ago
parts
1 year ago
product-form
1 year ago
single-product
1 year ago
templates
1 year ago
archive-product.php
2 years ago
content-product-cat.php
2 years ago
content-product.php
2 years ago
content-single-product.php
2 years ago
content-widget-price-filter.php
2 years ago
content-widget-product.php
2 years ago
content-widget-reviews.php
2 years ago
product-searchform.php
2 years ago
single-product-reviews.php
2 years ago
single-product.php
2 years ago
taxonomy-product-attribute.php
2 years ago
taxonomy-product-cat.php
2 years ago
taxonomy-product-tag.php
2 years ago
content-product-cat.php
58 lines
| 1 | <?php |
| 2 | /** |
| 3 | * The template for displaying product category thumbnails within loops |
| 4 | * |
| 5 | * This template can be overridden by copying it to yourtheme/woocommerce/content-product-cat.php. |
| 6 | * |
| 7 | * HOWEVER, on occasion WooCommerce will need to update template files and you |
| 8 | * (the theme developer) will need to copy the new files to your theme to |
| 9 | * maintain compatibility. We try to do this as little as possible, but it does |
| 10 | * happen. When this occurs the version of the template file will be bumped and |
| 11 | * the readme will list any important changes. |
| 12 | * |
| 13 | * @see https://woocommerce.com/document/template-structure/ |
| 14 | * @package WooCommerce\Templates |
| 15 | * @version 4.7.0 |
| 16 | */ |
| 17 | |
| 18 | if ( ! defined( 'ABSPATH' ) ) { |
| 19 | exit; |
| 20 | } |
| 21 | ?> |
| 22 | <li <?php wc_product_cat_class( '', $category ); ?>> |
| 23 | <?php |
| 24 | /** |
| 25 | * The woocommerce_before_subcategory hook. |
| 26 | * |
| 27 | * @hooked woocommerce_template_loop_category_link_open - 10 |
| 28 | */ |
| 29 | do_action( 'woocommerce_before_subcategory', $category ); |
| 30 | |
| 31 | /** |
| 32 | * The woocommerce_before_subcategory_title hook. |
| 33 | * |
| 34 | * @hooked woocommerce_subcategory_thumbnail - 10 |
| 35 | */ |
| 36 | do_action( 'woocommerce_before_subcategory_title', $category ); |
| 37 | |
| 38 | /** |
| 39 | * The woocommerce_shop_loop_subcategory_title hook. |
| 40 | * |
| 41 | * @hooked woocommerce_template_loop_category_title - 10 |
| 42 | */ |
| 43 | do_action( 'woocommerce_shop_loop_subcategory_title', $category ); |
| 44 | |
| 45 | /** |
| 46 | * The woocommerce_after_subcategory_title hook. |
| 47 | */ |
| 48 | do_action( 'woocommerce_after_subcategory_title', $category ); |
| 49 | |
| 50 | /** |
| 51 | * The woocommerce_after_subcategory hook. |
| 52 | * |
| 53 | * @hooked woocommerce_template_loop_category_link_close - 10 |
| 54 | */ |
| 55 | do_action( 'woocommerce_after_subcategory', $category ); |
| 56 | ?> |
| 57 | </li> |
| 58 |