-
Notifications
You must be signed in to change notification settings - Fork 73
/
Copy pathindex.php
63 lines (63 loc) · 2 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
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
<?php
/**
* 掘金高仿版
* ---------------------
* 本主题仅供学习交流使用,严禁用于商业用途,请于24小时内删除
*
* @package JJ
* @author 木灵鱼儿
* @version 2.3.8
* @link https://www.mulingyuer.com
*/
?>
<?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/home.php');?>
<?php //head标签底部插入代码 ?>
<?php $this->options->headInsertCode();?>
</head>
<body>
<h1 style="display:none;"><?php blogTitle($this);?></h1>
<?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 home-content">
<div class="main-left">
<?php $this->need('./php_modules/home/nav.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/recommended_article.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;?>