1 Star 0 Fork 32

Zhang-Curry/WordPress简约博客主题Qzdy

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
tag.php 2.31 KB
一键复制 编辑 原始数据 按行查看 历史
秋天不回来 提交于 2022-12-10 21:15 . qzdy v5.1
<?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();?>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/zhang-curry/qzdy.git
git@gitee.com:zhang-curry/qzdy.git
zhang-curry
qzdy
WordPress简约博客主题Qzdy
master

搜索帮助