forked from Tokinx/Wing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
executable file
·82 lines (79 loc) · 3.42 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?php
header('X-Frame-Options: GOFORIT');
?>
<!DOCTYPE html>
<html class="<?php the_skin_mode(); ?>">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<link rel="shortcut icon" href="<?php echo home_url() . '/icon.png' ?>">
<?php wp_head(); ?>
<?php if ( $_background = get_theme_mod( 'biji_setting_background', '' ) ): ?>
<style>
html {
background-image: url("<?= $_background ?>");
background-size: cover;
background-position: center;
background-attachment: fixed;
}
</style>
<?php endif; ?>
</head>
<body>
<div id="app" :class="['layout', animation, '<?= ( $_background ? 'less-animation' : '' ) ?>']" style="display: none;"
v-show="true">
<header id="header" class="flex-center justify-between">
<section class="header__left">
<a href="<?php bloginfo( 'url' ); ?>">
<img class="logo-img" src="https://img.fenewbee.com/blog/icon.png" alt="一只特立独行的猪">
<span class="fullname"><?php bloginfo( 'name' ); ?></span>
</a>
</section>
<section class="header__right d-flex">
<form method="get" action="<?php bloginfo( 'url' ); ?>" class="search">
<input class="search-key s-circle" name="s" placeholder="Please enter..." type="text"
required="required"/>
<i class="text-small czs-search-l flex-center text-gray"></i>
</form>
<a
class="flex-center s-circle tooltip text-gray"
@click="toggleSkinMode"
href="javascript:void(0);"
:data-tooltip="mode === 'dark' ? 'dark' : 'light'">
<i v-if="mode === 'dark'" class="czs-moon"></i>
<i v-else class="czs-sun"></i>
</a>
<a class="btn btn-link btn-action right-btn uni-bg uni-shadow menu-btn off-canvas-toggle flex-center ml-2" href="#aside">
<i class="text-large czs-menu-l flex-center"></i>
</a>
</section>
</header>
<section id="core" class="container off-canvas off-canvas-sidebar-show">
<!-- Aside -->
<aside id="aside" class="off-canvas-sidebar">
<div class="sidebar-blog-name">
<a href="<?php bloginfo( 'url' ); ?>">
<span class="fullname"><?php bloginfo( 'name' ); ?></span>
</a>
</div>
<section class="sticky">
<?php
foreach ( [ 'header_nav', 'footer_nav' ] as $name ) {
if ( has_nav_menu( $name ) ) {
wp_nav_menu( [
'container' => false,
'theme_location' => $name,
'menu_class' => $name . ' reset-ul uni-bg uni-shadow ',
'depth' => 0,
] );
}
}
dynamic_sidebar( 'aside-widget-area' );
?>
</section>
</aside>
<!-- 移动端导航蒙版 -->
<a class="off-canvas-overlay" href="#close"></a>
<!-- Main -->
<main id="main" class="uni-bg uni-shadow off-canvas-content">
<div class="content">