fix: 评论回复按钮未登录弹窗 + 笺文列表加评论数 + 封面比例16:10

This commit is contained in:
2026-05-17 09:53:23 +08:00
parent a43f1c94a0
commit 74628c9d9d
3 changed files with 10 additions and 3 deletions
+7 -1
View File
@@ -27,7 +27,13 @@ if (post_password_required()) return;
<span class="comment-item__time"><?php echo get_comment_date('Y-m-d H:i:s', $c); ?></span>
</div>
<div class="comment-item__text"><?php echo esc_html($c->comment_content); ?></div>
<div class="comment-item__reply"><a href="<?php echo esc_url(add_query_arg('replytocom', $c->comment_ID, get_permalink() . '#respond')); ?>">回复</a></div>
<div class="comment-item__reply">
<?php if (is_user_logged_in()) : ?>
<a href="<?php echo esc_url(add_query_arg('replytocom', $c->comment_ID, get_permalink() . '#respond')); ?>">回复</a>
<?php else : ?>
<a href="javascript:void(0)" onclick="goLogin()">回复</a>
<?php endif; ?>
</div>
</li>
<?php endforeach; ?>
</ol>