diff options
| author | Eltrac <45323514+BigCoke233@users.noreply.github.com> | 2019-07-17 16:12:35 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-17 16:12:35 +0800 |
| commit | c674916153165e9a6a8acf063048663e7a5c1d6f (patch) | |
| tree | e072069da6cb269931a2f5dcb06f60cce22cb46e /includes | |
| parent | 76317320c58d6c5a859dbf9e8c8d0d1ca06053dc (diff) | |
Add files via upload
Diffstat (limited to 'includes')
| -rw-r--r-- | includes/comments.php | 39 | ||||
| -rw-r--r-- | includes/footer.php | 4 | ||||
| -rw-r--r-- | includes/head.php | 2 |
3 files changed, 25 insertions, 20 deletions
diff --git a/includes/comments.php b/includes/comments.php index 303349c..449b67a 100644 --- a/includes/comments.php +++ b/includes/comments.php @@ -9,7 +9,7 @@ }
$commentLevelClass = $comments->_levels > 0 ? ' comment-child' : ' comment-parent'; //评论层数大于0为子级,否则是父级
?>
-<li id="li-<?php $comments->theId(); ?>" class="comment-body<?php
+<div id="li-<?php $comments->theId(); ?>" class="comment-body<?php
if ($comments->_levels > 0) {
echo ' comment-child';
$comments->levelsAlt(' comment-level-odd', ' comment-level-even');
@@ -21,38 +21,43 @@ echo $commentClass; ?>">
<div class="container-fluid">
<div class="row">
- <div class="comment-author-avatar col-md-1">
+ <div class="comment-author-avatar col-1">
<?php $comments->gravatar('100', ''); ?>
</div>
- <div class="comment-author-info col-md-11">
- <h4><?php $comments->author(); ?></h4>
- <p><?php $comments->date('Y-m-d H:i'); ?></p>
- <div class="comment-content">
+ <div class="comment-main comment-author-info col-11">
+ <div class="comment-content bubble">
+ <span class="comment-reply"><?php $comments->reply('<i class="iconfont icon-return"></i>'); ?></span>
<?php $comments->content(); ?>
- <p class="comment-reply">
- <?php $comments->reply(); ?>
- </p>
</div>
+ <p class="comment-meta">
+ <span class="comment-author"><?php $comments->author(); ?></span>
+ <span class="comment-date"><?php $comments->date('Y-m-d H:i'); ?></span>
+ </p>
<?php if ($comments->children) { ?>
- <div class="comment-children">
- <?php $comments->threadedComments($options); ?>
- </div>
+ <div class="comment-children">
+ <?php $comments->threadedComments($options); ?>
+ </div>
<?php } ?>
</div>
</div>
</div>
-</li>
+</div>
<?php } ?>
<div class="comment">
<?php $this->comments()->to($comments); ?>
<h3 class="comment-title">
- <span style="color:#ccc">- </span>
<?php $this->commentsNum(_t('暂无评论'), _t('仅有一条评论'), _t('已有 %d 条评论')); ?>
- <span style="color:#ddd"> -</span>
</h3>
<?php if ($comments->have()): ?>
- <div class="comment-list">
- <?php $comments->listComments(); ?>
+ <div class="comment-container">
+ <?php $comments->listComments(array(
+ 'before' => '<div class="comment-list">',
+ 'after' => '</div>',
+ 'avatarSize' => 200,
+ 'dateFormat' => 'Y-m-d H:i'
+ )); ?>
+ </div>
+ <div class="comment-pagenav">
<?php $comments->pageNav('<i class="iconfont icon-chevron-left"></i>', '<i class="iconfont icon-chevron-right"></i>'); ?>
</div>
<?php endif; ?>
diff --git a/includes/footer.php b/includes/footer.php index 8017818..fda879c 100644 --- a/includes/footer.php +++ b/includes/footer.php @@ -41,7 +41,7 @@ pres[i].className = 'line-numbers';} Prism.highlightAll(true,null);} $('form#login-form').addClass('need-refresh'); - var OwO_demo = new OwO({logo: 'OωO表情',container: document.getElementsByClassName('OwO')[0],target: document.getElementsByClassName('OwO-textarea')[0],api: '<?php Utils::indexTheme('assets/OwO.json'); ?>',position: 'down',width: '400px',maxHeight: '250px'}); + var OwO_demo = new OwO({logo: 'OωO表情',container: document.getElementsByClassName('OwO')[0],target: document.getElementsByClassName('OwO-textarea')[0],api: '<?php Utils::indexTheme('assets/OwO.json'); ?>',position: 'down',width: '350px',maxHeight: '250px'}); jQuery(function() {jQuery("img").lazyload({threshold: 200,effect: "fadeIn"});}); }); //LazyLoad @@ -56,7 +56,7 @@ //Login function Login() {$(".login").toggleClass("ready");$(".login-close").toggleClass("ready");} //OwO - var OwO_demo = new OwO({logo: 'OωO表情',container: document.getElementsByClassName('OwO')[0],target: document.getElementsByClassName('OwO-textarea')[0],api: '<?php Utils::indexTheme('assets/OwO.json'); ?>',position: 'down',width: '400px',maxHeight: '250px'}); + var OwO_demo = new OwO({logo: 'OωO表情',container: document.getElementsByClassName('OwO')[0],target: document.getElementsByClassName('OwO-textarea')[0],api: '<?php Utils::indexTheme('assets/OwO.json'); ?>',position: 'down',width: '350px',maxHeight: '250px'}); </script> <?php $this->footer(); ?> diff --git a/includes/head.php b/includes/head.php index 116b8ff..54d1f41 100644 --- a/includes/head.php +++ b/includes/head.php @@ -52,7 +52,7 @@ if (isset($_POST['action'])) { <link rel="stylesheet" href="<?php Utils::indexTheme('assets/css/fancybox.css'); ?>" /> <link rel="stylesheet" href="<?php Utils::indexTheme('assets/css/miracles.min.css'); ?>" /> <!-- icon font --> - <link rel="stylesheet" href="//at.alicdn.com/t/font_1165190_hilot65sdef.css" /> + <link rel="stylesheet" href="//at.alicdn.com/t/font_1165190_maespcngb4g.css" /> <!-- Google Fonts --> <link href="https://fonts.googleapis.com/css?family=Noto+Sans+SC:300|Noto+Serif+SC:300&display=swap" rel="stylesheet"> |
