-
Notifications
You must be signed in to change notification settings - Fork 111
/
category.php
55 lines (51 loc) · 1.98 KB
/
category.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
<?php
get_header();
$cat = get_the_category();
$catid=$cat[0]->cat_ID;
?>
<div class="layui-container" id="main">
<div class="blog-title"><?php obj_title_icon();
bloginfo('name'); ?>
<div class="close"><i class="layui-icon layui-icon-close"></i>
</div>
</div>
<div class="toolbar">
<div class="layui-row">
<div class="obj_menu_header">
<?php get_nav_menu_obj(); ?>
</div>
</div>
<div class="layui-row">
<div class="layui-col-md1 <?php get_self_adaption_css()?>">
<div class="toobar-col"><i class="fa fa-arrow-left" aria-hidden="true"
onclick="javascript :history.back(-1)"></i>
<i class="fa fa-arrow-right" aria-hidden="true" onclick="javascript :history.forward()"></i><i
class="fa fa-arrow-up" aria-hidden="true"></i></div>
</div>
<div class="layui-col-md9 layui-col-xs-12 layui-col-sm-12">
<div class="toolbar-url"><img class="toobar-icon" src="<?php echo getImgDir('folder.ico') ?>"
alt=""><span><a href="//<?php echo $_SERVER['SERVER_NAME']; ?>">本网站</a></span>><span><a href="<?php echo get_category_link($catid)?>"><?php echo get_cat_name($catid)?></a></span></div>
</div>
<div class="layui-col-md2 <?php get_self_adaption_css()?>">
<?php get_search_obj();?>
</div>
</div>
</div>
<div class="layui-row content">
<div class="layui-col-md2 sidebar <?php get_self_adaption_css()?>">
<?php get_sidebar() ?>
</div>
<div class="layui-col-md10 postlist">
<?php
default_post();
?>
</div>
<div class="posts-nav">
<?php posts_nav_link(' - '); ?>
</div>
</div>
</div>
<?php get_footer() ?>
<?php wp_footer(); ?>
</body>
</html>