diff options
| author | Eltrac Koalar <hi@guhub.cn> | 2022-08-21 18:59:10 +0800 |
|---|---|---|
| committer | Eltrac Koalar <hi@guhub.cn> | 2022-08-21 18:59:10 +0800 |
| commit | 1cba3c0713fa1c877458dca99243b4685383ece1 (patch) | |
| tree | 48e0652eed3b89083df76ba3f548534dd8c02fbf /includes | |
| parent | 50819e10ec5ec74a864401f9d4a5f3d805729975 (diff) | |
:pencil: Add: 加入设置项,以便关闭 Ajax 评论
Diffstat (limited to 'includes')
| -rw-r--r-- | includes/comments.php | 1 | ||||
| -rw-r--r-- | includes/footer.php | 14 |
2 files changed, 5 insertions, 10 deletions
diff --git a/includes/comments.php b/includes/comments.php index 404ee73..860148b 100644 --- a/includes/comments.php +++ b/includes/comments.php @@ -51,7 +51,6 @@ echo $commentClass; </div> <?php } replyScript($this); ?> -<span class="throbber-loader"></span> <div id="comments"> <?php $this->comments()->to($comments); ?> <?php if($this->allow('comment')): ?> diff --git a/includes/footer.php b/includes/footer.php index 5361ccb..383905e 100644 --- a/includes/footer.php +++ b/includes/footer.php @@ -32,15 +32,11 @@ <?php endif; ?> <script>siteurl='<?php Utils::indexHome(); ?>'; -pjaxCallback=function(){<?php $this->options->pjaxCallback(); ?>}</script> +pjaxCallback=function(){<?php $this->options->pjaxCallback(); ?>}; +AjaxCommentEnabled='<?php $this->options->EnableAjaxComment(); ?>';</script> -<?php -//输出统计代码 -if ($this->options->hideStatCode == 'able' ): ?><div style="display:none"><?php endif; -if ($this->options->statCode) { $this->options->statCode(); } -if ($this->options->hideStatCode == 'able'): ?></div><?php endif; -//其他 -Matcha::footer(); -$this->footer(); ?> +<?php //输出统计代码、js 引用等 +if ($this->options->statCode) { $this->options->statCode(); } ?></div> +<?php Matcha::footer(); $this->footer(); ?> </body> </html>
\ No newline at end of file |
