v1.6 — 微言评论优化

- 评论时间包含秒数
- 评论间距对齐发布人头像/姓名/时间
- 评论文本与姓名左边对齐
- 按钮'落笔'改为'轻语'
- 评论按时间线 ASC 排列
- 平级评论 + @回复引用
This commit is contained in:
2026-05-04 02:56:59 +08:00
parent 58ef5f2635
commit 177553dfae
2 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ get_header();
<div class="tucao-header">
<?php echo get_avatar(get_the_author_meta('ID'), 16, '', '', array('class' => 'tucao-avatar')); ?>
<span class="tucao-author"><?php the_author_meta('display_name'); ?></span>
<span class="tucao-time"><?php echo get_the_time('Y-m-d H:i'); ?></span>
<span class="tucao-time"><?php echo get_the_time('Y-m-d H:i:s'); ?></span>
</div>
<div class="tucao-body"><?php the_content(); ?></div>
<?php $comment_count = get_comments_number(); ?>
@@ -45,7 +45,7 @@ get_header();
<input type="hidden" name="comment_post_ID" value="<?php the_ID(); ?>">
<input type="hidden" name="comment_parent" value="0" class="tucao-reply-parent">
<input type="text" name="comment" placeholder="说点什么..." required>
<button type="submit">落笔</button>
<button type="submit">轻语</button>
</form>
<?php else : ?>
<p class="tucao-login-hint"><a href="/wp-login.php">登录</a>后可留言</p>