Skip to content

Commit

Permalink
Update "Trees"
Browse files Browse the repository at this point in the history
更新目录树,手机也可以使用了。同时更新框架,明显提升了整体的兼容性
  • Loading branch information
Dreamer-Paul committed Feb 18, 2018
1 parent b1ccf5c commit 2d386cf
Show file tree
Hide file tree
Showing 9 changed files with 783 additions and 775 deletions.
2 changes: 1 addition & 1 deletion archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<span class="category"><?php $this->category(''); ?></span>
<?php endif; ?>
<?php if (!empty($this->options->archive_meta) && in_array('show_tags', $this->options->archive_meta)): ?>
<span class="tags"><?php $this->tags('', true, 'none'); ?></span>
<span class="tags"><?php $this->tags('', true, '暂无'); ?></span>
<?php endif; ?>
<?php if (!empty($this->options->archive_meta) && in_array('show_comments', $this->options->archive_meta)): ?>
<span class="comments"><?php $this->commentsNum('%d °C'); ?></span>
Expand Down
58 changes: 22 additions & 36 deletions comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
?>

<li id="<?php $comments->theId(); ?>">
<?php $comments->gravatar('150', 'robohash');?>
<?php $comments->gravatar('150', 'robohash'); ?>
<div class="comment-meta">
<span class="comment-author"><?php $comments->author(); ?></span>
<time class="comment-time"><?php $comments->date('y.m.d'); ?></time>
Expand All @@ -32,50 +32,36 @@
<section id="comments" class="post-comments">
<h3><?php $this->commentsNum(_t('没有评论'), _t('只有一条评论 (QwQ)'), _t('已有 %d 条评论')); ?></h3>
<?php $this->comments()->to($comments); ?>
<?php if($this->allow('comment')): ?>
<?php if($this->allow('comment')): ?>
<div id="<?php $this->respondId(); ?>" class="respond">
<span class="cancel-comment-reply">
<?php $comments->cancelReply(); ?>
</span>
<form method="post" action="<?php $this->commentUrl() ?>" id="comment-form" role="form">
<form class="bk-form" method="post" action="<?php $this->commentUrl() ?>" id="comment-form" role="form">
<?php if($this->user->hasLogin()): ?>
<fieldset>
<p><?php _e('已登录: '); ?><a href="<?php $this->options->profileUrl(); ?>"><?php $this->user->screenName(); ?></a>. <a href="<?php $this->options->logoutUrl(); ?>" title="登出"><?php _e('登出'); ?> &raquo;</a></p>
<textarea rows="2" name="text" id="textarea" placeholder="快来评论吧 (*≧ω≦)ノ" required=""><?php $this->remember('text'); ?></textarea>
<button type="submit" class="btn small">写好了~</button>
</fieldset>
<?php else: ?>
<div class="row">
<?php if($this->user->hasLogin()): ?>
<div class="col-m-12">
<p><?php _e('已登录: '); ?><a href="<?php $this->options->profileUrl(); ?>"><?php $this->user->screenName(); ?></a>. <a href="<?php $this->options->logoutUrl(); ?>" title="登出"><?php _e('登出'); ?> &raquo;</a></p>
<p>
<textarea rows="2" name="text" id="textarea" placeholder="快来评论吧 (*≧ω≦)ノ" required=""><?php $this->remember('text'); ?></textarea>
</p>
<p>
<button type="submit" class="btn small">写好了~</button>
</p>
</div>
<?php else: ?>
<div class="col-m-6">
<p>
<input type="text" name="author" id="author" placeholder="昵称 *:" value="<?php $this->remember('author'); ?>" required="">
</p>
<p>
<input type="email" name="mail" id="mail" placeholder="电邮 *:" value="<?php $this->remember('mail'); ?>"<?php if ($this->options->commentsRequireMail): ?> required<?php endif; ?>>
</p>
<p>
<input type="url" name="url" id="url" placeholder="http://" value="<?php $this->remember('url'); ?>"<?php if ($this->options->commentsRequireURL): ?> required<?php endif; ?>>
</p>
</div>
<div class="col-m-6">
<p>
<textarea rows="3" name="text" id="textarea" placeholder="快来评论吧 (*≧ω≦)ノ" required=""><?php $this->remember('text'); ?></textarea>
</p>
<p>
<button type="submit" class="btn small">写好了~</button>
</p>
</div>
<?php endif; ?>
<fieldset class="col-m-6">
<input type="text" name="author" id="author" placeholder="昵称 *:" value="<?php $this->remember('author'); ?>" required="">
<input type="email" name="mail" id="mail" placeholder="电邮 *:" value="<?php $this->remember('mail'); ?>"<?php if ($this->options->commentsRequireMail): ?> required<?php endif; ?>>
<input type="url" name="url" id="url" placeholder="http://" value="<?php $this->remember('url'); ?>"<?php if ($this->options->commentsRequireURL): ?> required<?php endif; ?>>
</fieldset>
<fieldset class="col-m-6">
<textarea rows="3" name="text" id="textarea" placeholder="快来评论吧 (*≧ω≦)ノ" required=""><?php $this->remember('text'); ?></textarea>
<button type="submit" class="btn small">写好了~</button>
</fieldset>
</div>
<?php endif; ?>
</form>
</div>
<?php endif; ?>
<?php endif; ?>
<?php if ($comments->have()): ?>
<?php $comments->listComments(); ?>
<?php $comments->pageNav('&laquo; 前一页', '后一页 &raquo;'); ?>
<?php endif; ?>
<?php endif; ?>
</section>
Loading

0 comments on commit 2d386cf

Please sign in to comment.