| 
17 | 17 | 	<?php if ($this->options->favicon): ?>  | 
18 | 18 | 	<link href="<?php $this->options->favicon(); ?>" rel="shortcut icon" />  | 
19 | 19 | 	<?php else: ?>  | 
20 |  | -	<link href="https://cdn.jsdelivr.net/gh/yanranxiaoxi/ [email protected]/images/icon.ico" rel="shortcut icon" />  | 
 | 20 | +	<link href="https://cdn.jsdelivr.net/gh/yanranxiaoxi/ [email protected]/images/icon.ico" rel="shortcut icon" />  | 
 | 21 | +	<?php endif; ?>  | 
 | 22 | +	<?php if ($this->options->themeAutoDark === 'enable'): ?>  | 
 | 23 | +	<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/yanranxiaoxi/ [email protected]/assets/js/match-dark-mode.min.js"></script>  | 
21 | 24 | 	<?php endif; ?>  | 
22 | 25 | 	<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/ [email protected]/css/all.min.css" />  | 
23 |  | -	<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/yanranxiaoxi/ [email protected]/assets/css/main.min.css" />  | 
24 |  | -	<?php if ($this->options->themeColor == '0'): ?>  | 
25 |  | -	<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/yanranxiaoxi/ [email protected]/assets/css/gray.min.css" />  | 
 | 26 | +	<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/yanranxiaoxi/ [email protected]/assets/css/main.min.css" />  | 
 | 27 | +	<?php  | 
 | 28 | +		if ($_COOKIE['latest-prefers-color-scheme']) {  | 
 | 29 | +			setcookie('latest-prefers-color-scheme', $_COOKIE['latest-prefers-color-scheme'], time() + 60 * 60 * 24 * 365, '/');  | 
 | 30 | +		}  | 
 | 31 | +	?>  | 
 | 32 | +	<?php if ($this->options->themeAutoDark === 'enable' && $_COOKIE['latest-prefers-color-scheme'] === 'dark'): ?>  | 
 | 33 | +	<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/yanranxiaoxi/ [email protected]/assets/css/black.min.css" />  | 
 | 34 | +	<?php elseif ($this->options->themeColor == '0'): ?>  | 
 | 35 | +	<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/yanranxiaoxi/ [email protected]/assets/css/gray.min.css" />  | 
26 | 36 | 	<?php elseif ($this->options->themeColor == '1'): ?>  | 
27 |  | -	<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/yanranxiaoxi/ [email protected]. 19/assets/css/white.min.css" />  | 
 | 37 | +	<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/yanranxiaoxi/ [email protected]. 20/assets/css/white.min.css" />  | 
28 | 38 | 	<?php elseif ($this->options->themeColor == '2'): ?>  | 
29 |  | -	<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/yanranxiaoxi/ [email protected]. 19/assets/css/green.min.css" />  | 
 | 39 | +	<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/yanranxiaoxi/ [email protected]. 20/assets/css/green.min.css" />  | 
30 | 40 | 	<?php elseif ($this->options->themeColor == '3'): ?>  | 
31 |  | -	<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/yanranxiaoxi/ [email protected]. 19/assets/css/black.min.css" />  | 
 | 41 | +	<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/yanranxiaoxi/ [email protected]. 20/assets/css/black.min.css" />  | 
32 | 42 | 	<?php else: ?>  | 
33 |  | -	<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/yanranxiaoxi/ [email protected]/assets/css/gray.min.css" />  | 
34 |  | -	<?php endif; ?>  | 
35 |  | -	<?php if ($this->options->themeAutoDark === 'enable'): ?>  | 
36 |  | -	<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/yanranxiaoxi/ [email protected]/assets/css/dark.min.css" />  | 
 | 43 | +	<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/yanranxiaoxi/ [email protected]/assets/css/gray.min.css" />  | 
37 | 44 | 	<?php endif; ?>  | 
38 | 45 | 	<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ [email protected]/dist/css/bootstrap.min.css" />  | 
39 | 46 | 	<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/ [email protected]/dist/jquery.fancybox.min.css" />  | 
 | 
45 | 52 | 	<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ [email protected]/dist/umd/popper.min.js"></script>  | 
46 | 53 | 	<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ [email protected]/dist/js/bootstrap.min.js"></script>  | 
47 | 54 | 	<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@fancyapps/ [email protected]/dist/jquery.fancybox.min.js"></script>  | 
48 |  | -	<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/yanranxiaoxi/ [email protected]. 19/assets/js/jQuery.scrollLoad.min.js"></script>  | 
 | 55 | +	<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/yanranxiaoxi/ [email protected]. 20/assets/js/jQuery.scrollLoad.min.js"></script>  | 
49 | 56 | 	<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ [email protected]/jquery.pjax.min.js"></script>  | 
50 | 57 | 	<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ [email protected]/dist/OwO.min.js"></script>  | 
51 | 58 | 	<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ [email protected]/dist/console-ban.min.js"></script>  | 
 | 
59 | 66 | 						<?php if ($this->options->logo): ?>  | 
60 | 67 | 						<img class="user-avatar" src="<?php $this->options->logo(); ?>" alt="头像" />  | 
61 | 68 | 						<?php else: ?>  | 
62 |  | -						<img class="user-avatar" src="https://cdn.jsdelivr.net/gh/yanranxiaoxi/ [email protected]. 19/images/avatar.png" alt="头像" />  | 
 | 69 | +						<img class="user-avatar" src="https://cdn.jsdelivr.net/gh/yanranxiaoxi/ [email protected]. 20/images/avatar.png" alt="头像" />  | 
63 | 70 | 						<?php endif; ?>  | 
64 | 71 | 						<div class="site-name gt-c-content-color-first">  | 
65 | 72 | 							<?php $this->options->title(); ?>  | 
 | 
0 commit comments