sky/homepage.php

132 lines
5.8 KiB
PHP
Raw Normal View History

2021-07-25 09:12:40 +08:00
<?php
/**
* 网站首页
*
* @package index
*/
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
?>
<!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, shrink-to-fit=no">
2021-07-28 10:06:21 +08:00
<title><?php $this->options->title(); ?></title>
2021-07-25 09:12:40 +08:00
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Poppins:200,300,400,600,700,800" rel="stylesheet">
<!-- FontAwesome Icons -->
<link href="https://use.fontawesome.com/releases/v5.0.6/css/all.css" rel="stylesheet">
<!-- 草莓图标库 -->
<link rel="stylesheet" href="<?php $this->options->themeUrl('/assets/strawberry-v2.0.0/style.css'); ?>">
<!-- Argon Theme CSS -->
<link type="text/css" href="<?php $this->options->themeUrl('/assets/css/argon-design-system.min.css')?>" rel="stylesheet">
<!-- Sky CSS-->
<link type="text/css" href="<?php $this->options->themeUrl('/assets/style.css')?>" rel="stylesheet">
<!-- JS: jQuery & popper & bootstrap -->
<script src="<?php $this->options->themeUrl('/assets/js/core/jquery.min.js');?>"></script>
<!--<script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>-->
<script src="<?php $this->options->themeUrl('/assets/js/core/popper.min.js');?>"></script>
<script src="<?php $this->options->themeUrl('/assets/js/core/bootstrap.min.js');?>"></script>
<!-- Argon Theme JS -->
<script src="<?php $this->options->themeUrl('/assets/js/argon-design-system.min.js');?>"></script>
<!-- Highlight.js via jsDelivr -->
2021-07-28 10:06:21 +08:00
<!-- <link rel="stylesheet" href="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.1.0/build/styles/default.min.css">
2021-07-25 09:12:40 +08:00
<script src="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.1.0/build/highlight.min.js"></script>
2021-07-28 10:06:21 +08:00
<script>hljs.highlightAll();</script> -->
2021-07-25 09:12:40 +08:00
<?php $this->header(); ?>
</head>
<!--[if lt IE 8]>
<?php _e('当前网页不支持你正在使用的浏览器。为了正常访问, 请升级你的浏览器!'); ?>
<![endif]-->
<body>
2021-07-28 10:06:21 +08:00
<div class="flex-container">
2021-07-25 09:12:40 +08:00
2021-07-28 10:06:21 +08:00
<header id="header" class="clearfix mb-4">
2021-07-25 09:12:40 +08:00
<div class="container">
<div class="row">
<div class="site-name col">
<?php if ($this->options->logoUrl): ?>
<div class="text-center">
<img src="<?php $this->options->logoUrl() ?>" class="site-avatar shadow rounded-circle mx-auto d-block" alt="<?php $this->options->title() ?>" width=128 height=128>
<h2 class="mt-3 font-weight-bold text-default"><?php $this->options->title() ?></h2>
<p class="description"><?php $this->options->description() ?></p>
</div>
<?php else: ?>
<a id="logo" href="<?php $this->options->siteUrl(); ?>"><?php $this->options->title() ?></a>
<p class="description text-gray"><?php $this->options->description() ?></p>
<?php endif; ?>
</div>
</div><!-- end .row -->
</div>
</header><!-- end #header -->
2021-07-28 10:06:21 +08:00
<nav class="navbar navbar-light navbar-expand sticky-top">
2021-07-25 09:12:40 +08:00
<div class="container">
<ul class="col navbar-nav justify-content-center">
<li class="nav-item">
2021-07-28 10:06:21 +08:00
<a class="nav-link nav-link-icon text-grey" href="<?php $this->options->siteUrl();?>">
2021-07-25 09:12:40 +08:00
<i class="czs-home"></i> Home
</a>
</li>
<?php if (strpos($this->options->frontPage, 'file') !== FALSE) {?>
<li class="nav-item">
2021-08-02 20:51:33 +08:00
<a class="nav-link nav-link-icon text-grey" href="<?php echo $this->options->siteUrl.$this->options->routingTable['archive']['url'] ?>">
2021-07-25 09:12:40 +08:00
<i class="czs-read"></i> Passages
</a>
</li>
<?php } ?>
<?php $this->widget('Widget_Contents_Page_List')->to($pagelist);
while ($pagelist->next()): ?>
<li class="nav-item">
2021-07-28 10:06:21 +08:00
<a class="nav-link nav-link-icon text-grey" href="<?php echo $pagelist->permalink ?>">
2021-07-25 09:12:40 +08:00
<?php if ($pagelist->fields->pageIcon != '') {?>
<i class="<?php echo $pagelist->fields->pageIcon ?>"></i>
<?php } ?>
<?php echo $pagelist->title ?>
</a>
</li>
<?php endwhile;?>
</ul>
</div>
</nav>
</div>
2021-07-28 10:06:21 +08:00
<footer class="flex-footer" id="footer" role="footer">
2021-07-25 09:12:40 +08:00
<div class="container">
2021-08-03 20:45:41 +08:00
<hr>
2021-07-28 10:06:21 +08:00
<div class="text-center">
<p>
<?php if ($this->options->nisInfo != "") {?>
<a id="nis" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=<?php echo mb_substr($this->options->nisInfo, 5, 14) ?>" target="_blank">
<?php echo $this->options->nisInfo ?>
</a> | <?php } ?>
<?php if ($this->options->icpInfo != "") {?>
<a href="https://beian.miit.gov.cn/" target="_blank"><?php echo $this->options->icpInfo ?></a> | <?php } ?>
<a href="<?php $this->options->siteUrl();?>sitemap.xml">Sitemap</a> |
<a href="<?php $this->options->siteUrl();?>links">Links</a>
</p>
<p>&copy; <?php echo date('Y');?> <?php $this->options->title(); ?> ♥ <?php Typecho_Widget::widget('Widget_Stat')->to($stat); ?><?php $stat->publishedPostsNum() ?> Posts <?php $this->allOfCharacters();?> Words crafted</p>
<p>Powered by <a href="https://www.typecho.org">Typecho</a> | Theme <a href="https://skywt.cn/sky-theme">Sky</a> by <a href="https://skywt.cn/">SkyWT</a></p>
</div>
</div>
</footer><!-- end #footer -->
<!--<pre><?php #print_r($this); ?></pre>-->
<?php $this->footer(); ?>
</body>
</html>