forked from chakhsu/pinghsu
-
Notifications
You must be signed in to change notification settings - Fork 1
/
page-category.php
43 lines (41 loc) · 1.48 KB
/
page-category.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?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'); ?>