-
Notifications
You must be signed in to change notification settings - Fork 72
/
Copy patharchive.php
50 lines (50 loc) · 1.7 KB
/
archive.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
<?php //通用(分类、搜索、标签、作者)页面文件?>
<?php if ( ! defined('__TYPECHO_ROOT_DIR__')) {
exit;
}
?>
<?php if ( ! isAjax()): ?>
<!DOCTYPE html>
<html lang="zh-CN">
<?php $this->need('./php_modules/notes.php');?>
<head>
<?php $this->need('./php_modules/default_head.php');?>
<?php $this->need('./dist/head/archive.php');?>
<?php //head标签底部插入代码 ?>
<?php $this->options->headInsertCode();?>
</head>
<body>
<?php $this->need('./php_modules/header.php');?>
<?php $this->need('./php_modules/nav.php');?>
<main class="main" role="main">
<div class="container">
<div class="main-content archive-content">
<div class="main-left">
<?php $this->need('./php_modules/archive/tips.php');?>
<?php endif;?>
<?php //是否有内容?>
<?php if ($this->have()): ?>
<?php $this->need('./php_modules/article_skeleton.php');?>
<?php $this->need('./php_modules/article_card.php');?>
<?php else: ?>
<?php $this->need('./php_modules/article_empty.php');?>
<?php endif;?>
<?php $this->need('./php_modules/article_pagination.php');?>
<?php if ( ! isAjax()): ?>
</div>
<div class="main-right">
<?php $this->need('./php_modules/home/recent_comments.php');?>
<?php $this->need('./php_modules/home/theme_tool.php');?>
<?php $this->need('./php_modules/footer.php');?>
</div>
</div>
</div>
</main>
<?php $this->need('./php_modules/fixed_tool.php');?>
<?php //body标签底部插入代码 ?>
<?php $this->options->bodyInsertCode();?>
<?php //typecho 插件挂接点 ?>
<?php $this->footer();?>
</body>
</html>
<?php endif;?>