-
Notifications
You must be signed in to change notification settings - Fork 24
/
header.php
61 lines (61 loc) · 2.62 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
<!DOCTYPE html>
<html lang="zh-cmn-hans">
<head>
<meta charset="UTF-8">
<title><?php $this -> archiveTitle(array(
'category' => _t('%s'),
'search' => _t('含关键词 %s 的文章'),
'tag' => _t('标签 %s 下的文章'),
'author' => _t('%s 发布的文章')
), '', ' - '); $this -> options -> title(); ?></title>
<?php if($this -> options -> favicon): ?>
<link rel="icon" href="<?php $this -> options -> favicon() ?>" sizes="192x192"/>
<?php else: ?>
<link rel="icon" href="<?php $this -> options -> themeUrl('static/img/icon.png'); ?>" sizes="192x192"/>
<?php endif; ?>
<link href="<?php $this -> options -> themeUrl('static/kico.css'); ?>" rel="stylesheet" type="text/css"/>
<link href="<?php $this -> options -> themeUrl('static/fantasy.css'); ?>" rel="stylesheet" type="text/css"/>
<link href="https://fastly.jsdelivr.net/npm/[email protected]/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
<meta name="viewport" content="width=device-width, maximum-scale=1, initial-scale=1"/>
<?php $this->header('generator=&template=&pingback=&xmlrpc=&wlw='); ?>
<?php if($this -> options -> background): ?>
<style>body{ background: url(<?php $this -> options -> background() ?>) center/cover fixed }</style>
<?php endif; ?>
<?php if($this -> options -> custom_css): ?>
<style><?php $this -> options -> custom_css() ?></style>
<?php endif; ?>
</head>
<body>
<aside>
<nav class="side-nav">
<a href="<?php $this -> options -> siteUrl() ?>">首页</a>
<?php $this -> widget('Widget_Contents_Page_List') -> parse('<a href="{permalink}">{title}</a>'); ?>
<?php if($this -> user -> hasLogin()): ?>
<a href="<?php $this -> options -> adminUrl() ?>" target="_blank">进入后台</a>
<?php endif; ?>
</nav>
<nav class="side-action">
<div class="search-btn"></div>
</nav>
<div class="side-window">
<div class="side-wrap">
<form class="search-form" method="post">
<input type="text" name="s" placeholder="搜索什么?">
</form>
<div class="side-category color-bar">
<?php $this -> widget('Widget_Metas_Category_List') -> parse('<a href="{permalink}">{name}</a>'); ?>
</div>
</div>
</div>
</aside>
<header>
<div class="toggle"></div>
<div class="wrap min">
<h1 class="headline"><span><?php $this->options->title() ?></span></h1>
<?php if ($this->options->home_social): ?>
<div class="head-social">
<?php $this->options->home_social() ?>
</div>
<?php endif; ?>
</div>
</header>