C:\xampp\htdocs\landing\wp-content\plugins\penci-pennews-amp\templates\woocommerce\loop.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
<?php
global $post;

if ( 
have_posts() ) :
    
$product_i 0;
    echo 
'<div class="penci-archive__list_product">';
    while ( 
have_posts() ) : the_post(); $product_i ++; $product wc_get_productget_the_ID() );  ?>
        <article <?php post_class'penci-product-item penci-product-item-' $product_i  ); ?>>
            <div class="article_content">
                <?php
                
if ( $product->is_on_sale() ) {
                     echo 
apply_filters(
                        
'woocommerce_sale_flash',
                        
'<span class="onsale">' penci_amp_get_setting'penci-amp-product-sale' ) . '</span>',
                        
$post,
                        
$product
                    
);
                }
                
?>
                <?php
                
if ( get_option'woocommerce_enable_review_rating' ) !== 'no' ) {
                    echo 
wc_get_rating_html$product->get_average_rating() );
                }
                
?>
                <div class="entry-media">
                    <a class="penci-link-post" href="<?php the_permalink(); ?>"><?php penci_amp_post_thumbnail( array( 'post'   => get_the_ID() ,'size'   => 'shop_catalog' ) ); ?></a>
                </div>
                <div class="entry-text">
                    <h3 class="penci__product__title">
                        <a href="<?php the_permalink() ?>" title="<?php the_title_attribute() ?>">
                            <?php the_title() ?>
                        </a>
                    </h3>
                    <div class="woocommerce-price"><?php echo $product->get_price_html(); ?></div>
                </div>
                <div class="entry-meta entry-meta-hide">
                    <?php $this->load_parts( array( 'entry-meta' ) ); ?>
                </div>
            </div>
        </article>
        <?php
    
endwhile;
    echo 
'</div>';
endif;
wp_reset_postdata();
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586