-
Notifications
You must be signed in to change notification settings - Fork 37
/
header.php
114 lines (107 loc) · 5.3 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
104
105
106
107
108
109
110
111
112
113
114
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php require_once 'functions.php'; ?>
<!DOCTYPE HTML>
<?php
require_once 'config.php';
if ($GLOBALS['style_BG'] != '') {
echo '<style>';
echo "\n";
echo 'body{ background: #fff; } body::before{ background: url(' . $GLOBALS['style_BG'] . ') center/cover no-repeat; } blockquote::before{ background: transparent !important; }';
echo "\n";
echo '</style>';
echo "\n";
}
?>
<html>
<head>
<meta charset="<?php $this->options->charset(); ?>">
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title><?php $this->archiveTitle(array(
'category' => _t('%s'),
'search' => _t('%s'),
'tag' => _t('%s'),
'author' => _t('%s')
), '', ' - '); ?><?php $this->options->title(); ?></title>
<!-- 使用url函数转换相关路径 -->
<link type="text/css" rel="stylesheet" href="<?php $this->options->themeUrl('assert/css/bootstrap.min.css'); ?>">
<link type="text/css" rel="stylesheet" href="<?php $this->options->themeUrl('assert/css/prism.css'); ?>">
<link type="text/css" rel="stylesheet" href="<?php $this->options->themeUrl('assert/css/zoom.css'); ?>">
<link type="text/css" rel="stylesheet" href="<?php $this->options->themeUrl('assert/css/main.css'); ?>">
<?php if ($GLOBALS['isIconNav'] == 'on') : ?>
<link type="text/css" rel="stylesheet" href="<?php $this->options->themeUrl('assert/css/twemoji-awesome.css'); ?>">
<?php endif; ?>
<!--[if lt IE 9]>
<script src="http://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
<script src="http://cdn.staticfile.org/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->
<!-- 通过自有函数输出HTML头部信息 -->
<?php $this->header(); ?>
</head>
<body>
<!--[if lt IE 8]>
<div class="browsehappy" role="dialog"><?php _e('当前网页 <strong>不支持</strong> 你正在使用的浏览器. 为了正常的访问, 请 <a href="http://browsehappy.com/">升级你的浏览器</a>'); ?>.</div>
<![endif]-->
<header id="header" class="clearfix">
<div class="container-fluid">
<div class="row">
<div class="logo">
<div class="header-logo">
<!-- 标题开始 -->
<span class="b">Y</span>
<span class="b">U</span>
<a href="<?php $this->options->siteUrl(); ?>">
<span class="w">M</span>
</a>
<span class="b">O</span>
<span class="b">E</span>
<!-- 标题结束 -->
<a id="btn-menu" href="javascript:isMenu();">
<span class="b">·</span>
</a>
<a href="javascript:isMenu1();">
<?php if ($GLOBALS['isIconNav'] == 'on') : ?>
<span id="menu-1" class="bf"><i class="twa twa-flags"></i></span>
<?php else : ?>
<span id="menu-1" class="bf">1</span>
<?php endif; ?>
</a>
<a href="javascript:isMenu2();">
<?php if ($GLOBALS['isIconNav'] == 'on') : ?>
<span id="menu-2" class="bf"><i class="twa twa-evergreen-tree"></i></span>
<?php else : ?>
<span id="menu-2" class="bf">2</span>
<?php endif; ?>
</a>
<a href="javascript:isMenu3();">
<?php if ($GLOBALS['isIconNav'] == 'on') : ?>
<span id="menu-3" class="bf"><i class="twa twa-mag"></i></span>
<?php else : ?>
<span id="menu-3" class="bf">3</span>
<?php endif; ?>
</a>
</div>
<div id="menu-page">
<?php $this->widget('Widget_Contents_Page_List')->to($pages); ?>
<?php while ($pages->next()) : ?>
<a href="<?php $pages->permalink(); ?>">
<li><?php $pages->title(); ?></li>
</a>
<?php endwhile; ?>
<?php if ($GLOBALS['isRSS'] == 'on') : ?>
<a href="<?php $this->options->feedUrl(); ?>">
<li>RSS</li>
</a>
<?php endif; ?>
</div>
<div id="search-box">
<form id="search" method="post" action="./" role="search">
<input autocomplete="off" type="text" name="s" id="menu-search" placeholder="Type something~" />
</form>
</div>
</div>
</div>
</div>
</header>
<div id="body" class="clearfix">