-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathheader.php
More file actions
117 lines (114 loc) · 6.93 KB
/
header.php
File metadata and controls
117 lines (114 loc) · 6.93 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
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
115
116
117
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="<?php $this->options->charset(); ?>"><?php if ($this->options->DnsPrefetch): ?>
<meta http-equiv="x-dns-prefetch-control" content="on"><?php if ($this->options->cdn_add): ?>
<link rel="dns-prefetch" href="<?php $this->options->cdn_add(); ?>" /><?php endif; ?>
<link rel="dns-prefetch" href="//cdn.bootcss.com"/>
<link rel="dns-prefetch" href="//secure.gravatar.com"/><?php endif; ?>
<script src="https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/jquery/3.3.1/jquery.min.js?v20250714"></script>
<script src="<?php $this->options->themeUrl('js/OwO.min.js?v20250714'); ?>"></script>
<script src="<?php $this->options->themeUrl('js/blazy.min.js?v20250714'); ?>"></script>
<?php if ($this->options->pjaxSet == 'able'): ?>
<script src="<?php $this->options->themeUrl('js/instantclick.min.js?v20250714'); ?>" data-no-instant></script>
<?php endif; ?>
<link rel="stylesheet" href="<?php $this->options->themeUrl('css/OwO.min.css?v20250714'); ?>">
<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.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta http-equiv="Cache-Control" content="no-transform"/>
<meta http-equiv="Cache-Control" content="no-siteapp"/><?php if ($this->options->favicon): ?>
<link rel="shortcut icon" href="<?php $this->options->favicon(); ?>"><?php endif; ?><?php if ($this->options->iosicon): ?>
<link rel="apple-touch-icon" href="<?php $this->options->iosicon(); ?>"><?php endif; ?>
<title><?php $this->archiveTitle(array(
'category' => _t(' %s '),
'search' => _t(' %s '),
'tag' => _t(' %s '),
'author' => _t(' %s '),
'date' => _t(' %s ')
), '', ' - '); ?><?php $this->options->title(); ?></title>
<meta name="keywords" content="<?php $this->keywords(); ?>"/>
<?php $this->header('keywords=&generator=&template=&pingback=&xmlrpc=&wlw=&commentReply=&rss1=&rss2=&atom='); ?>
<link href="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/highlight.js/11.4.0/styles/xcode.min.css" rel="stylesheet">
<link href="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/emojify.js/1.1.0/css/basic/emojify.min.css" rel="stylesheet">
<link href="<?php $this->options->themeUrl('css/style.min.css?v20250714010'); ?>" rel="stylesheet">
<style>
/* 懒加载样式 */
.b-lazy {
transition: opacity 500ms ease-in-out;
max-width: 100%;
opacity: 0;
}
.b-lazy.b-loaded {
opacity: 1;
}
</style>
<!--[if lt IE 9]>
<script src="https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body class="<?php if (isset($this->___fields()['archive'])): ?>bg-grey<?php elseif ($this->is('archive') && ($this->options->colorBgPosts == 'defaultColor')): ?>bg-grey<?php elseif ($this->is('archive') && ($this->options->colorBgPosts == 'customColor')): ?>bg-white<?php elseif (!$this->is('single')): ?>bg-grey<?php endif; ?>" gtools_scp_screen_capture_injected="true">
<!--[if lt IE 8]>
<div class="browsehappy" role="dialog">
当前网页 <strong>不支持</strong> 你正在使用的浏览器. 为了正常的访问, 请
<a href="http://browsehappy.com/" target="_blank">升级你的浏览器</a>。
</div>
<![endif]-->
<header id="header" class="header bg-white">
<div class="navbar-container">
<a href="<?php $this->options->siteUrl(); ?>" class="navbar-logo">
<?php if ($this->options->logoUrl): ?>
<img src="<?php $this->options->logoUrl(); ?>" alt="<?php $this->options->title() ?>"/>
<?php else : ?>
<?php $this->options->title() ?>
<?php endif; ?>
</a>
<div class="navbar-menu">
<?php if ($this->options->categoryNav == 'able'): ?>
<?php $this->widget('Widget_Metas_Category_List')->to($category); ?>
<?php while ($category->next()): ?>
<a<?php if ($this->is('post')): ?><?php if ($this->category == $category->slug): ?> class="current" <?php endif; ?><?php else: ?><?php if ($this->is('category', $category->slug)): ?> class="current" <?php endif; ?><?php endif; ?> href="<?php $category->permalink(); ?>"><?php $category->name(); ?></a>
<?php endwhile; ?>
<?php endif; ?>
<?php $this->widget('Widget_Contents_Page_List')->to($pages); ?>
<?php while ($pages->next()): ?>
<a<?php if ($this->is('page', $pages->slug)): ?> class="current" <?php endif; ?> href="<?php $pages->permalink(); ?>"><?php $pages->title(); ?></a>
<?php endwhile; ?>
</div>
<?php if ($this->options->searchPage): ?>
<a href="<?php $this->options->searchPage(); ?>" class="navbar-search">
<span class="icon-search"></span>
</a>
<?php else: ?>
<div class="navbar-search" onclick="">
<span class="icon-search"></span>
<form id="search" method="post" action="<?php $this->options->siteUrl(); ?>" role="search">
<span class="search-box">
<input type="text" id="input" class="input" name="s" required="true" placeholder="Search..." maxlength="30" autocomplete="off">
</span>
</form>
</div>
<?php endif; ?>
<div class="navbar-mobile-menu" onclick="">
<span class="icon-menu cross"><span class="middle"></span></span>
<ul>
<?php if ($this->options->categoryNav == 'able'): ?>
<?php $this->widget('Widget_Metas_Category_List')->to($category); ?>
<?php while ($category->next()): ?>
<li>
<a<?php if ($this->is('post')): ?><?php if ($this->category == $category->slug): ?> class="current" <?php endif; ?><?php else: ?><?php if ($this->is('category', $category->slug)): ?> class="current" <?php endif; ?><?php endif; ?> href="<?php $category->permalink(); ?>"><?php $category->name(); ?></a>
</li>
<?php endwhile; ?>
<?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(); ?>"><?php $pages->title(); ?></a>
</li>
<?php endwhile; ?>
</ul>
</div>
</div>
</header>