summaryrefslogtreecommitdiffstats
path: root/saying.php
diff options
context:
space:
mode:
authorBigCoke233 <hi@guhub.cn>2020-07-30 23:49:46 +0800
committerBigCoke233 <hi@guhub.cn>2020-07-30 23:49:46 +0800
commit52ab9c1909f39c8854e8235cddd351ef72505e91 (patch)
tree0d8de56dc167919197d9567578430c106e996c1e /saying.php
parent23c8e8fed64c5995101cc9ceb08706d8849b0a3c (diff)
:fire: Del: 移除旧版本所有文件,准备 2.0 版本
Diffstat (limited to 'saying.php')
-rw-r--r--saying.php69
1 files changed, 0 insertions, 69 deletions
diff --git a/saying.php b/saying.php
deleted file mode 100644
index 2a37cf7..0000000
--- a/saying.php
+++ /dev/null
@@ -1,69 +0,0 @@
-<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit;
-/**
- * 说说页面
- *
- * @package custom
- */
-$this->need('includes/head.php');
-$this->need('includes/header.php');
-function threadedComments($comments, $options) {
- $commentClass = '';
- if ($comments->authorId) {
- if ($comments->authorId == $comments->ownerId) {
- $commentClass .= ' comment-by-author'; //如果是文章作者的评论添加 .comment-by-author 样式
- } else {
- $commentClass .= ' comment-by-user'; //如果是评论作者的添加 .comment-by-user 样式
- }
- }
- $commentLevelClass = $comments->_levels > 0 ? ' comment-child' : ' comment-parent'; //评论层数大于0为子级,否则是父级
-?>
-<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');
-} else {
- echo ' comment-parent';
-}
-$comments->alt(' comment-odd', ' comment-even');
-echo $commentClass;
-?>">
- <div class="saying-item">
- <div class="saying-inner saying-header">
- <p class="saying-meta">
- <?php $comments->gravatar('100', ''); ?><span class="saying-author"><?php $comments->author(); ?></span><br>
- <?php $comments->date('Y-m-d H:i'); ?>
- </p>
- </div>
- <div class="saying-hr"></div>
- <div class="saying-inner saying-middle">
- <?php echo Contents::parseEmo($comments->content); ?>
- </div>
- </div>
-</div>
-<?php } ?>
- <main class="main-container container">
- <div class="saying-body">
- <?php if($this->user->hasLogin()): ?>
- <form method="post" action="<?php $this->commentUrl() ?>" id="comment-form" class="saying-form" role="form">
- <p>
- <textarea rows="8" cols="50" name="text" id="textarea" placeholder="<?php gtecho('sayingPageTexts','sayingPlaceholder'); ?>" class="OwO-textarea comment-textarea textarea" required ><?php $this->remember('text'); ?></textarea>
- </p>
- <p>
- <button type="submit" class="comment-submit submit"><?php gtecho('sayingPageTexts','sayingSubmit'); ?></button>
- </p>
- </form>
- <br>
- <?php endif; ?>
- <?php $this->comments()->to($comments); ?>
- <?php $comments->listComments(array(
- 'before' => '<div class="comment-list">',
- 'after' => '</div>',
- 'avatarSize' => 200,
- 'dateFormat' => 'Y-m-d H:i'
- )); ?>
- <div class="comment-pagenav">
- <?php $comments->pageNav('<i class="iconfont icon-chevron-left comment-pagenav-icon"></i>', '<i class="iconfont icon-chevron-right comment-pagenav-icon"></i>'); ?>
- </div>
- </div>
- </main>
-<?php $this->need('includes/footer.php'); ?> \ No newline at end of file