1 Star 0 Fork 0

testnulldefined / typecho-blog-theme-two-siderbar

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
index.php 2.88 KB
一键复制 编辑 原始数据 按行查看 历史
testnulldefined 提交于 2018-07-15 23:15 . update
<?php
/**
* Postbird typecho 两栏博客简约主题
*
* @package Postbird-typecho-two-sidebar-block
* @author postbird
* @version 0.0.1
* @link http://www.ptbird.cn
*/
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('header.php');
?>
<div class="col-md-8 col-xs-12 " id="main" role="main">
<?php while($this->next()): ?>
<article class="post-wrapper" itemscope itemtype="http://schema.org/BlogPosting">
<div class="row">
<div class="col-md-12">
<h3><a class="title-link" itemprop="url" title="<?php $this->title() ?>" href="<?php $this->permalink() ?>"><?php $this->sticky(); $this->title(); ?></a></h3>
</div>
<div class="col-md-4 ">
<?php if(get_postthumb($this)) {?>
<a href="<?php $this->permalink() ?>">
<img src="<?php echo get_postthumb($this) ?>" alt="文章缩略图" class="post-thumb-image img-thumbnail">
</a>
<?php }else{?>
<div class="no-thumb-image">
<span>暂无缩略图</span>
</div>
<?php } ?>
</div>
<div class="col-md-8">
<!-- <hr>-->
<div class="post-content" itemprop="articleBody">
<?php $this->excerpt(100, '...'); ?>
</div>
</div>
<div class="col-md-12 post-meta">
<ul class="">
<li><?php _e('时间: '); ?><time datetime="<?php $this->date('c'); ?>" itemprop="datePublished"><?php $this->date(); ?></time></li>
<li itemprop="author" itemscope itemtype="http://schema.org/Person"><?php _e('作者: '); ?><a itemprop="name" href="<?php $this->author->permalink(); ?>" rel="author"><?php $this->author(); ?></a></li>
<li><?php _e('分类: '); ?><?php $this->category(','); ?></li>
<li itemprop="interactionCount"><a itemprop="discussionUrl" href="<?php $this->permalink() ?>#comments"><?php $this->commentsNum('0 条评论', '1 条评论', '%d 条评论'); ?></a></li>
<li class="float-right">
<a href="<?php $this->permalink() ?>" class="float-right">阅读全文</a>
</li>
</ul>
</div>
</div>
</article>
<?php endwhile; ?>
<nav aria-label="Page navigation ">
<?php $this->pageNav('«', '»', 1, '...', array('wrapTag' => 'ul', 'wrapClass' => 'pagination', 'itemTag' => 'li', 'itemClass'=>'page-item', 'textTag' => 'a', 'currentClass' => 'active', 'prevClass' => 'prev', 'nextClass' => 'next',)); ?>
</nav>
</div><!-- end #main-->
<?php $this->need('sidebar.php'); ?>
<?php $this->need('footer.php'); ?>
PHP
1
https://gitee.com/postbird/typecho-blog-theme-two-siderbar.git
git@gitee.com:postbird/typecho-blog-theme-two-siderbar.git
postbird
typecho-blog-theme-two-siderbar
typecho-blog-theme-two-siderbar
master

搜索帮助