-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathheader.php
More file actions
58 lines (55 loc) · 3.14 KB
/
header.php
File metadata and controls
58 lines (55 loc) · 3.14 KB
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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta http-equiv="content-type" content="text/html; charset=<?php $this->options->charset(); ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php $this->archiveTitle(' » ', '', ' - '); ?><?php $this->options->title(); ?></title>
<?php if ($this->is('post')): ?>
<link rel="canonical" href="<?php $this->permalink() ?>" />
<?php endif; ?>
<link rel="stylesheet" type="text/css" href="<?php $this->options->themeUrl(); ?>style.css">
<link rel="stylesheet" type="text/css" href="<?php $this->options->themeUrl(); ?>bootstarp.css">
<?php $this->header("generator=&template="); ?>
<script src="<?php $this->options->themeUrl(); ?>js/jquery.js"></script>
<script type="text/javascript" src="<?php $this->options->themeUrl(); ?>lazyload/lazyload.js"></script>
<script type="text/javascript">
jQuery(function() {
jQuery("img").not("#respond_box img").lazyload({
placeholder:"<?php $this->options->themeUrl(); ?>lazyload/loading.gif",
effect:"fadeIn"
});
});
</script>
</head>
<body>
<div id="Main">
<div id="Header">
<a href="<?php $this->options->siteUrl(); ?>" title="<?php $this->options->title(); ?>">
<?php if ($this->options->logoUrl): ?>
<img src="<?php $this->options->logoUrl() ?>" alt="<?php $this->options->title() ?>" />
<?php else : ?>
<span style="font-size:35px;margin-bottom: 13px;"><?php $this->options->title(); ?></span><span><?php $this->options->description() ?></span>
<?php endif ?>
</a>
</div>
<div id="Center">
<ul class="breadcrumb">
<li <?php if($this->is('index')): ?> class="current"<?php endif; ?><?php if ($this->is('post')): ?>class="active"<?php endif; ?>><a href="<?php $this->options->siteUrl(); ?>">首页</a></li>
<?php if ($this->options->menuDisplay == 'page') { ?>
<?php $this->widget('Widget_Contents_Page_List')->to($pages); ?>
<?php while($pages->next()): ?>
<li <?php if($this->is('page', $pages->slug)): ?> class="active"<?php endif; ?>><a href="<?php $pages->permalink(); ?>"><?php $pages->title(); ?></a></li>
<?php endwhile; ?>
<?php } ?>
<?php if ($this->options->menuDisplay == 'cat') { ?>
<?php $this->widget('Widget_Metas_Category_List')->to($categories); ?>
<?php while($categories->next()): ?>
<li<?php if($this->is('category', $categories->slug)): ?> class="active"<?php endif; ?>><a href="<?php $categories->permalink(); ?>"><?php $categories->name(); ?></a></li>
<?php endwhile; ?>
<?php } ?>
<li><a href="<?php $this->options->feedUrl(); ?>" class="menu-rss" target="_blank">订阅</a></li>
<form style="display:inline;" class="form-search" action="/search" method="get" >
<input style="height:13px;width:120px;display:inline;color:#999;float:right" type="text" class="input-medium search-query" name="s" value="回车以搜索..." onfocus="if (value =='回车以搜索...'){value =''}" onblur="if (value ==''){value='回车以搜索...'}" lang="zh-CN" >
</form>
</ul><div id="bottom-bar"></div>
</div>