代码拉取完成,页面将自动刷新
同步操作将从 Hoe/PureLoveForTypecho 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<!--评论-->
<?php function threadedComments($comments, $options)
{
$commentClass = $authorIdIcon = '';
if ($comments->authorId) {
if ($comments->authorId == $comments->ownerId) {
$commentClass .= ' comment-by-author';
$authorIdIcon = '<i class="fa fa-heart-o" aria-hidden="true" title="博主"></i>';
} else {
$commentClass .= ' comment-by-user';
}
}
$commentLevelClass = $comments->levels > 0 ? ' comment-children' : ' comment-parent';
?>
<li id="li-<?php $comments->theId(); ?>" class="comment<?php
if ($comments->levels > 0) {
echo ' comment-children';
$comments->levelsAlt(' thread-level-odd', ' thread-level-even');
} else {
echo ' comment-parent';
}
echo $commentClass;
?>">
<div id="<?php $comments->theId(); ?>">
<div class="coms_avatar">
<img class="avatar" src="<?= getCommentAvatarUrl($comments); ?>" alt="<?= $comments->author; ?>">
</div>
<div class="coms_main">
<div class="coms_meta">
<span class="coms_author">
<span rel="external nofollow" class="url"><?php $comments->author(); ?></span>
<span class="user-agent-icon">
<?php echo $authorIdIcon; echo getOS($comments->agent); echo getBrowser($comments->agent); ?>
</span>
</span>
<a href="<?php $comments->permalink(); ?>"><?php $comments->date(); ?></a>
<a rel="nofollow" class="comment-reply comment-reply-link"><?php $comments->reply(); ?></a>
</div>
<?php if ('waiting' == $comments->status): ?>
<span class="comments-waiting"><?php $options->commentStatus(); ?></span>
<?php endif; ?>
<p>
<?php $comments->content(); ?>
</p>
</div>
</div>
<?php if ($comments->children) { ?>
<div class="children">
<?php $comments->threadedComments($options); ?>
</div>
<?php } // if ($comments->children) else ?>
</li>
<?php } // threadedComments() End ?>
<div id="comments">
<?php $this->comments()->to($comments); ?>
<div class="comments-header" id="<?php $this->respondId(); ?>">
<?php if ($this->allow('comment')): ?>
<form action="<?php $this->commentUrl() ?>" method="post" id="commentform">
<h3 class="coms_underline">
我来吐槽
</h3>
<div id="comment-author-info">
<?php if ($this->user->hasLogin()): ?>
<div>
<a href="<?php $this->options->profileUrl(); ?>">
<?php $this->user->screenName(); ?>
已登录
</a>.
<a href="<?php $this->options->logoutUrl(); ?>" title="Logout">退出»</a>
</div>
<?php else: // if($this->user->hasLogin()) else ?>
<p>
<label for="author">昵称</label>
<input type="text" name="author" id="author" value="<?php $this->remember('author'); ?>" size="14" required><em>*</em>
</p>
<p>
<label for="email">邮箱</label>
<input type="email" name="mail" id="email" value="<?php $this->remember('mail'); ?>" size="25"
<?= $this->options->commentsRequireMail ? 'required' : ''; ?> >
<?= $this->options->commentsRequireMail ? '<em>*</em>' : ''; ?>
</p>
<p>
<label for="url">网站</label>
<input type="url" name="url" id="url" value="<?php $this->remember('url'); ?>" size="36"
<?= $this->options->commentsRequireURL ? 'required' : ''; ?>
placeholder="http://">
<?= $this->options->commentsRequireURL ? '<em>*</em>' : ''; ?>
</p>
<?php endif; // if($this->user->hasLogin()) endif ?>
</div>
<div class="post-aread">
<textarea name="text" id="comment" class="emojionearea" required cols="100%" rows="7" placeholder="来都来了,还不说两句?"><?php $this->remember('text'); ?></textarea>
</div>
<div class="subcon">
<button class="btn btn-primary">吐槽一下</button>
<div class="cancel-comment"><?php $comments->cancelReply(); ?></div>
</div>
</form>
<?php endif; ?>
</div>
<?php if ($comments->have()): ?>
<h3 class="coms_underline" id="comments">
<?php $this->commentsNum(_t('暂无评论'), _t('仅有 <strong>1</strong> 条评论'), _t('已有 <strong>%d</strong> 条评论')); ?>
</h3>
<?php $comments->listComments(); ?>
<?php $comments->pageNav(); ?>
<?php endif; ?>
</div>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。