Ei kuvausta

content-product-cat.php 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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://docs.woocommerce.com/document/template-structure/
  14. * @package WooCommerce\Templates
  15. * @version 4.7.0
  16. */
  17. if ( ! defined( 'ABSPATH' ) ) {
  18. exit;
  19. }
  20. ?>
  21. <li <?php wc_product_cat_class( '', $category ); ?>>
  22. <?php
  23. /**
  24. * The woocommerce_before_subcategory hook.
  25. *
  26. * @hooked woocommerce_template_loop_category_link_open - 10
  27. */
  28. do_action( 'woocommerce_before_subcategory', $category );
  29. /**
  30. * The woocommerce_before_subcategory_title hook.
  31. *
  32. * @hooked woocommerce_subcategory_thumbnail - 10
  33. */
  34. do_action( 'woocommerce_before_subcategory_title', $category );
  35. /**
  36. * The woocommerce_shop_loop_subcategory_title hook.
  37. *
  38. * @hooked woocommerce_template_loop_category_title - 10
  39. */
  40. do_action( 'woocommerce_shop_loop_subcategory_title', $category );
  41. /**
  42. * The woocommerce_after_subcategory_title hook.
  43. */
  44. do_action( 'woocommerce_after_subcategory_title', $category );
  45. /**
  46. * The woocommerce_after_subcategory hook.
  47. *
  48. * @hooked woocommerce_template_loop_category_link_close - 10
  49. */
  50. do_action( 'woocommerce_after_subcategory', $category );
  51. ?>
  52. </li>