diff options
| author | Eltrac <45323514+BigCoke233@users.noreply.github.com> | 2020-01-23 14:01:34 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-23 14:01:34 +0800 |
| commit | a8275515c7f82b3f45338b3e3133c9c1f70614af (patch) | |
| tree | 741205eef38fb53d8d7ef91fb8d61f20d708c378 /includes/header.php | |
| parent | a9f554ace3e6a9e54ab6d925addb7003be2d40f6 (diff) | |
✂️ Perf: 去掉显示评论数字的繁琐文字(None 和 Only 1)
Diffstat (limited to 'includes/header.php')
| -rw-r--r-- | includes/header.php | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/includes/header.php b/includes/header.php index 6fcd401..e984006 100644 --- a/includes/header.php +++ b/includes/header.php @@ -1,6 +1,5 @@ <?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?> <div class="mask" id="full-mask"></div> - <div class="alert ready"><p class="alert-content">错误!未定义的 alert 信息或 css 未正常载入</p><button id="alert-close" class="alert-close"><i class="iconfont icon-x"></i></button></div> <!-- 搜索 --> <div class="search ready"> <button class="search-close ready" id="search-close-button"><i class="iconfont icon-x"></i></button> @@ -15,11 +14,9 @@ <div class="login ready"> <button class="login-close ready" id="login-close"><i class="iconfont icon-x"></i></button> <?php if($this->user->hasLogin()): ?> - <h1>你已经登陆过了哦</h1> - <p class="large-screen"> 不过康纳很乐意再次见到 <?php $this->user->screenName(); ?> 呢~</p> - <a href="<?php $this->options->profileUrl(); ?>" class="comment-submit col-md-3"> - <button>回到个人中心</button> - </a> + <h1>你已经登陆了</h1> + <p class="large-screen" style="margin-top:0"> 不过康纳很乐意再次见到 <?php $this->user->screenName(); ?> 呢~</p> + <p class="login-enter-admin"><a href="/admin" class="col-md-3">进入后台</a></p> <?php else: ?> <form action="<?php $this->options->loginAction(); ?>" id="login-form" method="post" name="login" role="form" class="login-form"> <h1>登录后台</h1> @@ -169,7 +166,7 @@ <h1><?php $this->title(); ?></h1> <p class="header-meta"><?php if($this->fields->meta==''): ?> <?php if($this->is('post')): ?> - <i class="iconfont icon-block" title="文章分类"></i> <?php $this->category(','); ?> <?php endif; ?><i class="iconfont icon-comments" title="共 <?php $this->commentsNum('None', '1', '%d'); ?> 条评论"></i> <?php $this->commentsNum('None', 'Only 1', '%d'); ?> <i class="iconfont icon-clock" title="该文章发布于 <?php $this->date(); ?>"></i> <?php $this->date(); ?> <i class="icon-view iconfont" title="该文章被浏览 <?php get_post_view($this) ?> 次"></i> <?php get_post_view($this) ?><?php else: echo $this->fields->meta;?><div style="display:none"><?php get_post_view($this) ?></div><?php endif; ?> + <i class="iconfont icon-block" title="文章分类"></i> <?php $this->category(','); ?> <?php endif; ?><i class="iconfont icon-comments" title="共 <?php $this->commentsNum('0', '1', '%d'); ?> 条评论"></i> <?php $this->commentsNum('None', 'Only 1', '%d'); ?> <i class="iconfont icon-clock" title="该文章发布于 <?php $this->date(); ?>"></i> <?php $this->date(); ?> <i class="icon-view iconfont" title="该文章被浏览 <?php get_post_view($this) ?> 次"></i> <?php get_post_view($this) ?><?php else: echo $this->fields->meta;?><div style="display:none"><?php get_post_view($this) ?></div><?php endif; ?> </p> <?php elseif($this->is('archive')): ?> <h1><?php $this->archiveTitle(array( |
