This repository has been archived by the owner on Jan 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathheader.php
103 lines (90 loc) · 4.79 KB
/
header.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<!DOCTYPE HTML>
<html lang="zh-CN">
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="<?php $this->options->charset(); ?>" />
<meta name="viewport" content="width=device-width,user-scalable=no">
<title><?php $this->archiveTitle(array(
'category' => _t('分类 %s 下的文章'),
'search' => _t('包含关键字 %s 的文章'),
'tag' => _t('标签 %s 下的文章'),
'author' => _t('%s 发布的文章')
), '', ' - '); ?><?php $this->options->title(); ?></title>
<!--[if lt IE 9]>
<script type="text/javascript" src="http://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
<![endif]-->
<link rel="shortcut icon" href="<?php $this->options->themeUrl('/img/favicon.ico'); ?>">
<!-- google cerfication -->
<meta name="google-site-verification" content="ByVfaP_E3b9ZYRUGhNAUFSQKL8mJQwUehpQwoxJ5n-c" />
<link rel="stylesheet" href="http://cdn.staticfile.org/normalize/3.0.1/normalize.min.css">
<link rel="stylesheet" href="<?php $this->options->themeUrl('style.min.css'); ?>">
<script type="text/javascript" src="http://cdn.staticfile.org/jquery/1.11.0/jquery.min.js"></script>
<?php $this->header("generator=&template=&"); ?>
</head>
<body>
<div class="move-block">
<header id="header" class="clearfix">
<div class="container">
<div class="col-group">
<div class="site-name ">
<?php if ($this->is('index')): ?>
<a id="logo" href="<?php $this->options->siteUrl(); ?>">
<?php $this->options->title() ?>
</a>
<h1><?php $this->options->title() ?></h1>
<?php else:?>
<a id="logo" href="<?php $this->options->siteUrl(); ?>">
<?php $this->options->title() ?>
</a>
<?php endif; ?>
<p class="description"><?php $this->options->description() ?></p>
</div>
<div>
<nav id="nav-menu" class="clearfix">
<ul>
<li><a class="<?php if($this->is('index')): ?>current<?php endif; ?>" href="<?php $this->options->siteUrl(); ?>"><?php _e('博客'); ?></a></li>
<?php $this->widget('Widget_Metas_Category_List')->to($category); ?>
<?php $lp = 0; ?>
<?php while ($category->next()): ?>
<?php if(($category->levels) == 0): ?>
<?php if ($lp == 1): ?>
</ul>
<?php endif; ?>
<?php if ($lp != 0): ?>
</li>
<?php endif; ?>
<?php $lp = 2; ?>
<li><a <?php if($this->is('category', $category->slug) || ($this->category == $category->slug) ): ?> class="current"<?php endif; ?> href="<?php $category->permalink(); ?>" title="<?php $category->name(); ?>"><?php $category->name(); ?></a>
<?php endif; ?>
<?php if(($category->levels) == 1): ?>
<?php if ($lp == 2): ?>
<ul>
<?php endif; ?>
<li><a <?php if($this->is('category', $category->slug) || ($this->category == $category->slug) ): ?> class="current"<?php endif; ?> href="<?php $category->permalink(); ?>" title="<?php $category->name(); ?>"><?php $category->name(); ?></a>
</li>
<?php $lp = 1; ?>
<?php endif; ?>
<?php endwhile; ?>
<?php if ($lp == 1): ?>
</ul>
<?php endif; ?>
<?php if ($lp != 0): ?>
</li>
<?php endif; ?>
<?php $this->widget('Widget_Contents_Page_List')->to($pages); ?>
<?php while($pages->next()): ?>
<li><a <?php if($this->is('page', $pages->slug)): ?> class="current"<?php endif; ?> href="<?php $pages->permalink(); ?>" title="<?php $pages->title(); ?>"><?php $pages->title(); ?></a></li>
<?php endwhile; ?>
</ul>
</nav>
</div>
</div>
</div>
</header>
<div class="side-click icon-arrow-down"></div>
<div id="body">
<div class="container">
<div class="col-group">