1 Star 1 Fork 0

技术杨工/pinghsu

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
page-category.php 1.48 KB
一键复制 编辑 原始数据 按行查看 历史
chakhsu 提交于 2017-03-02 20:31 . update to v1.4.0
<?php
/**
* Template Page of Categorys Archives
*
* @package custom
*/
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('header.php');
?>
<div class="main-content archive-page clearfix">
<?php $this->widget('Widget_Metas_Category_List')->to($categorys);?>
<?php if ($categorys->have()): ?>
<?php while($categorys->next()): ?>
<div class="categorys-item">
<div class="categorys-title">
<a href="<?php $categorys->permalink();?>"><?php $categorys->name();?></a><span><?php $categorys->count();?></span>
</div>
<?php $catlist =$this->widget('Widget_Archive@categorys_'.$categorys->mid, 'pageSize=10000&type=category', 'mid='.$categorys->mid); ?>
<?php if($catlist->have()): ?>
<div class="post-lists">
<div class="post-lists-body">
<?php while($catlist->next()): ?>
<div class="post-list-item">
<div class="post-list-item-container">
<div class="item-label">
<div class="item-title"><a href="<?php $catlist->permalink() ?>"><?php $catlist->title() ?></a></div>
<div class="item-meta clearfix">
<div class="item-meta-date"> <?php $catlist->date('M j, Y'); ?> </div>
</div>
</div>
</div>
</div>
<?php endwhile; ?>
</div>
</div>
<?php endif; ?>
</div>
<?php endwhile; ?>
<?php endif; ?>
</div>
<?php $this->need('footer.php'); ?>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/yangshare/pinghsu.git
git@gitee.com:yangshare/pinghsu.git
yangshare
pinghsu
pinghsu
master

搜索帮助