-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
38 lines (33 loc) · 1.18 KB
/
index.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
<?php
/**
* 超简洁的typecho皮肤SIMPLETYPE 4.2
*
* @package SimpleType
* @author Roogle
* @version 4.2
* @link http://www.moidea.info
*/
$this->need('header.php');
?>
<div class="container ofh">
<div class="show-box">
<ul class="show-list">
<?php $this->widget('Widget_Metas_Category_List')->to($categories); ?>
<?php while ($categories->next()): ?>
<?php $this->widget('Widget_Archive@category-' . $categories->mid, 'pageSize=4&type=category', 'mid=' . $categories->mid)->to($posts); ?>
<li class="show-list-item">
<a class="show-list-item-head" href="<?php $categories->permalink(); ?>">
<img alt="<?php $categories->name(); ?>" src="<?php $categories->options->themeUrl(); ?>img/c-<?php $categories->slug(); ?>.png">
<div><?php $categories->name(); ?></div>
</a>
<ol class="episode-list">
<?php while ($posts->next()): ?>
<li class="episode-list-item" value="<?php $posts->cid(); ?>"><a href="<?php $posts->permalink(); ?>" title="<?php $posts->title() ?>"><?php $posts->title() ?></a></li>
<?php endwhile; ?>
</ol>
</li>
<?php endwhile; ?>
</ul>
</div>
</div>
<?php $this->need('footer.php'); ?>