Skip to content

Commit 675445f

Browse files
committed
Update WooCommerce templates for v3.0.0
1 parent bb431fc commit 675445f

File tree

1 file changed

+39
-39
lines changed

1 file changed

+39
-39
lines changed

content-product.php

+39-39
Original file line numberDiff line numberDiff line change
@@ -13,58 +13,58 @@
1313
* @see https://docs.woocommerce.com/document/template-structure/
1414
* @author WooThemes
1515
* @package WooCommerce/Templates
16-
* @version 2.6.1
16+
* @version 3.0.0
1717
*/
1818

1919
if ( ! defined( 'ABSPATH' ) ) {
20-
exit; // Exit if accessed directly
20+
exit; // Exit if accessed directly
2121
}
2222

2323
global $product;
2424

2525
// Ensure visibility
2626
if ( empty( $product ) || ! $product->is_visible() ) {
27-
return;
27+
return;
2828
}
2929
?>
3030
<li <?php post_class(); ?>>
31-
<?php
32-
/**
33-
* woocommerce_before_shop_loop_item hook.
34-
*
35-
* @hooked woocommerce_template_loop_product_link_open - 10
36-
*/
37-
do_action( 'woocommerce_before_shop_loop_item' );
31+
<?php
32+
/**
33+
* woocommerce_before_shop_loop_item hook.
34+
*
35+
* @hooked woocommerce_template_loop_product_link_open - 10
36+
*/
37+
do_action( 'woocommerce_before_shop_loop_item' );
3838

39-
/**
40-
* woocommerce_before_shop_loop_item_title hook.
41-
*
42-
* @hooked woocommerce_show_product_loop_sale_flash - 10
43-
* @hooked woocommerce_template_loop_product_thumbnail - 10
44-
*/
45-
do_action( 'woocommerce_before_shop_loop_item_title' );
39+
/**
40+
* woocommerce_before_shop_loop_item_title hook.
41+
*
42+
* @hooked woocommerce_show_product_loop_sale_flash - 10
43+
* @hooked woocommerce_template_loop_product_thumbnail - 10
44+
*/
45+
do_action( 'woocommerce_before_shop_loop_item_title' );
4646

47-
/**
48-
* woocommerce_shop_loop_item_title hook.
49-
*
50-
* @hooked woocommerce_template_loop_product_title - 10
51-
*/
52-
do_action( 'woocommerce_shop_loop_item_title' );
47+
/**
48+
* woocommerce_shop_loop_item_title hook.
49+
*
50+
* @hooked woocommerce_template_loop_product_title - 10
51+
*/
52+
do_action( 'woocommerce_shop_loop_item_title' );
5353

54-
/**
55-
* woocommerce_after_shop_loop_item_title hook.
56-
*
57-
* @hooked woocommerce_template_loop_rating - 5
58-
* @hooked woocommerce_template_loop_price - 10
59-
*/
60-
do_action( 'woocommerce_after_shop_loop_item_title' );
54+
/**
55+
* woocommerce_after_shop_loop_item_title hook.
56+
*
57+
* @hooked woocommerce_template_loop_rating - 5
58+
* @hooked woocommerce_template_loop_price - 10
59+
*/
60+
do_action( 'woocommerce_after_shop_loop_item_title' );
6161

62-
/**
63-
* woocommerce_after_shop_loop_item hook.
64-
*
65-
* @hooked woocommerce_template_loop_product_link_close - 5
66-
* @hooked woocommerce_template_loop_add_to_cart - 10
67-
*/
68-
do_action( 'woocommerce_after_shop_loop_item' );
69-
?>
70-
</li>
62+
/**
63+
* woocommerce_after_shop_loop_item hook.
64+
*
65+
* @hooked woocommerce_template_loop_product_link_close - 5
66+
* @hooked woocommerce_template_loop_add_to_cart - 10
67+
*/
68+
do_action( 'woocommerce_after_shop_loop_item' );
69+
?>
70+
</li>

0 commit comments

Comments
 (0)