-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathheader.php
138 lines (130 loc) · 8.44 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<!DOCTYPE html>
<html>
<head>
<meta charset="<?php $this->options->charset(); ?>">
<meta name="theme-color" content="#4c4c4c">
<meta name="applicable-device" content="pc,mobile">
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta http-equiv="X-UA-Compatible" content="IE=11,IE=10,IE=9,IE=8">
<title>
<?php $this->archiveTitle([
'category' => _t('分类 %s 下的文章'),
'search' => _t('包含关键字 %s 的文章'),
'tag' => _t('标签 %s 下的文章'),
'author' => _t('%s 发布的文章')
], '', ' - '); ?>
<?php $this->options->title(); ?>
</title>
<!-- Favicons -->
<link rel="shortcut icon" type="image/ico" href="<?php ($this->options->faviconUrl) ? $this->options->faviconUrl() : $this->options->themeUrl('images/favicon.ico'); ?>">
<link rel="icon" sizes="192x192" href="<?php ($this->options->faviconUrl) ? $this->options->faviconUrl() : $this->options->themeUrl('images/favicon.ico'); ?>">
<link rel="apple-touch-icon" href="<?php ($this->options->faviconUrl) ? $this->options->faviconUrl() : $this->options->themeUrl('images/favicon.ico'); ?>">
<!-- The Twitter Card protocol -->
<meta name="twitter:title" content="<?php $this->options->title(); ?>">
<meta name="twitter:description" content="<?php $this->options->description() ?>">
<meta name="twitter:image" content="<?php ($this->options->faviconUrl) ? $this->options->faviconUrl() : $this->options->themeUrl('images/favicon.ico'); ?>">
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:url" content="<?php $this->permalink(); ?>" />
<!-- QQ Card -->
<meta itemprop="name" content="<?php $this->options->title(); ?>"/>
<meta itemprop="image" content="<?php if ($this->options->ROWINGBOHE == '0'): ?><?php showThumbnail1($this); ?><?php elseif ($this->options->ROWINGBOHE == '1'): ?><?php showThumbnail2($this); ?><?php elseif ($this->options->ROWINGBOHE == '2'): ?><?php showThumbnail3($this); ?><?php elseif ($this->options->ROWINGBOHE == '3'): ?><?php $this->options->ROWINGBOHEUrl() ?><?php endif; ?>"/>
<meta name="description" itemprop="description" content="<?php $this->options->description() ?>" />
<link rel="stylesheet" href="<?php $this->options->themeUrl('style/style.css'); ?>" type="text/css">
<link rel="stylesheet" href="<?php $this->options->themeUrl('style/custom.css'); ?>" type="text/css">
<link rel="stylesheet" href="<?php $this->options->themeUrl('style/cue.css'); ?>" type="text/css">
<link rel="stylesheet" href="<?php $this->options->themeUrl('style/like.css'); ?>" type="text/css">
<link rel="stylesheet" href="<?php $this->options->themeUrl('style/emm.css'); ?>" type="text/css">
<link rel="stylesheet" href="<?php $this->options->themeUrl('style/style.mobile.css'); ?>" type="text/css">
<script src="https://cdnjs.loli.net/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
<!-- Font Awesome -->
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/fontawesome.min.css" integrity="sha256-BYjRZhSY2ARUPcFTf5eEh3qWK58O88TM7nZet/JUNhE=" crossorigin="anonymous">
<?php $this->header(); ?>
<?php $this->options->optionHeader() ?>
</head>
<body class="home blog" style="background-image: url(<?php $this->options->themeUrl('images/body_repeat.png'); ?>); background-color: #d4d5e0; background-repeat: repeat-x; background-position: center 0;">
<div id="wrapper" class="theme" style="background:url(<?php ($this->options->bgUrl) ? $this->options->bgUrl() : $this->options->themeUrl('images/bg.jpg'); ?>) no-repeat top center; padding-top:50px;background-position: 0px 48px;background-color: white;background-attachment:fixed;background-size:100%;">
<header id="header" class="site-header">
<!-- 导航 -->
<section class="topbar">
<div class="inner top-width">
<nav class="nav pull-left">
<ul id="menu-1" class="nav-menu top-menu icon">
<?php $this->options->menuContent(); ?>
</ul>
</nav>
<!-- 导航右侧 -->
<div class="meta pull-right">
<?php if($this->user->hasLogin()): ?>
欢迎 <?php $this->user->screenName(); ?> ~
<?php endif; ?>
<?php if ($this->options->searchOpen == '0'): ?>
<form id="search" method="post" class="searchform" action="<?php $this->options->siteUrl(); ?>" role="search">
<input type="text" id="s" name="s" class="textinput" size="26" placeholder="Search ...">
<span class="icon search-icon"></span></form>
<?php endif; ?>
<?php if ($this->options->loginButtonOpen == '0'): ?>
<div class="logged button">
<?php if($this->user->hasLogin()): ?>
<a href="<?php $this->options->logoutUrl(); ?>" target="_blank" class="login" style="margin-right:10px;">
<span class="icon"></span>Logout</a>
<?php else: ?>
<a href="<?php $this->options->loginUrl(); ?>" target="_blank" class="login" style="margin-right:10px;">
<span class="icon"></span>Sign in</a>
<?php endif; ?>
<?php if($this->user->hasLogin()): ?>
<a href="<?php $this->options->adminUrl(); ?>" target="_blank" class="login" style="margin-right:10px;">
Admin</a>
<?php else: ?>
<?php if ($this->options->registerOpen == '0'): ?>
<a href="<?php $this->options->adminUrl('register.php'); ?>" target="_blank" class="login" style="margin-right:10px;">
Sign up</a>
<?php endif; ?>
<?php endif; ?>
</div>
<?php endif; ?>
</div>
</div>
</section>
<!-- 导航结束 -->
<section class="banner bg" style="background-image: url(<?php ($this->options->cardBgUrl) ? $this->options->cardBgUrl() : $this->options->themeUrl('images/cardBg.jpg'); ?>)">
<div class="big-title">
<a style="color:#fff;" href="<?php $this->options->siteUrl(); ?>">
<h1 class="big-title-h1"><?php ($this->options->yourNickname) ? $this->options->yourNickname() : $this->options->title(); ?>
<i class="male" style="background-image:url(<?php $this->options->themeUrl('images/icon.png'); ?>);background-position: -100px -50px;"></i>
<i class="vip_lev" style="background-image:url(<?php $this->options->themeUrl('images/icon.png'); ?>);background-position: -25px -125px;"></i>
</h1>
</a>
<h3 class="big-title-h3 tips-top" aria-label="<?php ($this->options->yourDescription) ? $this->options->yourDescription() : $this->options->description(); ?>"><?php ($this->options->yourDescription) ? $this->options->yourDescription() : $this->options->description(); ?>
<br></h3>
</div>
<div class="contactme">
<div class="weixin">
<?php $this->options->profileText1(); ?>
<div class="weixin_drop-content">
<img class="weixin_qode" src="<?php ($this->options->profileLink1) ? $this->options->profileLink1() : $this->options->themeUrl('images/qrcode.jpg'); ?>" alt="二维码">
</div>
</div>
<a class="qq" href="<?php $this->options->profileLink2(); ?>">
<?php $this->options->profileText2(); ?>
</a>
<div class="menu">
<span>☰</span>
<div class="menu_drop-content">
<ul>
<?php $this->options->yourMenuContent(); ?>
</ul>
</div>
</div>
</div>
</section>
<div class="touxiang">
<a href="<?php $this->options->siteUrl(); ?>" target="_top">
<img src="<?php $this->options->headImgUrl(); ?>" alt="头像"></a>
<span class="renzheng" style="background-image:url(<?php $this->options->themeUrl('images/icon.png'); ?>);"></span>
</div>
<div class="banner-item width">
<a class="active" href="<?php $this->options->siteUrl(); ?>">我的主页</a>
</div>
</header>