-
Notifications
You must be signed in to change notification settings - Fork 16
/
tag.php
41 lines (40 loc) · 2.31 KB
/
tag.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
<?php
/*
Name: 秋之德雨默认tag
*/
// Q-Q交-流群:9173673-58
?>
<?php get_header();?>
<div class="layui-content">
<div class="layui-container">
<div class="map pagemap">
<?php if ( function_exists('ah_breadcrumb') ) ah_breadcrumb(); ?>
</div>
<div class="layui-row flex layui-col-space15 main <?php qzdy_sidebar_fangxiang(); ?>">
<div class="layui-col-md9 layui-col-lg9">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class="title-article list-card item-box">
<div class="index-post-img-small"><a href="<?php the_permalink() ?>">
<div class="item-thumb-small lazy" style="background-image: url(<?php $gettesheimg = wp_get_attachment_image_src( get_post_thumbnail_id());if(!empty($gettesheimg)){echo $gettesheimg[0];}else{echo catch_first_image(); }?>)"></div>
</a></div>
<div class="index-post-text-small"><h2 class="m-t-none text-ellipsis index-post-title text-title"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
<p class="summary l-h-2x text-muted"><?php echo mb_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, 96,'…'); ?></p>
<div class="line line-lg b-b b-light"></div>
<div class="text-muted post-item-foot-icon text-ellipsis list-inline">
<li class="viewfloat">
<i class="layui-icon layui-icon-slider"></i><a href="<?php $category = get_the_category();if($category[0]){echo ''.get_category_link($category[0]->term_id ).'';}?>"><?php foreach((get_the_category()) as $category){echo $category->cat_name;} ?> </a></li>
<li><i class="layui-icon layui-icon-log"></i><?php the_time('Y/n/j '); ?></li><li><i class="layui-icon layui-icon-user"></i><a><?php global $current_user; get_currentuserinfo(); echo $current_user->nickname;?></a></li><li><i class="layui-icon layui-icon-fire"></i><span class="view"><?php post_views(' ', ''); ?></span></li></div></div></div>
<?php endwhile; else: ?>
<div class="qzdy_ssnrts"> <p>宝贝暂时没有相关的文章哦</p></div>
<?php endif; ?>
<div class="pagination" id="pagenavi">
<p> <?php lingfeng_pagenavi();?></p>
</div>
</div>
<?php get_sidebar();?>
</div>
</div>
</div>
</div>
<!--底部版权-->
<?php get_footer();?>