-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
53 lines (46 loc) · 2.3 KB
/
header.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!DOCTYPE html>
<html>
<!--
_ _____ _ _ ____ _
| | | ___/ / |___ \ _ __ ___| |_
| | | |_ | | | __) | | '_ \ / _ \ __|
| |___| _| | | |/ __/ _| | | | __/ |_
|_____|_| |_|_|_____(_)_| |_|\___|\__|
Html Name: PureWin
Description:Html Code by LF112
Version:0.0.6
Author:LF112
Author URI:https://lf112.net
Author QQ: 2275203821
-->
<head>
<title><?php if ( is_home() ) {
bloginfo('name'); echo " - "; bloginfo('description');
} elseif ( is_category() ) {
single_cat_title(); echo " - "; bloginfo('name');
} elseif (is_single() || is_page() ) {
single_post_title();
} elseif (is_search() ) {
echo "搜索结果"; echo " - "; bloginfo('name');
} elseif (is_404() ) {
echo '页面未找到!';
} else {
wp_title('',true);
} ?></title>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="description" content="BY LF112">
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/style.css?ver=<?php echo wp_get_theme()->get('Version');?>" type="text/css" media="screen" />
<style>
<?php
if(get_option('PureWin-BackGround') == "" || get_option('PureWin-BackGround') == '/wp-content/themes/PureWin/images/background.png'){}else{
echo "body { background-image: url('".get_option('PureWin-BackGround')."');}";
if (get_option('PureWin-BackGround') == "" || get_option('PureWin-BackGround') == '#0B0B0B'){echo '#Taskbar-footer {background-color: rgba(11, 11, 11, 0.51);}';}else{echo '#Taskbar-footer {background-color: '.get_option('PureWin-BackGround').'}';}
if (get_option('PureWin-StatusEdit') == "" || get_option('PureWin-StatusEdit') == '#333333'){echo '#Taskbar-footer .Search {background-color: rgba(11, 11, 11, 0.51);}';}else{echo '#Taskbar-footer {background-color: '.get_option('PureWin-StatusEdit').'}';}
}
if (get_option('PureWin-BolggerColor') == "" || get_option('PureWin-BolggerColor') == 'rgba(53, 53, 53, 0.42);'){}else{echo '#Desktop #Blogger-Cards {background-color: '.get_option('PureWin-BolggerColor').';}';}
?>
</style>
</head>
<body>