v1.8 — 细节优化
- 首页文案更新为'自白者的栖息地' - 近笺 12 条 + 查看全部链接 - 笺文详情页加浏览量 - 登录弹窗替代 alert - 评论区修复双重 border-top - 退出登录带回跳 - 时间格式统一到秒 - 文案优化
This commit is contained in:
+7
-8
@@ -28,22 +28,21 @@ update_post_meta(get_the_ID(), 'post_views', $views + 1);
|
||||
<a href="<?php echo esc_url(get_author_posts_url(get_the_author_meta('ID'))); ?>">
|
||||
<?php the_author_meta('display_name'); ?>
|
||||
</a>
|
||||
· <?php echo get_the_date('Y-m-d'); ?>
|
||||
· <?php echo get_the_date('Y-m-d H:i:s'); ?>
|
||||
</span>
|
||||
<span>👁 <?php echo (int) $views; ?></span>
|
||||
</div>
|
||||
|
||||
<div class="article-body">
|
||||
<?php the_content(); ?>
|
||||
</div>
|
||||
|
||||
<div class="comments-section">
|
||||
<?php
|
||||
if (comments_open() || get_comments_number()) {
|
||||
comments_template();
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
if (comments_open() || get_comments_number()) {
|
||||
comments_template();
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endwhile; ?>
|
||||
|
||||
<?php get_footer(); ?>
|
||||
|
||||
Reference in New Issue
Block a user