Skip to content

Commit 4f9df10

Browse files
author
Xingr
committed
#15 修复分类页分页问题、添加友联单页模板评论头像调整、页面字体微调
#15 修复分类页分页问题、添加友联单页模板评论头像调整、页面字体微调
1 parent b069021 commit 4f9df10

5 files changed

Lines changed: 39 additions & 8 deletions

File tree

category.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@
1616
<?php endwhile; ?>
1717
</ul>
1818
</section>
19-
<section class="pager">
20-
<div class="paginator pager pagination no_pages">
21-
<div class="paginator_container pagination_container"></div>
22-
</div>
23-
</section>
19+
<section class="list-pager">
20+
<?php $this->pageLink('<i class="iconfont icon-left"></i> 上一页'); ?>
21+
<?php $this->pageLink('下一页<i class="iconfont icon-right"></i>','next'); ?>
22+
<div class="clear">
23+
</div>
24+
</section>
25+
2426
</main>
2527
</div>
2628
<?php $this->need('footer.php'); ?>

css/style.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/vcomments.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* 又改名为Fantasy取义“清梦”源自“ 醉后不知天在水,满船清梦压星河。” 意图用来描绘现状。
66
* @package Fantasy Theme
77
* @author Intern
8-
* @version 1.3.0
8+
* @version 1.4.0
99
* @link https://wwww.xde.io/
1010
*/
1111
if (!defined('__TYPECHO_ROOT_DIR__')) exit;

links.php

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
/**
3+
* 友情链接
4+
*
5+
* @package custom
6+
*/
7+
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
8+
$this->need('header.php');
9+
?>
10+
<main>
11+
<article class="content">
12+
<h1><?php $this->title() ?></h1>
13+
<div class="meta">
14+
<span class="item"><i class="iconfont icon-calendar"></i><time datetime="<?php $this->date(); ?>"><?php $this->date('Y.m.d'); ?></time></span>
15+
<?php if ($this->options->eyeshow == 'able'): ?><span class="item"><i class="iconfont icon-eye"></i> <?php get_post_view($this) ?> 度</span><?php endif; ?>
16+
<?php if($this->user->hasLogin()):?><span><a href="<?php $this->options->siteUrl(); ?>admin/write-post.php?cid=<?php $this->cid(); ?>">[编辑]</a></span><?php endif;?>
17+
</div>
18+
<div class="meta">
19+
<?php $this->content(); ?>
20+
</div>
21+
</article>
22+
<section class="pager">
23+
</section>
24+
25+
</main>
26+
</div>
27+
<script>document.querySelectorAll('ul.flinks').forEach(function(e){let a=e;if(a){let ns=a.querySelectorAll("li");let str='<div style="display:inline-block;">';for(let i=0;i<ns.length;i+=4){str+=(`<div class="flink-item link-bg"><div class="flink-title"><a href="${ns[i+1].innerText}"target="_blank"rel="external nofollow ugc">${ns[i].innerText}</a></div><div class="flink-link"><div class="flink-link-ico"style="background: url(${ns[i+2].innerText});background-size: 42px auto;"></div><div class="flink-link-text">${ns[i+3].innerText}</div></div></div>`)}str+=`</div>`;let n1=document.createElement("div");n1.innerHTML=str;a.parentNode.insertBefore(n1,a);a.style="display: none;"}});</script>
28+
<style>.flink-item{width:300px;height:100px;position:relative;margin:10px;background-color: #f7f7f7;border-radius:3px;float:left;}.flink-title{left:25px;top:25px;position:absolute}.flink-title a{font-size:17px;color:#6b6b6b;line-height:17px;word-break:break-all;text-decoration:none;outline:0}.flink-link{right:0;bottom:0;padding:0 15px 0px;position:absolute;text-align:right}.flink-link-text{font-size:12px;color:#999}.flink-link-ico{display:inline-block;width:42px;height:42px;border-radius:50%}</style>
29+
<?php $this->need('footer.php'); ?>

0 commit comments

Comments
 (0)