-
Notifications
You must be signed in to change notification settings - Fork 55
/
page-categoies.php
40 lines (38 loc) · 1.63 KB
/
page-categoies.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
<?php
/**
* 分类页面
*
* @package custom
*/
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('template-parts/header.php');
?>
<?php $this->need('template-parts/left.php'); ?>
<div class="col-md-12 col-lg-8" id="middle">
<?php $this->need('template-parts/navbar.php'); ?>
<div class="container-fluid p-4 d-flex flex-column row-gap-3">
<div class="card border-0 py-3 col-12">
<div class="d-flex column-gap-2">
<div class="card-body p-0 d-flex flex-column justify-content-between row-gap-1 overflow-hidden"
id="page-archive-category">
<h3><?php $this->title(); ?></h3>
<div class="row pb-5">
<div class="col-12">
<?php Widget\Metas\Category\Rows::alloc()->to($categoies); ?>
<div class="d-flex flex-wrap column-gap-4 row-gap-2">
<?php while ($categoies->next()): ?>
<a href="<?php $categoies->permalink(); ?>"
title="<?php $categoies->name(); ?>(<?php $categoies->count(); ?>)篇文章)">
<?php $categoies->name(); ?>(<?php $categoies->count(); ?>)
</a>
<?php endwhile; ?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php $this->need('template-parts/right.php'); ?>
<?php $this->need('template-parts/footer.php'); ?>