Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function threadedComments($comments, $options) {
?>">
<div id="<?php $comments->theId(); ?>">
<?php
$host = 'https://secure.gravatar.com';
$host = Helper::options()->gravatar_mirror == '' ? 'https://secure.gravatar.com' : Helper::options()->gravatar_mirror;
$url = '/avatar/';
$size = '80';
$default = 'mm';
Expand Down
12 changes: 6 additions & 6 deletions footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<div id="directory-content" class="directory-content">
<nav class="toc js-toc"></nav>
</div>
<script src="https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/tocbot/4.18.2/tocbot.min.js"></script>
<script src="<?php echo ($this->options->libCDN == 'disable')? $this->options->themeUrl('libs/'):$this->options->cdn_prefix; ?>tocbot/4.36.4/tocbot.min.js"></script>
<?php endif; ?>
<?php if(($this->is('single')) && ($this->allow('comment'))): ?>
<script>
Expand Down Expand Up @@ -136,15 +136,15 @@ function addCommentInputValue(){
</script>
<?php endif; ?>
<?php $this->footer(); ?>
<script src="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/headroom/0.12.0/headroom.min.js"></script>
<script src="<?php echo ($this->options->libCDN == 'disable')? $this->options->themeUrl('libs/'):$this->options->cdn_prefix; ?>headroom/0.12.0/headroom.min.js"></script>
<?php if ($this->options->useHighline == 'able'): ?>
<script src="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/highlight.js/11.4.0/highlight.min.js"></script>
<script src="<?php echo ($this->options->libCDN == 'disable')? $this->options->themeUrl('libs/'):$this->options->cdn_prefix; ?>highlight.js/11.11.1/highlight.min.js"></script>
<?php endif; ?>
<?php if ($this->options->pjaxSet == 'able'): ?>
<script src="https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/instantclick/3.1.0/instantclick.min.js"></script>
<script src="<?php echo ($this->options->libCDN == 'disable')? $this->options->themeUrl('libs/'):$this->options->cdn_prefix; ?>instantclick/3.1.0/instantclick.min.js"></script>
<?php endif; ?>
<?php if ($this->options->fastClickSet == 'able'): ?>
<script src="https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/fastclick/1.0.6/fastclick.min.js"></script>
<script src="<?php echo ($this->options->libCDN == 'disable')? $this->options->themeUrl('libs/'):$this->options->cdn_prefix; ?>fastclick/1.0.6/fastclick.min.js"></script>
<?php endif; ?>
<script>
<?php if (($this->options->tableOfContents == 'able') && ($this->is('post'))): ?>
Expand Down Expand Up @@ -224,7 +224,7 @@ classes: {
});
MathJax.Hub.Queue(["Typeset",MathJax.Hub]);
</script>
<script src="//cdn.bootcss.com/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script src="<?php echo ($this->options->libCDN == 'disable')? $this->options->themeUrl('libs/'):$this->options->cdn_prefix; ?>mathjax/2.7.9/mathjax.min.js"></script>
<?php endif; ?>
<?php if($this->options->GoogleAnalytics): ?>
<?php $this->options->GoogleAnalytics(); ?>
Expand Down
667 changes: 340 additions & 327 deletions functions.php

Large diffs are not rendered by default.

21 changes: 12 additions & 9 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="<?php $this->options->charset(); ?>"><?php if ($this->options->DnsPrefetch): ?>
<meta http-equiv="x-dns-prefetch-control" content="on"><?php if ($this->options->cdn_add): ?>
<link rel="dns-prefetch" href="<?php $this->options->cdn_add(); ?>" /><?php endif; ?>
<link rel="dns-prefetch" href="//cdn.bootcss.com" />
<link rel="dns-prefetch" href="//secure.gravatar.com" /><?php endif; ?>
<meta charset="<?php $this->options->charset(); ?>">

<?php if ($this->options->DnsPrefetch): ?><meta http-equiv="x-dns-prefetch-control" content="on">
<?php if ($this->options->cdn_add != '' && filter_var($this->options->cdn_add, FILTER_VALIDATE_URL) !== false): ?><link rel="dns-prefetch" href="//<?php echo parse_url($this->options->cdn_add, PHP_URL_HOST); ?>" />
<?php endif; ?><?php if ($this->options->libCDN == 'able' && $this->options->cdn_prefix != '' && filter_var($this->options->cdn_prefix, FILTER_VALIDATE_URL) !== false): ?><link rel="dns-prefetch" href="//<?php echo parse_url($this->options->cdn_prefix, PHP_URL_HOST); ?>" />
<?php endif; ?><?php if ($this->options->gravatar_mirror != '' && filter_var($this->options->gravatar_mirror, FILTER_VALIDATE_URL) !== false): ?><link rel="dns-prefetch" href="//<?php echo parse_url($this->options->gravatar_mirror, PHP_URL_HOST); ?>" /><?php endif; ?>
<?php endif; ?>

<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
Expand All @@ -23,17 +26,17 @@
), '', ' - '); ?><?php $this->options->title(); ?></title>
<meta name="keywords" content="<?php $this->keywords(); ?>" />
<?php $this->header('keywords=&generator=&template=&pingback=&xmlrpc=&wlw=&commentReply=&rss1=&rss2=&atom='); ?>
<link href="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/highlight.js/11.4.0/styles/xcode.min.css" rel="stylesheet">
<link href="<?php echo ($this->options->libCDN == 'disable')? $this->options->themeUrl('libs/'):$this->options->cdn_prefix; ?>highlight.js/11.11.1/styles/xcode.min.css" rel="stylesheet">
<link href="<?php $this->options->themeUrl('style.min.css?20240216'); ?>" rel="stylesheet">
<!--[if lt IE 9]>
<script src="//cdn.bootcss.com/html5shiv/r29/html5.min.js"></script>
<script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<script src="<?php echo ($this->options->libCDN == 'disable')? $this->options->themeUrl('libs/'):$this->options->cdn_prefix; ?>html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="<?php echo ($this->options->libCDN == 'disable')? $this->options->themeUrl('libs/'):$this->options->cdn_prefix; ?>respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body class="<?php if (isset($this->___fields()['archive'])): ?>bg-grey<?php elseif($this->is('archive')&&($this->options->colorBgPosts == 'defaultColor')): ?>bg-grey<?php elseif($this->is('archive')&&($this->options->colorBgPosts == 'customColor')): ?>bg-white<?php elseif(!$this->is('single')): ?>bg-grey<?php endif; ?>" gtools_scp_screen_capture_injected="true">
<!--[if lt IE 8]>
<div class="browsehappy" role="dialog">
当前网页 <strong>不支持</strong> 你正在使用的浏览器. 为了正常的访问, 请 <a href="http://browsehappy.com/" target="_blank">升级你的浏览器</a>。
当前网页 <strong>不支持</strong> 你正在使用的浏览器. 为了正常的访问, 请 <a href="https://browsehappy.com/" target="_blank">升级你的浏览器</a>。
</div>
<![endif]-->
<header id="header" class="header bg-white">
Expand Down
Loading