-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathheader.php
123 lines (93 loc) · 5.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
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8" >
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
<title><?php $this->archiveTitle(array(
'category'=>_t('分类 %s 下的文章'),
'search'=>_t('包含关键字 %s 的文章'),
'tag' =>_t('标签 %s 下的文章'),
'author'=>_t('%s 发布的文章')
), '', ' - '); ?><?php $this->options->title(); ?><?php if($this->is('index')): ?> | <?php $this->options->description() ?>
<?php endif; ?></title>
<?php if (!empty($this->options->sidebarBlock) && in_array('Showcolor', $this->options->sidebarBlock)): ?>
<meta name="theme-color" content="#fff">
<?php endif; ?>
<?php if (!empty($this->options->sidebarBlock) && in_array('Showfull', $this->options->sidebarBlock)): ?>
<meta name="full-screen" content="yes">
<meta name="x5-fullscreen" content="true"> <?php endif; ?>
<link rel="icon" id="web-icon" href="/favicon.ico">
<link rel="apple-touch-icon" href="<?php $this->options->themeUrl('favicon.png'); ?>"/>
<link rel="alternative" type="application/atom+xml" title="RSS" href="<?php $this->options->feedUrl(); ?>">
<meta property="og:image" <?php if($this->is('post')||$this->is('page')): ?>
content="<?php showThumbnail($this); ?>"<?php else: ?>
<?php if ($this->options->logoUrl){ ?>content="<?php $this->options->logoUrl();?>"<?php }else{ ?>content="<?php $this->options->themeUrl('image/avatar.jpg'); ?>"<?php };?><?php endif; ?>>
<meta property="og:title" content="<?php $this->archiveTitle(array(
'category'=>_t('分类 %s 下的文章'),
'search'=>_t('包含关键字 %s 的文章'),
'tag' =>_t('标签 %s 下的文章'),
'author'=>_t('%s 的主页')
), '', ' - '); ?><?php $this->options->title(); ?>"/>
<meta property="og:description" content="<?php if($this->is('index')): ?> <?php $this->options->description() ?>
<?php else: ?><?php $this->description(); ?><?php endif; ?>">
<meta property="og:url" content="<?php $this->permalink() ?>"/>
<meta itemprop="name" content="<?php $this->archiveTitle(array(
'category'=>_t('分类 %s 下的文章'),
'search'=>_t('包含关键字 %s 的文章'),
'tag' =>_t('标签 %s 下的文章'),
'author'=>_t('%s 的主页')
), '', ' - '); ?><?php $this->options->title(); ?>">
<meta itemprop="description" content="<?php if($this->is('index')): ?> <?php $this->options->description() ?>
<?php else: ?><?php $this->description(); ?><?php endif; ?>">
<meta itemprop="image" <?php if($this->is('post')||$this->is('page')): ?>
content="<?php showThumbnail($this); ?>"<?php else: ?>
<?php if ($this->options->logoUrl){ ?>content="<?php $this->options->logoUrl();?>"<?php }else{ ?>content="<?php $this->options->themeUrl('image/avatar.jpg'); ?>"<?php };?><?php endif; ?>>
<!--STYLES--> <link rel="stylesheet" href="<?php $this->options->themeUrl('fontawesome.css'); ?>" type="text/css">
<link rel="stylesheet" href="<?php $this->options->themeUrl('style.min.css'); ?>" type="text/css">
<?php if($this->options->tf == 'open'||$this->options->tf == 'more'):?>
<style>.postShorten-header {text-align: center;}</style>
<?php endif; ?>
<?php if($this->options->page_suo == 'display'):?>
<style>#yl p{text-indent: 2em;} #yl p iframe{margin-left:-2em;} </style>
<?php endif; ?>
<?php if($this->options->page_suo == 'display1'):?><?php if($this->is('post')): ?>
<style>#yl p{text-indent: 2em;} #yl p iframe{margin-left:-2em;}</style>
<?php endif; ?><?php endif; ?>
<?php if($this->options->page_suo == 'display2'):?><?php if($this->is('page')): ?>
<style>#yl p{text-indent: 2em;} #yl p iframe{margin-left:-2em;} </style>
<?php endif; ?><?php endif; ?>
<!--STYLES END-->
<?php $this->header("generator=&template="); ?>
</head>
<body><div id="sos">
<div id="blog">
<!--[if lt IE 9]>
<div class="browsehappy" role="dialog"><?php _e('当前网页 <strong>不支持</strong> 你正在使用的浏览器. 为了正常的访问, 请 <a href="http://browsehappy.com/">升级你的浏览器</a>'); ?>.</div>
<![endif]-->
<?php if($this->is('post') || $this->is('page')): ?>
<header id="header" <?php if ($this->fields->fm){ ?>data-behavior="3" style=" opacity: 0.8;"<?php }else{ ?>
<?php if ($this->fields->ys){ ?>data-behavior="<?php $this->fields->ys(); ?>"<?php }else{ ?>
data-behavior="<?php $this->options->css(); ?>"<?php };?><?php };?>>
<i id="btn-open-sidebar" class="fa fa-lg fa-bars"></i>
<h1 class="header-title">
<a class="header-title-link" href="<?php $this->options->siteUrl(); ?>" ><?php $this->options->title(); ?></a>
</h1>
<a class="header-right-icon st-search-show-outputs"
id="sou">
<i class="fa fa-lg fa-search"></i>
</a>
</header>
<?php else: ?>
<header id="header" data-behavior="<?php $this->options->css(); ?>">
<i id="btn-open-sidebar" class="fa fa-lg fa-bars"></i>
<h1 class="header-title">
<a class="header-title-link" href="<?php $this->options->siteUrl(); ?>" ><?php $this->options->title(); ?></a>
</h1>
<a class="header-right-icon st-search-show-outputs"
id="sou">
<i class="fa fa-lg fa-search"></i>
</a>
</header>
<?php endif; ?>
<?php $this->need('sidebar.php'); ?>