Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6f042b0
commit 72ba01a
Showing
16 changed files
with
822 additions
and
891 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,55 @@ | ||
<?php if ( ! defined( '__TYPECHO_ROOT_DIR__' ) ) { | ||
exit; | ||
<?php if (!defined('__TYPECHO_ROOT_DIR__')) { | ||
exit; | ||
} ?> | ||
|
||
<?php $this->need( 'components/header.php' ); ?> | ||
<?php $this->need('components/header.php'); ?> | ||
|
||
|
||
<div class="container col-10" id="main"> | ||
|
||
<!-- <div class="col-12" id="title">--> | ||
<!-- <h1 class="archive-title">--> | ||
<!-- --><?php //$this->archiveTitle( array( | ||
// 'category' => _t( '%s' ), | ||
// 'search' => _t( '包含关键字 %s 的文章' ), | ||
// 'tag' => _t( '标签 %s 下的文章' ), | ||
// 'author' => _t( '%s 发布的文章' ) | ||
// ), '', '' ); ?> | ||
<!-- </h1>--> | ||
<!-- <hr>--> | ||
<!-- </div>--> | ||
<!-- <div class="col-12" id="title"> | ||
<h1 class="archive-title"> | ||
<?php // $this->archiveTitle(array( | ||
// 'category' => _t('%s'), | ||
// 'search' => _t('包含关键字 %s 的文章'), | ||
// 'tag' => _t('标签 %s 下的文章'), | ||
// 'author' => _t('%s 发布的文章') | ||
// )); | ||
?> | ||
</h1> | ||
<hr> | ||
</div> --> | ||
|
||
<div class="row"> | ||
<!-- <div class="col-12 col-lg-8" id="main" role="main">--> | ||
<div class="col-12 col-lg-8"> | ||
<?php if ( $this->have() ): ?> | ||
<?php while ( $this->next() ): ?> | ||
<?php if ($this->have()) : ?> | ||
<?php while ($this->next()) : ?> | ||
<article class="post" itemscope itemtype="http://schema.org/BlogPosting"> | ||
<h2 class="post-title" itemprop="name headline"> | ||
<a itemprop="url" href="<?php $this->permalink() ?>"><?php $this->title() ?></a> | ||
</h2> | ||
<p id="post-meta"> | ||
<i class="fa fa-clock-o"></i> <?php $this->date( 'Y.m.d' ); ?> | | ||
<i class="fa fa-clock-o"></i> <?php $this->date('Y.m.d'); ?> | | ||
<i class="fa fa-tags"></i> <?php $this->category(','); ?> | | ||
<i class="fa fa-thumbs-o-up"></i> <?php AnotherLike_Plugin::theLike(false, $this->cid);?> <?php _e("赞") ?> | | ||
<i class="fa fa-comments-o"></i> <?php $this->commentsNum( _t(' 0 条评论'), _t(' 1 条评论'), _t(' %d 条评论') ); ?> | ||
|
||
<i class="fa fa-thumbs-o-up"></i> <?php AnotherLike_Plugin::theLike(false, $this->cid); ?> <?php _e("赞") ?> | | ||
<i class="fa fa-comments-o"></i> <?php $this->commentsNum(_t(' 0 条评论'), _t(' 1 条评论'), _t(' %d 条评论')); ?> | ||
<!-- TODO: 输出点赞&浏览数--> | ||
</p> | ||
<div class="post-content" itemprop="articleBody"> | ||
<?php $this->content( _t('查看更多 ->') ); ?> | ||
<!-- --><?php //$this->excerpt( 100 ); ?> | ||
<?php $this->content(_t('查看更多 ->')); ?> | ||
</div> | ||
<hr/> | ||
<hr /> | ||
</article> | ||
<?php endwhile; ?> | ||
<?php else: ?> | ||
<?php endwhile; ?> | ||
<?php else : ?> | ||
<article class="post"> | ||
<h2 class="post-title"><?php _e( '没有找到内容' ); ?></h2> | ||
<h2 class="post-title"><?php _e('没有找到内容'); ?></h2> | ||
</article> | ||
<?php endif; ?> | ||
<?php $this->pageNav( _t('« 前一页'), _t('后一页 »') ); ?> | ||
<?php endif; ?> | ||
<?php $this->pageNav(_t('« 前一页'), _t('后一页 »')); ?> | ||
</div><!-- end #main --> | ||
<?php $this->need('components/sidebar.php'); ?> | ||
<?php $this->need('components/sidebar.php'); ?> | ||
</div><!-- end #row --> | ||
</div><!-- end #container --> | ||
|
||
<?php $this->need( 'components/footer.php' ); ?> | ||
<?php $this->need('components/footer.php'); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.