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> <span class="comment-item__time"><?php echo get_comment_date('Y-m-d H:i:s', $c); ?></span>
</div> </div>
<div class="comment-item__text"><?php echo esc_html($c->comment_content); ?></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> </li>
<?php endforeach; ?> <?php endforeach; ?>
</ol> </ol>
+1
View File
@@ -35,6 +35,7 @@ $total_pages = ceil($total / $per_page);
</div> </div>
<div class="article-item__meta"> <div class="article-item__meta">
<span class="article-item__date"><?php echo get_the_date('Y-m-d'); ?></span> <span class="article-item__date"><?php echo get_the_date('Y-m-d'); ?></span>
<span class="article-item__comments">💬 <?php echo (int) get_comments_number(); ?></span>
<span class="article-item__views">👁 <?php echo (int) kjweji_get_views(); ?></span> <span class="article-item__views">👁 <?php echo (int) kjweji_get_views(); ?></span>
</div> </div>
</a> </a>
+2 -2
View File
@@ -1,6 +1,6 @@
/* /*
Theme Name: 空笺未寄 Theme Name: 空笺未寄
Version: 0.15.0 Version: 0.15.1
Requires at least: 6.0 Requires at least: 6.0
Requires PHP: 7.4 Requires PHP: 7.4
License: MIT License: MIT
@@ -296,7 +296,7 @@ echo "done"
height: 100% !important; height: 100% !important;
object-fit: cover !important; object-fit: cover !important;
} }
.card-cover { overflow: hidden; aspect-ratio: 16/9; } .card-cover { overflow: hidden; aspect-ratio: 16/10; }
.pinned-cover { overflow: hidden; width: 120px; height: 120px; } .pinned-cover { overflow: hidden; width: 120px; height: 120px; }
.article-cover { overflow: hidden; height: 240px; } .article-cover { overflow: hidden; height: 240px; }