评论区硬切换实现
This commit is contained in:
@@ -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>';
|
||||
|
||||
Reference in New Issue
Block a user