Nessuna descrizione

content-product.php 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?php
  2. /**
  3. * The template for displaying product content within loops
  4. *
  5. * This template can be overridden by copying it to yourtheme/woocommerce/content-product.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 3.6.0
  16. */
  17. defined( 'ABSPATH' ) || exit;
  18. global $product;
  19. // Ensure visibility.
  20. if ( empty( $product ) || ! $product->is_visible() ) {
  21. return;
  22. }
  23. ?>
  24. <li <?php wc_product_class( '', $product ); ?>>
  25. <?php
  26. /**
  27. * Hook: woocommerce_before_shop_loop_item.
  28. *
  29. * @hooked woocommerce_template_loop_product_link_open - 10
  30. */
  31. do_action( 'woocommerce_before_shop_loop_item' );
  32. /**
  33. * Hook: woocommerce_before_shop_loop_item_title.
  34. *
  35. * @hooked woocommerce_show_product_loop_sale_flash - 10
  36. * @hooked woocommerce_template_loop_product_thumbnail - 10
  37. */
  38. do_action( 'woocommerce_before_shop_loop_item_title' );
  39. /**
  40. * Hook: woocommerce_shop_loop_item_title.
  41. *
  42. * @hooked woocommerce_template_loop_product_title - 10
  43. */
  44. do_action( 'woocommerce_shop_loop_item_title' );
  45. /**
  46. * Hook: woocommerce_after_shop_loop_item_title.
  47. *
  48. * @hooked woocommerce_template_loop_rating - 5
  49. * @hooked woocommerce_template_loop_price - 10
  50. */
  51. do_action( 'woocommerce_after_shop_loop_item_title' );
  52. /**
  53. * Hook: woocommerce_after_shop_loop_item.
  54. *
  55. * @hooked woocommerce_template_loop_product_link_close - 5
  56. * @hooked woocommerce_template_loop_add_to_cart - 10
  57. */
  58. do_action( 'woocommerce_after_shop_loop_item' );
  59. ?>
  60. </li>