-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathheader.php
79 lines (79 loc) · 3.75 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
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php $this->archiveTitle(array(
'category' => _t('分类 %s 下的文章'),
'search' => _t('包含关键字 %s 的文章'),
'tag' => _t('标签 %s 下的文章'),
'author' => _t('%s 发布的文章')
), '', ' - '); ?><?php $this->options->title(); ?></title>
<link href="<?php $this->options->themeUrl('favicon.ico'); ?>" rel="shortcut icon" type="image/x-icon">
<!-- css -->
<link rel="stylesheet" href="<?php $this->options->themeUrl('css/bootstrap.min.css'); ?>">
<link rel="stylesheet" href="<?php $this->options->themeUrl('css/font-awesome.min.css'); ?>">
<link rel="stylesheet" href="<?php $this->options->themeUrl('css/main.css'); ?>">
<link rel="stylesheet" href="<?php $this->options->themeUrl('css/skin-'. get_theme_color() .'.css'); ?>">
<!-- 通过自有函数输出HTML头部信息 -->
<?php if(class_exists('Snow_Plugin') && isset($this->options->plugins['activated']['Snow'])): ?>
<style>
#logo:after{
content:url(<?php $this->options->themeUrl('img/hat.png'); ?>);
display:block;
position:absolute;
top:25px;
left:180px;/* 根据实际情况修改定位*/
}
</style>
<?php endif; ?>
<?php $this->header(); ?>
</head>
<body>
<?php if(!($this->is('post') || $this->is('page')) || empty($this->options->ShowBlock) || !in_array('HeaderHiddenInDetail', $this->options->ShowBlock)): ?>
<header id="l-header" class="l-header" style="background-image:url(<?php $this->options->bgImg(); ?>)">
<div class="hdbg"></div>
<div class="hdbg2 skin-bg"></div>
<div class="m-about">
<div id="logo">
<a href="<?php $this->options->siteUrl(); ?>"><img src="<?php $this->options->headerIcon(); ?>" alt=""></a>
</div>
<h1 class="tit"><a href="<?php $this->options->siteUrl(); ?>"><?php $this->options->title(); ?></a></h1>
<div class="about"><?php $this->options->description(); ?></div>
</div>
<div id="header-canvas" style="width: 100%;height: 100%"></div>
</header>
<?php endif; ?>
<div id="m-nav" class="m-nav">
<div class="m-nav-all">
<div class="m-logo-url">
<img src="<?php $this->options->headerIcon(); ?>">
<h3><?php $this->options->sideName(); ?></h3>
</div>
<?php $this->widget('Widget_Contents_Page_List')->to($pages); ?>
<ul class="nav">
<li <?php if($this->is('index')): ?> class="active"<?php endif; ?>>
<a href="<?php $this->options->siteUrl(); ?>"><?php _e('首页'); ?></a>
</li>
<?php while($pages->next()): ?>
<li <?php if($this->is('page', $pages->slug)): ?> class="active"<?php endif; ?>>
<a href="<?php $pages->permalink(); ?>" title="<?php $pages->title(); ?>"><?php $pages->title(); ?></a>
</li>
<?php endwhile; ?>
</ul>
</div>
</div>
<form role="search" method="get" id="search-form" action="./">
<div class="search-form">
<span id="search-form-close">×</span>
<input placeholder="Search for" name="s" id="search-input-s" type="text">
<input class="webFont" id="searchsubmit" value="L" type="submit">
</div>
</form>
<div id="m-header" class="m-header">
<div id="showLeftPush" class="left m-header-button"></div>
<h1><a href="<?php $this->options->siteUrl(); ?>"><?php $this->options->title(); ?></a></h1>
<div id="search-trigger" style="font-size: 18px;" class="right m-header-search"></div>
</div>