C:\xampp\htdocs\landing\wp-content\plugins\penci-framework\shortcodes\block_37\content-items.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
67
<?php
$i             
1;
$block37_items '';
while ( 
$query_slider->have_posts() ) {
    
$query_slider->the_post();

    
$block37_items .= '<article  class="' join' 'penci_get_post_class'penci-post-item__' $iget_the_ID() ) ) . '">';
    
$block37_items .= '<div class="penci_post_thumb">';
    
$block37_items .= Penci_Helper_Shortcode::get_image_holder( array(
        
'image_size' => ! empty( $atts['image_size'] ) ? $atts['image_size'] : 'penci-thumb-480-320',
        
'show_icon'  => ! $atts['hide_icon_post_format'],
        
'image_type' => $atts['image_type']
    ) );
    
$block37_items .= Penci_Helper_Shortcode::get_post_meta( array( 'cat''review' ), $attsfalse );
    
$block37_items .= '</div>';
    
$block37_items .= '<div class="penci_post_content">';
    
$block37_items .= Penci_Helper_Shortcode::get_markup_title_post$atts['post_standard_title_length'] );

    
$block37_items .= Penci_Helper_Shortcode::get_excrept$atts['post_excrept_length'], ! $atts['show_excrept'] );

    if ( 
get_post_typeget_the_ID() ) == 'product' ) {
        
$GLOBALS['post'] = get_postget_the_ID() );
        
setup_postdata$GLOBALS['post'] );
        global 
$product;

        
$price_html penci_pennews_get_price_html$product );
        if ( 
$price_html ) {
            
$block37_items .= '<span class="penci-price">' $price_html '</span>';
        }
    }else{

        
$post_meta '';
        if(  
function_exists'penci_get_post_author' ) && isset( $atts['show_author'] ) && $atts['show_author'] ){
            
$post_meta .= penci_get_post_authorfalsefalse );
        }
        
$post_meta .= function_exists'penci_get_post_date' ) && empty( $atts['hide_post_date'] ) ? penci_get_post_datefalse ) : '';

        if( 
function_exists'penci_get_comment_count' ) && empty( $atts['hide_comment'] ) ) {
            
$post_meta .='<span class="entry-meta-item penci-comment-count">';
            
$post_meta .='<a class="penci_pmeta-link" href="'esc_urlget_comments_link() ) . '"><i class="la la-comments"></i>';

            if( 
function_exists'penci_get_tran_setting' ) ) {
                
$post_meta .= get_comments_number_textpenci_get_tran_setting'penci_comment_zero' ), penci_get_tran_setting'penci_comment_one' ), '% ' penci_get_tran_setting'penci_comment_more' ) );
            }else{
                
$post_meta .= get_comments_number_textesc_html__'0 comment''penci-framework' ), esc_html__'1 comment''penci-framework' ), '% ' esc_html__'comments''penci-framework' ) );
            }

            
$post_meta .='</a></span>';
        }

        
$block37_items .= $post_meta '<div class="penci_post-meta">' $post_meta '</div>' '';
    }

    
$block37_items .= '</div>';
    
$block37_items .= '</article>';

    
$block37_items .= Penci_Helper_Shortcode::get_markup_infeed_ad( array(
        
'order_ad'   => $atts['infeed_ads__order'],
        
'order_post' => $i,
        
'code'       => $content,
    ) );

    
$i ++;
}
wp_reset_postdata();

return 
Penci_Helper_Shortcode::pre_output_content_items$block37_items$atts );
x

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