Skip to content

Commit b022502

Browse files
committed
添加评论框
1 parent f9c766b commit b022502

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

single-sites.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @Author URI: https://www.iowen.cn/
77
* @Date: 2020-02-22 21:26:05
88
* @LastEditors: iowen
9-
* @LastEditTime: 2023-02-20 21:55:16
9+
* @LastEditTime: 2023-02-20 22:27:46
1010
* @FilePath: \WebStack\single-sites.php
1111
* @Description:
1212
*/
@@ -143,9 +143,13 @@
143143
}
144144
if ($i == 0) echo '<div class="col-lg-12"><div class="nothing">'.__('没有相关内容!','i_theme').'</div></div>';
145145
?>
146-
</div>
147-
<br />
146+
</div>
148147

148+
<?php
149+
if (comments_open() || get_comments_number()) {
150+
comments_template();
151+
}
152+
?>
149153
</div>
150154

151155
<?php if(io_get_option('ad_footer_s')) echo '<div class="ad ad-footer">' . stripslashes( io_get_option('ad_footer') ) . '</div>'; ?>

0 commit comments

Comments
 (0)