summaryrefslogtreecommitdiffstats
path: root/includes
diff options
context:
space:
mode:
authorEltrac <45323514+BigCoke233@users.noreply.github.com>2019-07-19 16:37:01 +0800
committerGitHub <noreply@github.com>2019-07-19 16:37:01 +0800
commit5456d7d2b91ecd801902ecc7adea7db94db79fa6 (patch)
tree60b8b16219b94bb422f14a9bc1ef88d4bcbc93fa /includes
parent525276d9c9dca8e404c99598c1ad4fc285563c68 (diff)
Bug Fix/CSS improve
Diffstat (limited to 'includes')
-rw-r--r--includes/comments.php2
-rw-r--r--includes/footer.php21
-rw-r--r--includes/head.php2
-rw-r--r--includes/header.php3
4 files changed, 12 insertions, 16 deletions
diff --git a/includes/comments.php b/includes/comments.php
index 449b67a..d7801f4 100644
--- a/includes/comments.php
+++ b/includes/comments.php
@@ -58,7 +58,7 @@ echo $commentClass;
)); ?>
</div>
<div class="comment-pagenav">
- <?php $comments->pageNav('<i class="iconfont icon-chevron-left"></i>', '<i class="iconfont icon-chevron-right"></i>'); ?>
+ <?php $comments->pageNav('<i class="iconfont icon-chevron-left comment-pagenav-icon"></i>', '<i class="iconfont icon-chevron-right comment-pagenav-icon"></i>'); ?>
</div>
<?php endif; ?>
diff --git a/includes/footer.php b/includes/footer.php
index fda879c..10fa10d 100644
--- a/includes/footer.php
+++ b/includes/footer.php
@@ -1,18 +1,19 @@
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
- </div>
+ </div><!-- 结束 pjax-container -->
+ <!-- 页脚信息 -->
<footer>
<div class="footer-info footer-dark">
- <p>&copy; <?php echo date('Y'); ?> <a href="<?php $this->options->SiteUrl(); ?>"><?php $this->options->title(); ?></a> All rights reserved.<br />
+ <p class="copyright">&copy; <?php echo date('Y'); ?> <a href="<?php $this->options->SiteUrl(); ?>"><?php $this->options->title(); ?></a> All rights reserved.<br />
Powered by <a href="http://typecho.org">Typecho</a> | Theme <a href="https://guhub.cn/p/miracles.html">Miracles</a> by <a href="https://guhub.cn">Eltrac</a></p>
<?php $this->options->footerEcho(); ?>
</div>
</footer>
-
+ <!-- 悬浮按钮 -->
<div class="fixed-tools">
<button onclick="GoTop()" title="返回顶部" class="gotop-button" style="color:white;"><i class="iconfont icon-chevron-up"></i></button>
<button onclick="Dark()" title="护眼模式" class="dark-button"><i class="iconfont icon-envira"></i></button>
</div>
-
+ <!-- JavaScript -->
<script src="<?php Utils::indexTheme('assets/js/jquery.js'); ?>"></script>
<script src="<?php Utils::indexTheme('assets/js/pjax.jquery.js'); ?>"></script>
<script src="<?php Utils::indexTheme('assets/js/jquery.fancybox.js'); ?>"></script>
@@ -21,7 +22,6 @@
<script src="<?php Utils::indexTheme('assets/js/OwO.min.js'); ?>"></script>
<script src="<?php Utils::indexTheme('assets/js/prism.js'); ?>"></script>
<script src="<?php Utils::indexTheme('assets/js/main.js'); ?>"></script>
-
<script>
//pjax-loader
var siteurl = '<?php $this->options->SiteUrl() ;?>';
@@ -41,7 +41,7 @@
pres[i].className = 'line-numbers';}
Prism.highlightAll(true,null);}
$('form#login-form').addClass('need-refresh');
- var OwO_demo = new OwO({logo: 'OωO表情',container: document.getElementsByClassName('OwO')[0],target: document.getElementsByClassName('OwO-textarea')[0],api: '<?php Utils::indexTheme('assets/OwO.json'); ?>',position: 'down',width: '350px',maxHeight: '250px'});
+ var OwO_demo = new OwO({logo: 'OωO表情',container: document.getElementsByClassName('OwO')[0],target: document.getElementsByClassName('OwO-textarea')[0],api: '<?php Utils::indexTheme('assets/OwO.json'); ?>',position: 'down',width: '300px',maxHeight: '250px'});
jQuery(function() {jQuery("img").lazyload({threshold: 200,effect: "fadeIn"});});
});
//LazyLoad
@@ -56,14 +56,9 @@
//Login
function Login() {$(".login").toggleClass("ready");$(".login-close").toggleClass("ready");}
//OwO
- var OwO_demo = new OwO({logo: 'OωO表情',container: document.getElementsByClassName('OwO')[0],target: document.getElementsByClassName('OwO-textarea')[0],api: '<?php Utils::indexTheme('assets/OwO.json'); ?>',position: 'down',width: '350px',maxHeight: '250px'});
+ var OwO_demo = new OwO({logo: 'OωO表情',container: document.getElementsByClassName('OwO')[0],target: document.getElementsByClassName('OwO-textarea')[0],api: '<?php Utils::indexTheme('assets/OwO.json'); ?>',position: 'down',width: '300px',maxHeight: '250px'});
</script>
+ <?php if($this->options->jsEcho && $this->options->jsEcho!=''): ?><style><?php $this->options->jsEcho(); ?></style><?php endif; ?>
<?php $this->footer(); ?>
-
- <?php if($this->options->jsEcho && $this->options->jsEcho!=''): ?>
- <style>
- <?php $this->options->jsEcho(); ?>
- </style>
- <?php endif; ?>
</body>
</html>
diff --git a/includes/head.php b/includes/head.php
index 1badb3d..7129607 100644
--- a/includes/head.php
+++ b/includes/head.php
@@ -54,7 +54,7 @@ if (isset($_POST['action'])) {
<link rel="stylesheet" href="<?php Utils::indexTheme('assets/css/dark.miracles.css'); ?>" />
<!-- icon font -->
- <link rel="stylesheet" href="//at.alicdn.com/t/font_1165190_maespcngb4g.css" />
+ <link rel="stylesheet" href="//at.alicdn.com/t/font_1165190_q4ccniy74h.css" />
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Noto+Sans+SC:300|Noto+Serif+SC:300&display=swap" rel="stylesheet">
diff --git a/includes/header.php b/includes/header.php
index cc1e962..2fca1a0 100644
--- a/includes/header.php
+++ b/includes/header.php
@@ -1,4 +1,5 @@
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
+
<!-- 搜索 -->
<div class="search ready">
<button class="search-close ready" onclick="Search()"><i class="iconfont icon-x"></i></button>
@@ -66,7 +67,7 @@
</div>
</nav>
- <div id="pjax-container">
+ <div id="pjax-container"><!-- 开始 pjax-container -->
<header>
<?php if($this->is('post') || $this->is('page')): ?>
<div class="index-banner" style="background:url('<?php if($this->fields->banner && $this->fields->banner=!''): ?><?php $this->fields->banner(); ?><?php else: ?><?php $this->options->bannerUrl(); ?><?php endif; ?>') no-repeat;height:<?php $this->options->bannerHeight(); ?>vh;background-size:cover;">