主题简介
7TEC 主题是基于主题 Quiet 进行样式修改调整而成的一款响应式Typecho 主题,以文字为主,清新的白色风格。
主题功能
自带赞赏功能,内置广告位,支持统计文章文字字数,整体简洁美观外还有带有精致的观感。
主题缺点
存在部分写死内容。
主题截图
主题使用
存档页面模板
来源于网络,没有检查
<?php
/**
* 自定义归档页文档
*
* @package custom
*/
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('header.php'); ?>
<div class="col-sm-12 col-lg-8" id="main" role="main">
<article class="post Card typo" itemscope itemtype="http://schema.org/BlogPosting">
<div class="post-box paddingall">
<div class="post-title-box">
<h1 class="post-title" itemprop="name headline"><?php $this->title() ?></h1>
</div>
<div class="post-content" itemprop="articleBody">
<?php $this->widget('Widget_Contents_Post_Recent', 'pageSize=10000')->to($archives);
$year=0; $mon=0; $i=0; $j=0;
$output = '<div id="archives">';
while($archives->next()):
$year_tmp = date('Y',$archives->created);
$mon_tmp = date('m',$archives->created);
$y=$year; $m=$mon;
if ($mon != $mon_tmp && $mon > 0) $output .= '</ul></li>';
if ($year != $year_tmp && $year > 0) $output .= '</ul>';
if ($year != $year_tmp) {
$year = $year_tmp;
$output .= '<h3>'. $year .' 年</h3><ul>'; //输出年份
}
if ($mon != $mon_tmp) {
$mon = $mon_tmp;
$output .= '<li><span>'. $mon .' 月</span><ul>'; //输出月份
}
$output .= '<li>'.date('d日: ',$archives->created).'<a href="'.$archives->permalink .'">'. $archives->title .'</a></li>'; //输出文章日期和标题
endwhile;
$output .= '</ul></li></ul></div>';
echo $output;
?>
</div>
</div>
</article>
</div><!-- end #main-->
<?php $this->need('sidebar.php'); ?>
<?php $this->need('footer.php'); ?>主题历史
(暂无)
资源下载
📌 使用须知
下载并使用本资源,即代表你已阅读并同意以下条款:
- 本资源由本站免费收集/分享,仅供合法用途,不得转售。
- 资源版权归原作者所有,本站不对资源的合法性、安全性作任何担保。
- 你(使用者)须对使用本资源产生的全部内容及后果承担法律责任。
- 如涉及侵权,请联系本站(分享者)删除,本站不承担连带责任。

精选留言