forked from White-NX/Briefness
-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
63 lines (59 loc) · 3.68 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
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<!DOCTYPE html>
<html>
<head>
<title><?php $this->archiveTitle(array(
'category' => _t('分类 %s 下的文章'),
'search' => _t('包含关键字 %s 的文章'),
'tag' => _t('标签 %s 下的文章'),
'date' => _t('在 %s 发布的文章'),
'author' => _t('作者 %s 发布的文章')
), '', ' - '); ?><?php $this->options->title(); if ($this->is('index') && $this->options->subTitle): ?> - <?php $this->options->subTitle(); endif; ?></title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="renderer" content="webkit">
<meta name="publisher" content="<?php $this->author(); ?>">
<meta name="viewport" content="initial-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="white" />
<meta name="apple-mobile-web-app-title" content="<?php $this->author(); ?>">
<?php if ($this->options->favicon): ?>
<link rel="shortcut icon" href="<?php $this->options->favicon(); ?>" />
<?php endif; ?>
<?php $this->header(); ?>
<link type="text/css" rel="stylesheet" href="<?php $this->options->themeUrl('style.css?v=3.0'); ?>">
<link type="text/css" rel="stylesheet" href="<?php $this->options->themeUrl('./assets/css/lightbox.css'); ?>">
<?php if (!empty($this->options->tools) && in_array('prism', $this->options->tools)): ?>
<link href="<?php echo theurl; ?>./prism/prism.css?v=1.0.5" rel="stylesheet">
<link href="<?php echo theurl; ?>./prism/line-numer.css?v=1.0.5" rel="stylesheet"><?php endif; ?>
<script type="text/javascript" src="<?php $this->options->themeUrl('./assets/js/main.js?v=0.1'); ?>"></script>
<link type="text/css" rel="stylesheet" href="<?php $this->options->themeUrl('./assets/css/clickright.css'); ?>"/>
<div class="usercm" style="left: 199px; top: 5px; display: none;">
<ul>
<li><a href="<?php $this->options->siteUrl(); ?>"><i class="fa fa-home fa-fw"></i><span>首页</span></a></li>
<li><a href="javascript:void(0);" onclick="getSelect();"><i class="fa fa-copy fa-fw"></i><span>复制</span></a></li>
<li><a href="javascript:void(0);" onclick="baiduSearch();"><i class="fa fa-search fa-fw"></i><span>搜索</span></a></li>
<li><a href="javascript:history.go(1);"><i class="fa fa-arrow-right fa-fw"></i><span>前进</span></a></li>
<li><a href="javascript:history.go(-1);"><i class="fa fa-arrow-left fa-fw"></i><span>后退</span></a></li>
<li style="border-bottom:1px solid gray"><a href="javascript:window.location.reload();"><i class="fa fa-refresh fa-fw"></i><span>重载网页</span></a></li>
<li><a href="<?php $this->options->siteUrl(); ?>links.html"><i class="fa fa-meh-o fa-fw"></i><span>和我当邻居</span></a></li>
<li><a href="<?php $this->options->siteUrl(); ?>about.html"><i class="fa fa-pencil-square-o fa-fw"></i><span>关于博主</span></a></li>
</ul>
</div>
<script type="text/javascript" src="<?php $this->options->themeUrl('./assets/js/clickright.js'); ?>"></script>
</head>
<body id="page">
<div class="container">
<header>
<div id="wrap">
<h1><a href="<?php $this->options->siteUrl(); ?>" class="logo"><img src="<?php $this->options->logoUrl(); ?>" alt="" style="width:auto;height:auto;"></a></h1>
<nav id="nav">
<ul>
<li><a href="<?php $this->options->siteUrl(); ?>">主页</a></li>
<?php $this->widget('Widget_Contents_Page_List')
->parse('<li><a href="{permalink}">{title}</a></li>'); ?>
</ul>
</nav>
</div>
</header>
<div class="main">