diff options
| author | Eltrac Koalar <hi@guhub.cn> | 2022-10-02 20:07:15 +0800 |
|---|---|---|
| committer | Eltrac Koalar <hi@guhub.cn> | 2022-10-02 20:07:15 +0800 |
| commit | 0019799b52306d8a812eb23865938b4c5526d83d (patch) | |
| tree | bfda1760445d1097640f28ca44f24c07e746db93 /includes | |
| parent | bb4e878f9a3bad03e02c36fcb15d870832cf3c08 (diff) | |
:person_with_blond_hair: Add: 留言板页面模板
Diffstat (limited to 'includes')
| -rw-r--r-- | includes/comments.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/comments.php b/includes/comments.php index bbd20df..176192f 100644 --- a/includes/comments.php +++ b/includes/comments.php @@ -59,7 +59,8 @@ Comments::replyScript($this); ?> <?php if($this->allow('comment')): ?> <div id="<?php $this->respondId(); ?>" class="respond"> <script>login=false;</script> - <h2 class="comments-form-title">添加新评论<span class="cancel-comment-reply"><?php $comments->cancelReply(); ?></span></h2> + <h2 class="comments-form-title"><?php if(isset($GLOBALS['msgPage']) && $GLOBALS['msgPage']){ $this->title(); } else { echo '添加新评论'; } ?><span class="cancel-comment-reply"><?php $comments->cancelReply(); ?></span></h2> + <?php if(isset($GLOBALS['msgPage']) && $GLOBALS['msgPage']) $this->content(); ?> <form method="post" action="<?php $this->commentUrl() ?>" id="comment-form" role="form"> <div class="submit-text submit-section"> <textarea rows="8" cols="50" name="text" id="textarea" class="textarea" placeholder="留下你的智慧 ~" required ><?php $this->remember('text'); ?></textarea> |
