-
Notifications
You must be signed in to change notification settings - Fork 127
/
Copy pathexcerpt-item.php
39 lines (28 loc) · 1.18 KB
/
excerpt-item.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
<?php
$price = get_post_meta($post->ID,'wppay_price',true);
$vip = get_post_meta($post->ID,'wppay_vip_auth',true);
$cols = _hui('list_cols', 5);
if( _hui('list_imagetext') ){
$cols .= ' excerpt-combine';
}
if( _hui('list_hover_plugin') ){
$cols .= ' excerpt-hoverplugin';
}
$p_like = _get_post_like_data(get_the_ID());
echo '<article class="excerpt excerpt-c'.$cols.'">';
echo '<a'. _target_blank() .' class="thumbnail" href="'.get_permalink().'">'._get_post_thumbnail().'</a>';
echo '<h2><a'. _target_blank() .' href="'.get_permalink().'">'.get_the_title().'</a></h2>';
echo '<footer>';
if( $vip && $vip != 0 ){
echo '<span class="post-price"><i class="iconfont"></i></span>';
}
if( $price && $price != 0 ){
echo '<span class="post-price"><i class="iconfont"></i> '.$price.'</span>';
}
if( _hui('list_is_time') ){
echo '<time>'._get_post_time().'</time>';
}
echo '<span class="post-view"><i class="iconfont"></i> '._get_post_views().'</span>';
echo '<span class="post-comm">'._get_post_comments().'</span>';
echo '</footer>';
echo '</article>';