v1.0 — 功能完整版本
- 首页: Hero + 编辑推荐 + 近笺卡片 + 微言摘要 - 笺文: 列表 + 分页(头像+作者+日期+浏览量) - 微言: 列表 + 评论折叠 - 拾影: 瀑布流 + 灯箱 - 文章详情: 封面 + 正文 + 评论 - 图片: 缩略图 soft crop,原图裁黑边 - 头像: 本地 SVG 替换 Gravatar - 导航: 激活状态圆点指示 - 安装: 自动创建页面和菜单
This commit is contained in:
+8
-5
@@ -23,11 +23,14 @@ $total_pages = ceil($total / $per_page);
|
||||
<div class="article-list">
|
||||
<?php while ($query->have_posts()) : $query->the_post(); ?>
|
||||
<a href="<?php the_permalink(); ?>" class="article-item">
|
||||
<span class="article-title"><?php the_title(); ?></span>
|
||||
<span class="article-meta">
|
||||
<span><?php the_author_meta('display_name'); ?></span>
|
||||
<span><?php echo get_the_date('Y-m-d'); ?></span>
|
||||
</span>
|
||||
<div class="article-item__main">
|
||||
<span class="article-title"><?php the_title(); ?></span>
|
||||
<span class="article-item__author"><?php echo get_avatar(get_the_author_meta('ID'), 14, '', '', array('class' => 'article-avatar')); ?> <?php the_author_meta('display_name'); ?></span>
|
||||
</div>
|
||||
<div class="article-item__meta">
|
||||
<span class="article-item__date"><?php echo get_the_date('Y-m-d'); ?></span>
|
||||
<span class="article-item__views">👁 <?php echo (int) kjweji_get_views(); ?></span>
|
||||
</div>
|
||||
</a>
|
||||
<?php endwhile; ?>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user