代码整风:移除全部的 _e 函数
This commit is contained in:
parent
776d5f43ec
commit
2048fb5723
12
comments.php
12
comments.php
|
@ -33,12 +33,12 @@
|
||||||
<div class="d-inline-block ml-2">
|
<div class="d-inline-block ml-2">
|
||||||
<span class="font-weight-900"><?php $comments->author(); ?></span>
|
<span class="font-weight-900"><?php $comments->author(); ?></span>
|
||||||
<?php if ($comments->authorId == $comments->ownerId): ?>
|
<?php if ($comments->authorId == $comments->ownerId): ?>
|
||||||
<span class="badge badge-secondary ml-1 mr-1"><?php _e('博主') ?></span>
|
<span class="badge badge-secondary ml-1 mr-1">博主</span>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php if ($comments->status == 'waiting'): ?>
|
<?php if ($comments->status == 'waiting'): ?>
|
||||||
<span class="badge badge-warning ml-1 mr-1">
|
<span class="badge badge-warning ml-1 mr-1">
|
||||||
<i class="fas fa-ellipsis-h"></i>
|
<i class="fas fa-ellipsis-h"></i>
|
||||||
<?php _e('等待审核') ?>
|
等待审核
|
||||||
</span>
|
</span>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php showUserAgent($comments->agent); ?>
|
<?php showUserAgent($comments->agent); ?>
|
||||||
|
@ -77,11 +77,11 @@
|
||||||
<div>
|
<div>
|
||||||
<?php $comments->cancelReply('<i class="fa fa-window-close"></i> 取消回复'); ?>
|
<?php $comments->cancelReply('<i class="fa fa-window-close"></i> 取消回复'); ?>
|
||||||
</div>
|
</div>
|
||||||
<h2 id="response"><?php _e('添加新评论'); ?></h2>
|
<h2 id="response">添加新评论</h2>
|
||||||
<form method="post" action="<?php $this->commentUrl(); ?>" id="comment-form" role="form">
|
<form method="post" action="<?php $this->commentUrl(); ?>" id="comment-form" role="form">
|
||||||
<?php if ($this->user->hasLogin()): ?>
|
<?php if ($this->user->hasLogin()): ?>
|
||||||
<p><?php _e('登录身份: '); ?>
|
<p>登录身份:?>
|
||||||
<a href="<?php $this->options->profileUrl(); ?>"><?php $this->user->screenName(); ?></a> | <a href="<?php $this->options->logoutUrl(); ?>" title="Logout"><?php _e('退出'); ?> »</a>
|
<a href="<?php $this->options->profileUrl(); ?>"><?php $this->user->screenName(); ?></a> | <a href="<?php $this->options->logoutUrl(); ?>" title="Logout">退出 »</a>
|
||||||
</p>
|
</p>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -101,7 +101,7 @@
|
||||||
<input type="checkbox" name="receiveMail" id="receiveMail" value="yes" checked />
|
<input type="checkbox" name="receiveMail" id="receiveMail" value="yes" checked />
|
||||||
<span class="custom-toggle-slider rounded-circle"></span>
|
<span class="custom-toggle-slider rounded-circle"></span>
|
||||||
</label>
|
</label>
|
||||||
<label for="receiveMail" class="mb-0 ml-2"><?php _e('接收邮件通知'); ?></label>
|
<label for="receiveMail" class="mb-0 ml-2">接收邮件通知</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
27
header.php
27
header.php
|
@ -53,7 +53,7 @@
|
||||||
<?php $this->header(); ?>
|
<?php $this->header(); ?>
|
||||||
</head>
|
</head>
|
||||||
<!--[if lt IE 8]>
|
<!--[if lt IE 8]>
|
||||||
<?php _e('当前网页不支持你正在使用的浏览器。为了正常访问, 请升级你的浏览器!'); ?>
|
当前网页不支持你正在使用的浏览器。为了正常访问, 请升级你的浏览器!
|
||||||
<![endif]-->
|
<![endif]-->
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
@ -63,35 +63,28 @@
|
||||||
欢迎,<a href="<?php $this->options->profileUrl(); ?>"><?php $this->user->screenName(); ?></a>
|
欢迎,<a href="<?php $this->options->profileUrl(); ?>"><?php $this->user->screenName(); ?></a>
|
||||||
<?php if ($this->is('post')): ?>
|
<?php if ($this->is('post')): ?>
|
||||||
<a class="badge badge-primary ml-1 mr-1" href="<?php $this->options->siteUrl();?>admin/write-post.php?cid=<?php $this->cid();?>" title="Edit">
|
<a class="badge badge-primary ml-1 mr-1" href="<?php $this->options->siteUrl();?>admin/write-post.php?cid=<?php $this->cid();?>" title="Edit">
|
||||||
<i class="far fa-edit"></i>
|
<i class="far fa-edit"></i>编辑此文
|
||||||
<?php _e('编辑此文'); ?>
|
|
||||||
</a>
|
</a>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php if ($this->is('page')): ?>
|
<?php if ($this->is('page')): ?>
|
||||||
<a class="badge badge-primary ml-1 mr-1" href="<?php $this->options->siteUrl();?>admin/write-page.php?cid=<?php $this->cid();?>" title="Edit">
|
<a class="badge badge-primary ml-1 mr-1" href="<?php $this->options->siteUrl();?>admin/write-page.php?cid=<?php $this->cid();?>" title="Edit">
|
||||||
<i class="far fa-edit"></i>
|
<i class="far fa-edit"></i>编辑此页
|
||||||
<?php _e('编辑此页'); ?>
|
|
||||||
</a>
|
</a>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<a class="badge badge-default ml-1 mr-1" href="<?php $this->options->siteUrl('admin/manage-posts.php?status=draft'); ?>" title="Drafts">
|
<a class="badge badge-default ml-1 mr-1" href="<?php $this->options->siteUrl('admin/manage-posts.php?status=draft'); ?>" title="Drafts">
|
||||||
<i class="far fa-edit"></i>
|
<i class="far fa-edit"></i>草稿箱
|
||||||
<?php _e('草稿箱'); ?>
|
|
||||||
</a>
|
</a>
|
||||||
<a class="badge badge-default ml-1 mr-1" href="<?php $this->options->siteUrl('admin'); ?>" title="Backstage">
|
<a class="badge badge-default ml-1 mr-1" href="<?php $this->options->siteUrl('admin'); ?>" title="Backstage">
|
||||||
<i class="fas fa-user-cog"></i>
|
<i class="fas fa-user-cog"></i>网站后台
|
||||||
<?php _e('网站后台'); ?>
|
|
||||||
</a>
|
</a>
|
||||||
<a class="badge badge-default ml-1 mr-1" href="<?php $this->options->siteUrl('admin/options-theme.php'); ?>" title="Settings">
|
<a class="badge badge-default ml-1 mr-1" href="<?php $this->options->siteUrl('admin/options-theme.php'); ?>" title="Settings">
|
||||||
<i class="far fa-cog"></i>
|
<i class="far fa-cog"></i>主题设置
|
||||||
<?php _e('主题设置'); ?>
|
|
||||||
</a>
|
</a>
|
||||||
<a class="badge badge-secondary ml-1 mr-1" href="#" onclick="javascript:location.reload();" title="Refresh">
|
<a class="badge badge-secondary ml-1 mr-1" href="#" onclick="javascript:location.reload();" title="Refresh">
|
||||||
<i class="fas fa-redo"></i>
|
<i class="fas fa-redo"></i>刷新
|
||||||
<?php _e('刷新'); ?>
|
|
||||||
</a>
|
</a>
|
||||||
<a class="badge badge-secondary ml-1 mr-1" href="<?php $this->options->logoutUrl(); ?>" title="Logout">
|
<a class="badge badge-secondary ml-1 mr-1" href="<?php $this->options->logoutUrl(); ?>" title="Logout">
|
||||||
<i class="fas fa-sign-out-alt"></i>
|
<i class="fas fa-sign-out-alt"></i>退出
|
||||||
<?php _e('退出'); ?>
|
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
@ -131,13 +124,13 @@
|
||||||
<ul class="col navbar-nav justify-content-center pr-0">
|
<ul class="col navbar-nav justify-content-center pr-0">
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link nav-link-icon <?php if ($this->is('index')){echo 'text-default';}else{echo 'text-gray';}?>" href="<?php $this->options->siteUrl();?>">
|
<a class="nav-link nav-link-icon <?php if ($this->is('index')){echo 'text-default';}else{echo 'text-gray';}?>" href="<?php $this->options->siteUrl();?>">
|
||||||
<i class="fa fa-home"></i> <?php _e('首页') ?>
|
<i class="fa fa-home"></i> 首页
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<?php if (strpos($this->options->frontPage, 'file') !== FALSE) {?>
|
<?php if (strpos($this->options->frontPage, 'file') !== FALSE) {?>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link nav-link-icon <?php if ($this->is('archive')){echo 'text-default';}else{echo 'text-gray';}?>" href="<?php echo $this->options->siteUrl.$this->options->routingTable['archive']['url'] ?>">
|
<a class="nav-link nav-link-icon <?php if ($this->is('archive')){echo 'text-default';}else{echo 'text-gray';}?>" href="<?php echo $this->options->siteUrl.$this->options->routingTable['archive']['url'] ?>">
|
||||||
<i class="fa fa-book"></i> <?php _e('文章') ?>
|
<i class="fa fa-book"></i> 文章
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
25
homepage.php
25
homepage.php
|
@ -57,7 +57,7 @@ $this->need('functions.php'); // 不知道为啥,似乎模版页面不会自
|
||||||
<?php $this->header(); ?>
|
<?php $this->header(); ?>
|
||||||
</head>
|
</head>
|
||||||
<!--[if lt IE 8]>
|
<!--[if lt IE 8]>
|
||||||
<?php _e('当前网页不支持你正在使用的浏览器。为了正常访问, 请升级你的浏览器!'); ?>
|
当前网页不支持你正在使用的浏览器。为了正常访问, 请升级你的浏览器!
|
||||||
<![endif]-->
|
<![endif]-->
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
@ -65,25 +65,20 @@ $this->need('functions.php'); // 不知道为啥,似乎模版页面不会自
|
||||||
<nav class="container fixed-bottom p-2 navbar navbar-light">
|
<nav class="container fixed-bottom p-2 navbar navbar-light">
|
||||||
<div>
|
<div>
|
||||||
欢迎,<a href="<?php $this->options->profileUrl(); ?>"><?php $this->user->screenName(); ?></a>
|
欢迎,<a href="<?php $this->options->profileUrl(); ?>"><?php $this->user->screenName(); ?></a>
|
||||||
<a class="badge badge-default ml-1 mr-1" href="<?php $this->options->siteUrl('admin'); ?>" title="Backstage">
|
|
||||||
<i class="fas fa-user-cog"></i>
|
|
||||||
<?php _e('网站后台'); ?>
|
|
||||||
</a>
|
|
||||||
<a class="badge badge-default ml-1 mr-1" href="<?php $this->options->siteUrl('admin/manage-posts.php?status=draft'); ?>" title="Drafts">
|
<a class="badge badge-default ml-1 mr-1" href="<?php $this->options->siteUrl('admin/manage-posts.php?status=draft'); ?>" title="Drafts">
|
||||||
<i class="far fa-edit"></i>
|
<i class="far fa-edit"></i>草稿箱
|
||||||
<?php _e('草稿箱'); ?>
|
</a>
|
||||||
|
<a class="badge badge-default ml-1 mr-1" href="<?php $this->options->siteUrl('admin'); ?>" title="Backstage">
|
||||||
|
<i class="fas fa-user-cog"></i>网站后台
|
||||||
</a>
|
</a>
|
||||||
<a class="badge badge-default ml-1 mr-1" href="<?php $this->options->siteUrl('admin/options-theme.php'); ?>" title="Settings">
|
<a class="badge badge-default ml-1 mr-1" href="<?php $this->options->siteUrl('admin/options-theme.php'); ?>" title="Settings">
|
||||||
<i class="far fa-cog"></i>
|
<i class="far fa-cog"></i>主题设置
|
||||||
<?php _e('主题设置'); ?>
|
|
||||||
</a>
|
</a>
|
||||||
<a class="badge badge-secondary ml-1 mr-1" href="#" onclick="javascript:location.reload();" title="Refresh">
|
<a class="badge badge-secondary ml-1 mr-1" href="#" onclick="javascript:location.reload();" title="Refresh">
|
||||||
<i class="fas fa-redo"></i>
|
<i class="fas fa-redo"></i>刷新
|
||||||
<?php _e('刷新'); ?>
|
|
||||||
</a>
|
</a>
|
||||||
<a class="badge badge-secondary ml-1 mr-1" href="<?php $this->options->logoutUrl(); ?>" title="Logout">
|
<a class="badge badge-secondary ml-1 mr-1" href="<?php $this->options->logoutUrl(); ?>" title="Logout">
|
||||||
<i class="fas fa-sign-out-alt"></i>
|
<i class="fas fa-sign-out-alt"></i>退出
|
||||||
<?php _e('退出'); ?>
|
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
@ -125,13 +120,13 @@ $this->need('functions.php'); // 不知道为啥,似乎模版页面不会自
|
||||||
<ul class="col navbar-nav justify-content-center pr-0">
|
<ul class="col navbar-nav justify-content-center pr-0">
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link nav-link-icon text-gray" href="<?php $this->options->siteUrl();?>">
|
<a class="nav-link nav-link-icon text-gray" href="<?php $this->options->siteUrl();?>">
|
||||||
<i class="fa fa-home"></i> <?php _e('首页') ?>
|
<i class="fa fa-home"></i> 首页
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<?php if (strpos($this->options->frontPage, 'file') !== FALSE) {?>
|
<?php if (strpos($this->options->frontPage, 'file') !== FALSE) {?>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link nav-link-icon text-gray" href="<?php echo $this->options->siteUrl.$this->options->routingTable['archive']['url'] ?>">
|
<a class="nav-link nav-link-icon text-gray" href="<?php echo $this->options->siteUrl.$this->options->routingTable['archive']['url'] ?>">
|
||||||
<i class="fa fa-book"></i> <?php _e('文章') ?>
|
<i class="fa fa-book"></i> 文章
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
Loading…
Reference in New Issue