2021-01-25 03:29:51 +00:00
|
|
|
|
<script>
|
2021-02-20 10:35:38 +00:00
|
|
|
|
localStorage.getItem("data-night") && document.querySelector("html").setAttribute("data-night", "night");
|
|
|
|
|
window.Joe = {
|
|
|
|
|
LIVE2D: '<?php $this->options->JLive2d() ?>',
|
|
|
|
|
BASE_API: '<?php echo $this->options->rewrite == 0 ? '/index.php/joe/api' : '/joe/api' ?>',
|
|
|
|
|
DYNAMIC_BACKGROUND: '<?php $this->options->JDynamic_Background() ?>',
|
|
|
|
|
WALLPAPER_BACKGROUND_PC: '<?php $this->options->JWallpaper_Background_PC() ?>',
|
|
|
|
|
IS_MOBILE: /windows phone|iphone|android/gi.test(window.navigator.userAgent),
|
|
|
|
|
BAIDU_PUSH: <?php echo $this->options->JBaiduToken ? 'true' : 'false' ?>,
|
|
|
|
|
DOCUMENT_TITLE: '<?php $this->options->JDocumentTitle() ?>',
|
|
|
|
|
LAZY_LOAD: '<?php _getLazyload() ?>',
|
|
|
|
|
BIRTHDAY: '<?php $this->options->JBirthDay() ?>',
|
|
|
|
|
}
|
|
|
|
|
function detectIE(){var n=window.navigator.userAgent,e=n.indexOf("MSIE ");if(e>0){return parseInt(n.substring(e+5,n.indexOf(".",e)),10)}if(n.indexOf("Trident/")>0){var r=n.indexOf("rv:");return parseInt(n.substring(r+3,n.indexOf(".",r)),10)}var i=n.indexOf("Edge/");return i>0&&parseInt(n.substring(i+5,n.indexOf(".",i)),10)};
|
|
|
|
|
detectIE() && (alert('当前站点不支持IE浏览器或您开启了兼容模式,请使用其他浏览器访问或关闭兼容模式。'), (location.href = 'https://www.baidu.com'))
|
2021-01-25 03:29:51 +00:00
|
|
|
|
</script>
|
|
|
|
|
<style>
|
2021-02-20 10:35:38 +00:00
|
|
|
|
body::before {
|
|
|
|
|
background: <?php if (_isMobile()) {
|
|
|
|
|
echo $this->options->JWallpaper_Background_WAP ? "url(" . $this->options->JWallpaper_Background_WAP . ")" : "#f5f5f5";
|
|
|
|
|
} else {
|
|
|
|
|
echo $this->options->JWallpaper_Background_PC ? "url(" . $this->options->JWallpaper_Background_PC . ")" : "#f5f5f5";
|
|
|
|
|
} ?>;
|
|
|
|
|
background-position: center 0;
|
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
|
background-size: cover;
|
|
|
|
|
}
|
|
|
|
|
<?php $this->options->JCustomCSS() ?>
|
2021-01-25 03:29:51 +00:00
|
|
|
|
</style>
|
2021-01-26 13:41:01 +00:00
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
|
<meta name="renderer" content="webkit" />
|
2021-02-10 15:24:59 +00:00
|
|
|
|
<meta name="format-detection" content="email=no" />
|
|
|
|
|
<meta name="format-detection" content="telephone=no" />
|
2021-01-26 13:41:01 +00:00
|
|
|
|
<meta http-equiv="Cache-Control" content="no-siteapp" />
|
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" />
|
2021-02-16 11:18:55 +00:00
|
|
|
|
<meta itemprop="image" content="<?php $this->options->JShare_QQ_Image() ?>" />
|
2021-01-26 13:41:01 +00:00
|
|
|
|
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, shrink-to-fit=no, viewport-fit=cover">
|
|
|
|
|
<link rel="shortcut icon" href="<?php $this->options->JFavicon() ?>" />
|
|
|
|
|
<title><?php $this->archiveTitle(array('category' => '分类 %s 下的文章', 'search' => '包含关键字 %s 的文章', 'tag' => '标签 %s 下的文章', 'author' => '%s 发布的文章'), '', ' - '); ?><?php $this->options->title(); ?></title>
|
2021-02-05 10:27:44 +00:00
|
|
|
|
<?php if ($this->is('single')) : ?>
|
2021-02-20 10:35:38 +00:00
|
|
|
|
<meta name="keywords" content="<?php echo $this->fields->keywords ? $this->fields->keywords : htmlspecialchars($this->_keywords); ?>" />
|
|
|
|
|
<meta name="description" content="<?php echo $this->fields->description ? $this->fields->description : htmlspecialchars($this->_description); ?>" />
|
|
|
|
|
<?php $this->header('keywords=&description='); ?>
|
2021-02-05 10:27:44 +00:00
|
|
|
|
<?php else : ?>
|
2021-02-20 10:35:38 +00:00
|
|
|
|
<?php $this->header(); ?>
|
2021-02-05 10:27:44 +00:00
|
|
|
|
<?php endif; ?>
|
2021-02-07 03:32:41 +00:00
|
|
|
|
<link rel="stylesheet" href="<?php $this->options->themeUrl('assets/css/joe.mode.css'); ?>">
|
|
|
|
|
<link rel="stylesheet" href="<?php $this->options->themeUrl('assets/css/joe.normalize.css'); ?>">
|
2021-02-19 10:09:26 +00:00
|
|
|
|
<link rel="stylesheet" href="<?php $this->options->themeUrl('assets/css/joe.global.css'); ?>">
|
|
|
|
|
<link rel="stylesheet" href="<?php $this->options->themeUrl('assets/css/joe.responsive.css'); ?>">
|
2021-02-07 06:43:59 +00:00
|
|
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/HaoOuBa/Joe@master/plugin/qmsg/qmsg.css" />
|
2021-02-20 08:01:26 +00:00
|
|
|
|
<?php if (in_array('weather', $this->options->JAside) && $this->options->JAside_Weather_Key) : ?>
|
2021-02-20 10:35:38 +00:00
|
|
|
|
<link rel="stylesheet" href="https://apip.weatherdt.com/standard/static/css/weather-standard.css">
|
2021-02-20 08:01:26 +00:00
|
|
|
|
<?php endif; ?>
|
2021-01-27 05:00:55 +00:00
|
|
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.css" />
|
|
|
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/animate.css@3.7.2/animate.min.css" />
|
2021-02-06 10:33:20 +00:00
|
|
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css">
|
2021-01-20 04:39:49 +00:00
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script>
|
2021-01-27 05:03:12 +00:00
|
|
|
|
<script src="https://cdn.jsdelivr.net/gh/HaoOuBa/Joe@master/plugin/scroll/joe.scroll.js"></script>
|
2021-02-10 03:39:20 +00:00
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/lazysizes@5.3.0/lazysizes.min.js"></script>
|
2021-01-27 05:03:12 +00:00
|
|
|
|
<script src="https://cdn.jsdelivr.net/gh/HaoOuBa/Joe@master/plugin/sketchpad/joe.sketchpad.js"></script>
|
2021-01-27 05:00:55 +00:00
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.js"></script>
|
2021-02-07 06:43:59 +00:00
|
|
|
|
<script src="https://cdn.jsdelivr.net/gh/HaoOuBa/Joe@master/plugin/qmsg/qmsg.js"></script>
|
2021-02-20 02:34:00 +00:00
|
|
|
|
<script src="https://cdn.jsdelivr.net/gh/HaoOuBa/Joe@master/assets/js/joe.extend.js"></script>
|
2021-02-19 10:09:26 +00:00
|
|
|
|
<script src="<?php $this->options->themeUrl('assets/js/joe.global.js'); ?>"></script>
|
2021-02-04 12:30:07 +00:00
|
|
|
|
<script async src="https://cdn.jsdelivr.net/gh/HaoOuBa/Joe@master/plugin/smooth/joe.smooth.js"></script>
|
2021-02-05 10:27:44 +00:00
|
|
|
|
<?php if ($this->options->JCursorEffects && $this->options->JCursorEffects !== 'off') : ?>
|
2021-02-20 10:35:38 +00:00
|
|
|
|
<script async src="https://cdn.jsdelivr.net/gh/HaoOuBa/Joe@master/assets/cursor/<?php $this->options->JCursorEffects() ?>"></script>
|
2021-02-05 10:27:44 +00:00
|
|
|
|
<?php endif; ?>
|