-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy patharchive-product.php
67 lines (51 loc) · 1.25 KB
/
archive-product.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php
/**
* The Archive page of Mynote theme.
*
* @author Terry Lin
* @link https://terryl.in/
*
* @package WordPress
* @subpackage Mynote
* @since 1.0.0
* @version 1.6.3
*/
get_header();
?>
<?php if ( apply_filters( 'woocommerce_show_page_title', true ) ) : ?>
<div class="category-header">
<div class="container">
<h1 id="post-title" class="archive" itemprop="headline">
<?php woocommerce_page_title(); ?>
</h1>
</div>
</div>
<?php endif; ?>
<main role="main">
<div class="container">
<div class="row row-layout-choice-archive">
<section id="main-container" class="<?php echo esc_attr( mynote_main_container_css() ); ?>">
<?php
if ( woocommerce_product_loop() ) {
do_action( 'woocommerce_before_shop_loop' );
woocommerce_product_loop_start();
if ( wc_get_loop_prop( 'total' ) ) {
while ( have_posts() ) {
the_post();
do_action( 'woocommerce_shop_loop' );
wc_get_template_part( 'content', 'product' );
}
}
woocommerce_product_loop_end();
do_action( 'woocommerce_after_shop_loop' );
} else {
do_action( 'woocommerce_no_products_found' );
}
do_action( 'woocommerce_after_main_content' );
?>
</section>
</div>
</div>
</main>
<?php
get_footer();