评论区硬切换实现

This commit is contained in:
2026-08-30 17:34:29 +08:00
parent ed914d2eec
commit b8ef4d81a4
32 changed files with 946 additions and 1008 deletions
+2 -1
View File
@@ -80,7 +80,8 @@ $show_sidebar = function_exists('aksrt_is_show_sidebar') ? aksrt_is_show_sidebar
</article>
<?php
if (comments_open() || get_comments_number()) {
// 评论关闭时模板整体不渲染(legacy 行为),无需空卡片。
if (comments_open()) {
echo '<div class="theme-box box-body radius8 main-shadow comments-card">';
comments_template();
echo '</div>';