69 lines
3.1 KiB
PHP
69 lines
3.1 KiB
PHP
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
|
|
<!DOCTYPE html>
|
|
<html lang="zh-Hans"<?php if ($this->options->colorSchema): ?> data-theme="<?php $this->options->colorSchema(); ?>"<?php endif; ?>>
|
|
<head>
|
|
<meta charset="<?php $this->options->charset(); ?>">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title><?php $this->archiveTitle('', '', ' | '); ?><?php $this->options->title(); ?><?php if ($this->is('index')): ?> | <?php $this->options->description() ?><?php endif; ?></title>
|
|
<link rel="stylesheet" href="<?php $this->options->themeUrl('static/css/style.css'); ?>">
|
|
<!--<script src="https://www.sangushui.com/usr/plugins/FontLibs/static//css/css.php?type=3&path=https://qcm.xgsd.cc/font/"></script>-->
|
|
<?php if ($this->options->colorSchema == 'customize'): ?>
|
|
<link rel="stylesheet" href="<?php $this->options->themeUrl('theme.css'); ?>">
|
|
<?php endif; ?>
|
|
<?php $this->header(); ?>
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<header class="site-navbar container-fluid">
|
|
<nav>
|
|
<ul class="site-name">
|
|
<?php if ($this->options->logoUrl): ?>
|
|
<li><a href="<?php $this->options->siteUrl(); ?>" class="brand"><img src="<?php $this->options->logoUrl() ?>" alt="<?php $this->options->title() ?>"></a></li>
|
|
<?php else: ?>
|
|
<li>
|
|
<a href="<?php $this->options->siteUrl(); ?>" class="brand"><?php $this->options->title() ?></a>
|
|
</li>
|
|
<li class="desc"><?php $this->options->description() ?></li>
|
|
<?php endif; ?>
|
|
</ul>
|
|
|
|
<ul>
|
|
<li>
|
|
<label for="nav-toggler" class="nav-toggler-btn">
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="3" y1="12" x2="21" y2="12" /><line x1="3" y1="6" x2="21" y2="6" /><line x1="3" y1="18" x2="21" y2="18" /></svg>
|
|
</label>
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
|
|
<nav class="site-nav">
|
|
<input type="checkbox" id="nav-toggler">
|
|
|
|
<ul class="nav-menu">
|
|
<li>
|
|
<a href="<?php $this->options->siteUrl(); ?>"<?php if ($this->is('index')): ?> class="active"<?php endif; ?>><?php _e('首页'); ?></a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="https://www.sangushui.com/category-gongju.html">工具</a>
|
|
</li>
|
|
<li>
|
|
<a href="https://www.sangushui.com/category-kuozhan.html">扩展</a>
|
|
</li>
|
|
|
|
<?php \Widget\Contents\Page\Rows::alloc()->to($pages); ?>
|
|
<?php while ($pages->next()): ?>
|
|
<li>
|
|
<a href="<?php $pages->permalink(); ?>"<?php if ($this->is('page', $pages->slug)): ?> class="active"<?php endif; ?>><?php $pages->title(); ?></a>
|
|
</li>
|
|
<?php endwhile; ?>
|
|
<!--<li>
|
|
<form method="post" action="<?php $this->options->siteUrl(); ?>">
|
|
<input type="search" id="s" name="s">
|
|
</form>
|
|
</li>-->
|
|
</ul>
|
|
</nav>
|
|
</header>
|