forked from ghboke/CorePressWPTheme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
78 lines (76 loc) · 2.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<!doctype html>
<html lang="zh">
<head>
<?php get_header(); ?>
</head>
<body>
<div id="app">
<header>
<div class="header-main-plane">
<div class="header-main container">
<?php
get_template_part('component/nav-header');
?>
</div>
</div>
</header>
<div style="min-height: 80px;width: 100%;"></div>
<main class="container">
<div class="html-main">
<?php
global $set;
if ($set['theme']['sidebar_position'] == 1) {
?>
<div class="post-main">
<?php get_template_part('component/post-main-index'); ?>
</div>
<div class="sidebar">
<div class="sidebar-box-list">
<?php dynamic_sidebar('index_sidebar'); ?>
</div>
</div>
<?php
} else {
?>
<div class="sidebar">
<div class="sidebar-box-list">
<?php dynamic_sidebar('index_sidebar'); ?>
</div>
</div>
<div class="post-main">
<?php get_template_part('component/post-main-index'); ?>
</div>
<?php
}
?>
</div>
<?php
if ($set['index']['links'] == 1) {
?>
<div class="frinds-links">
<div class="list-plane-title">
<p>友情链接</p>
<?php
if ($set['index']['applylink'] != null) {
?>
<a href="<?php echo $set['index']['applylink'] ?>" class="frinds-links-apply">申请友链</a>
<?
}
?>
</div>
<div class="frinds-links-list">
<?php wp_list_bookmarks('title_li=&categorize=0'); ?>
</div>
</div>
<?
}
?>
</main>
<footer>
<?php
wp_footer();
get_footer(); ?>
</footer>
</div>
</body>
</html>