2024-06-01 10:33:40 +08:00
|
|
|
<?php
|
|
|
|
ini_set('display_errors', 1);
|
2024-05-17 15:47:27 +08:00
|
|
|
ini_set('display_startup_errors', 1);
|
2024-06-01 10:33:40 +08:00
|
|
|
error_reporting(E_ALL);
|
|
|
|
if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
|
2024-05-17 15:47:27 +08:00
|
|
|
<!DOCTYPE HTML>
|
|
|
|
<html>
|
|
|
|
<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 if($this->_currentPage>1) echo '第 '.$this->_currentPage.' 页 - '; ?><?php $this->archiveTitle(array(
|
|
|
|
'category' => _t('分类 %s 下的文章'),
|
|
|
|
'search' => _t('包含关键字 %s 的文章'),
|
|
|
|
'tag' => _t('标签 %s 下的文章'),
|
|
|
|
'date' => _t('在<span> %s </span>发布的文章'),
|
|
|
|
'author' => _t('%s 发布的文章')
|
|
|
|
), '', ' - '); ?><?php if ($this->is('post')) $this->category(',', false);?><?php if ($this->is('post')) echo ' - ';?><?php $this->options->title(); ?><?php if ($this->is('index')) echo ' - '; ?><?php if ($this->is('index')) $this->options->description() ?></title>
|
2024-05-17 16:02:08 +08:00
|
|
|
<link rel="stylesheet" href="<?php $this->options->themeUrl('/dist/css/style.css'); ?>">
|
2024-05-17 15:47:27 +08:00
|
|
|
<?php if ($this->options->icoUrl): ?>
|
|
|
|
<link rel='icon' href='<?php $this->options->icoUrl() ?>' type='image/x-icon' />
|
|
|
|
<?php endif; ?>
|
|
|
|
<?php $this->header("generator=&template=&pingback=&wlw=&xmlrpc=&rss1=&atom=&rss2=/feed"); ?>
|
2024-05-24 09:57:05 +08:00
|
|
|
<?php $this->options->addhead(); ?>
|
2024-05-17 15:47:27 +08:00
|
|
|
</head>
|
|
|
|
<body>
|
2024-05-17 16:02:08 +08:00
|
|
|
<script>
|
|
|
|
window.DEFAULT_THEME = "light";
|
|
|
|
if (localStorage.getItem("theme") == null) {
|
|
|
|
localStorage.setItem("theme", window.DEFAULT_THEME);
|
|
|
|
}
|
|
|
|
if (localStorage.getItem("theme") == "dark") {
|
|
|
|
document.querySelector("body").classList.add("dark");
|
|
|
|
}
|
|
|
|
if (localStorage.getItem("theme") == "auto") {
|
|
|
|
document.querySelector("body").classList.add("auto");
|
|
|
|
}
|
|
|
|
</script>
|
2024-05-17 15:47:27 +08:00
|
|
|
<div class="main">
|
|
|
|
<header class="site--header">
|
|
|
|
<?php if ($this->options->logoUrl): ?>
|
|
|
|
<a href="<?php $this->options->siteUrl(); ?>" class="site--url">
|
2024-05-18 22:34:23 +08:00
|
|
|
<img src="<?php $this->options->logoUrl() ?>" class="avatar" alt="<?php $this->options->title() ?>" />
|
2024-05-17 16:02:08 +08:00
|
|
|
</a>
|
2024-05-17 15:47:27 +08:00
|
|
|
<?php else: ?>
|
|
|
|
<span class="u-xs-show">
|
|
|
|
<a href="<?php $this->options->siteUrl(); ?>"><?php $this->options->title() ?></a>
|
|
|
|
</span>
|
|
|
|
<?php endif; ?>
|
2024-05-17 16:02:08 +08:00
|
|
|
<div class="site--header__center">
|
2024-05-17 15:47:27 +08:00
|
|
|
<div class="inner">
|
|
|
|
<nav>
|
|
|
|
<ul>
|
|
|
|
<li class="whome"><a <?php if($this->is('index')): ?> class="current"<?php endif; ?> href="<?php $this->options->siteUrl(); ?>"><?php _e('首页'); ?></a></li>
|
|
|
|
<?php $this->widget('Widget_Contents_Page_List')->to($pages); ?>
|
|
|
|
<?php while($pages->next()): ?>
|
|
|
|
<li><a <?php if($this->is('page', $pages->slug)): ?> class="current"<?php endif; ?> href="<?php $pages->permalink(); ?>" title="<?php $pages->title(); ?>"><?php $pages->title(); ?></a></li>
|
2024-06-05 15:59:42 +08:00
|
|
|
<?php endwhile; ?>
|
2024-05-17 15:47:27 +08:00
|
|
|
</ul>
|
|
|
|
</nav>
|
2024-05-17 16:02:08 +08:00
|
|
|
<!-- 这年头谁会用站内的搜索啊 -->
|
|
|
|
<div class="search--area">
|
2024-05-17 15:47:27 +08:00
|
|
|
<form id="search" method="post" action="./" role="search" class="search-form">
|
|
|
|
<label>
|
2024-05-17 16:02:08 +08:00
|
|
|
<input type="text" name="s" class="search-field text" placeholder="Search" required/>
|
2024-05-17 15:47:27 +08:00
|
|
|
</label>
|
2024-05-17 16:02:08 +08:00
|
|
|
<button type="submit" class="search-submit submit">搜索</button>
|
2024-06-05 15:59:42 +08:00
|
|
|
</form>
|
2024-05-17 16:02:08 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<svg class="svgIcon" width="25" height="25" data-action="show-search">
|
2024-05-17 15:47:27 +08:00
|
|
|
<path
|
|
|
|
d="M20.067 18.933l-4.157-4.157a6 6 0 1 0-.884.884l4.157 4.157a.624.624 0 1 0 .884-.884zM6.5 11c0-2.62 2.13-4.75 4.75-4.75S16 8.38 16 11s-2.13 4.75-4.75 4.75S6.5 13.62 6.5 11z">
|
|
|
|
</path>
|
2024-05-17 16:02:08 +08:00
|
|
|
</svg>
|
2024-05-17 15:47:27 +08:00
|
|
|
</header>
|