Skip to content

Commit

Permalink
局部修改
Browse files Browse the repository at this point in the history
beta5
  • Loading branch information
txperl committed Aug 7, 2017
1 parent c516d90 commit ff82213
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
3 changes: 2 additions & 1 deletion config.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@

//主页
$GLOBALS['index_QuickPreview'] = '1'; //每页默认显示 X 个快速预览
$GLOBALS['index_PagingReversal'] = 'off'; //主页分页反转 &关闭: 第三页:< (第二页) >:第一页 &开启后: 第一页:< (第二页) >:第三页

//样式
$GLOBALS['style_TextBar'] = '1'; //文章页头部信息 | 1:功能按钮及分享按钮 (文章目录导航仅支持 h3,h4 层级) 0:纯文本
$GLOBALS['style_TextIndent'] = 'on'; //首行缩进
$GLOBALS['style_TextIndent'] = 'off'; //首行缩进
$GLOBALS['style_CommentShow'] = 'off'; //默认显示评论
$GLOBALS['style_Color'] = 'normal'; //全局配色设定 | 下个版本开放

Expand Down
24 changes: 19 additions & 5 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('header.php');
$i=0;
?>
?>

<div id="main" class="container">
<div id="main-index" style="display: none;">
Expand Down Expand Up @@ -50,8 +50,15 @@
<div id="pagenav" class="text-center" style="display: none;">
<ul class="pager">
<li class="previous">
<?php $this->pageLink('<span><i class="fui-arrow-left"></i></span>','next'); ?>
<?php if($this->is('index') && $this->_currentPage == $totalpages){echo '<a title="没有惹" data-toggle="tooltip"><span><i class="fui-arrow-left"></i></span></a>';} ?>
<?php
if ($GLOBALS['index_PagingReversal']=='on') {
$this->pageLink('<span><i class="fui-arrow-left"></i></span>');
if($this->is('index') && $this->_currentPage == 1){echo '<a title="没有惹" data-toggle="tooltip"><span><i class="fui-arrow-left"></i></span></a>';}
} else {
$this->pageLink('<span><i class="fui-arrow-left"></i></span>','next');
if($this->is('index') && $this->_currentPage == $totalpages){echo '<a title="没有惹" data-toggle="tooltip"><span><i class="fui-arrow-left"></i></span></a>';}
}
?>
</li>

<!-- Make dropdown appear above pagination -->
Expand Down Expand Up @@ -79,8 +86,15 @@
</li>

<li class="next">
<?php $this->pageLink('<span><i class="fui-arrow-right"></i></span>'); ?>
<?php if($this->is('index') && $this->_currentPage == 1){echo '<a title="没有惹" data-toggle="tooltip"><span><i class="fui-arrow-right"></i></span></a>';} ?>
<?php
if ($GLOBALS['index_PagingReversal']=='on') {
$this->pageLink('<span><i class="fui-arrow-right"></i></span>','next');
if($this->is('index') && $this->_currentPage == $totalpages){echo '<a title="没有惹" data-toggle="tooltip"><span><i class="fui-arrow-right"></i></span></a>';}
} else {
$this->pageLink('<span><i class="fui-arrow-right"></i></span>');
if($this->is('index') && $this->_currentPage == 1){echo '<a title="没有惹" data-toggle="tooltip"><span><i class="fui-arrow-right"></i></span></a>';}
}
?>
</li>
</ul>
</div>
Expand Down

0 comments on commit ff82213

Please sign in to comment.