-
Notifications
You must be signed in to change notification settings - Fork 3
/
header.php
executable file
·76 lines (75 loc) · 5.21 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
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="<?php $this->options->charset(); ?>">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title><?php $this->archiveTitle(array(
'category' => _t('分类 %s 下的文章'),
'search' => _t('包含关键字 %s 的文章'),
'tag' => _t('标签 %s 下的文章'),
'author' => _t('%s 发布的文章')
), '', ' - '); ?><?php $this->options->title(); ?></title>
<?php if ($this->is('index')): ?>
<?php if ($this->options->SEOOPEN): ?>
<?php $this->header(); ?>
<?php endif; ?>
<?php else: ?>
<?php if ($this->options->SEOOPEN): ?>
<?php $this->header('xmlrpc=&wlw=&commentReply=&antiSpam=&atom'); ?>
<?php endif; ?>
<?php endif; ?>
<?php if ($this->options->favicon): ?>
<link rel="shortcut icon" type="image/x-icon" href="<?php $this->options->favicon() ?>">
<?php endif; ?>
<?php if ($this->options->cursor): ?>
<link rel="stylesheet" href="<?php $this->options->themeUrl('/assets/css/cursor.css'); ?>">
<?php endif; ?>
<link rel="stylesheet" href="<?php $this->options->themeUrl('/assets/css/style.css'); ?>">
<link rel="stylesheet" type="text/css" href="//cdn.bootcdn.net/ajax/libs/highlight.js/11.6.0/styles/androidstudio.min.css"/>
<script src="//cdn.bootcdn.net/ajax/libs/highlight.js/11.6.0/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<?php if ($this->options->JqueryControl): ?>
<script src="//cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<?php endif; ?>
<?php if ($this->options->fancybox): ?>
<link href="//cdn.bootcdn.net/ajax/libs//fancybox/3.5.7/jquery.fancybox.min.css" rel="stylesheet">
<script src="//cdn.bootcdn.net/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.js"></script>
<?php endif; ?>
</head>
<body>
<?php if ($this->options->WebPjax): ?>
<div id="pjax-load">
<?php endif; ?>
<nav class="navbar">
<div class="container">
<div class="flex">
<div>
<a class="brand" href="<?php $this->options->siteUrl(); ?>">
<?php if ($this->options->favicon): ?>
<img src="<?php $this->options->favicon() ?>">
<?php endif; ?>
<?php $this->options->title() ?>
</a>
</div>
<div class="flex">
<?php if ($this->options->alink): ?>
<a href="<?php $this->options->alink() ?>">
<?php if ($this->options->alink_name): ?>
<?php $this->options->alink_name() ?>
<?php endif; ?>
</a>
<?php endif; ?>
<?php if ($this->options->articles): ?><a href="<?php $this->options->articles() ?>">Articles</a><?php endif; ?>
<?php if ($this->options->The_Dark_Mode): ?>
<button id="dark-mode-button">
<svg class="light" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" width="1em" height="1em" style="-ms-transform:rotate(360deg);-webkit-transform:rotate(360deg);transform:rotate(360deg)" viewBox="0 0 36 36"><path fill="#ffd983" d="M30.312.776C32 19 20 32 .776 30.312c8.199 7.717 21.091 7.588 29.107-.429C37.9 21.867 38.03 8.975 30.312.776z"></path><path d="M30.705 15.915a1.163 1.163.0 101.643 1.641 1.163 1.163.0 00-1.643-1.641zm-16.022 14.38a1.74 1.74.0 000 2.465 1.742 1.742.0 100-2.465zm13.968-2.147a2.904 2.904.0 01-4.108.0 2.902 2.902.0 010-4.107 2.902 2.902.0 014.108.0 2.902 2.902.0 010 4.107z" fill="#ffcc4d"></path><rect x="0" y="0" width="36" height="36" fill="rgba(0, 0, 0, 0)"></rect></svg>
<svg class="dark" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" width="1em" height="1em" style="-ms-transform:rotate(360deg);-webkit-transform:rotate(360deg);transform:rotate(360deg)" viewBox="0 0 36 36"><path fill="#ffd983" d="M16 2s0-2 2-2 2 2 2 2v2s0 2-2 2-2-2-2-2V2zm18 14s2 0 2 2-2 2-2 2h-2s-2 0-2-2 2-2 2-2h2zM4 16s2 0 2 2-2 2-2 2H2s-2 0-2-2 2-2 2-2h2zm5.121-8.707s1.414 1.414.0 2.828-2.828.0-2.828.0L4.878 8.708s-1.414-1.414.0-2.829c1.415-1.414 2.829.0 2.829.0l1.414 1.414zm21 21s1.414 1.414.0 2.828-2.828.0-2.828.0l-1.414-1.414s-1.414-1.414.0-2.828 2.828.0 2.828.0l1.414 1.414zm-.413-18.172s-1.414 1.414-2.828.0.0-2.828.0-2.828l1.414-1.414s1.414-1.414 2.828.0.0 2.828.0 2.828l-1.414 1.414zm-21 21s-1.414 1.414-2.828.0.0-2.828.0-2.828l1.414-1.414s1.414-1.414 2.828.0.0 2.828.0 2.828l-1.414 1.414zM16 32s0-2 2-2 2 2 2 2v2s0 2-2 2-2-2-2-2v-2z"></path><circle fill="#ffd983" cx="18" cy="18" r="10"></circle><rect x="0" y="0" width="36" height="36" fill="rgba(0, 0, 0, 0)"></rect></svg>
</button>
<?php endif; ?>
</div>
</div>
</div>
</nav>