forked from jrotty/Themia-for-TE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
categories.php
87 lines (55 loc) · 2.75 KB
/
categories.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?php
/**
* categories
*
* @package custom
*
*/
$this->need('header.php');
?> <header id="header"
data-behavior="<?php $this->options->css(); ?>">
<i id="btn-open-sidebar" class="fa fa-lg fa-bars"></i>
<h1 class="header-title">
<a class="header-title-link" href="<?php $this->options->siteUrl(); ?>" ><?php $this->options->title(); ?></a>
</h1>
<a class="header-right-icon st-search-show-outputs"
href="#about">
<i class="fa fa-lg fa-search"></i>
</a>
</header>
<nav id="sidebar"
data-behavior="<?php $this->options->css(); ?>">
<?php $this->need('sidebar.php'); ?>
<div id="main" data-behavior="<?php $this->options->css(); ?>"
class="
hasCoverMetaIn
">
<div id="categories-archives" class="main-content-wrap">
按分类归档
<h4 class="archive-result text-color-base text-xlarge"></h4>
<section>
<?php $this->widget('Widget_Metas_Category_List')->to($category); ?>
<?php while ($category->next()): ?>
<a class="category category--small category--primary" href="#posts-list-<?php $category->name(); ?>" data-category="<?php $category->count(); ?>篇文章"><?php $category->name(); ?>(<?php $category->count(); ?>)</a>
<?php endwhile; ?>
</section>
<section class="boxes" id="disqus_thread">
<?php $this->widget('Widget_Metas_Category_List')->to($categories); ?>
<?php while ($categories->next()): ?>
<?php $this->widget('Widget_Archive@category-' . $categories->mid, 'pageSize=10000&type=category', 'mid=' . $categories->mid)->to($posts); ?> <div id="posts-list-Themia" class="archive box" data-category="themia">
<h4 class="archive-title">
<a href="<?php $categories->permalink(); ?>" class="link-unstyled" id="posts-list-<?php $categories->name(); ?>"><?php $categories->name(); ?></a>
</h4>
<ul class="archive-posts">
<?php while ($posts->next()): ?>
<li class="archive-post">
<a class="archive-post-title" href="<?php $posts->permalink(); ?>"><?php $posts->title(40); ?></a>
<span class="archive-post-date">-<?php $posts->date('M d,Y'); ?></span>
</li>
<?php endwhile; ?>
</ul>
</div>
<?php endwhile; ?>
</section>
</div>
<?php $this->need('footer2.php');?>