-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
executable file
·62 lines (58 loc) · 2.09 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
<?php
/**
* The header for our theme
*
* @package FwDown
*/
?>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="applicable-device" content="pc,mobile">
<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<meta name="renderer" content="webkit" />
<link rel="profile" href="https://gmpg.org/xfn/11">
<?php wp_head(); ?>
<?php
$url = get_template_directory_uri();
$version = '1.19';
if ($url) {
wp_enqueue_script('uikit-js', $url . '/Static/js/uikit.min.js', array(), $version, true);
wp_enqueue_script('uikit-icons', $url . '/Static/js/uikit-icons.min.js', array(), $version, true);
wp_enqueue_style( 'uikitss', $url.'/Static/css/uikit.min.css',array(),$version,false );
}
?>
</head>
<body>
<div id="page" class="site">
<div class="head-top">
<div
uk-sticky="animation: uk-animation-fade; sel-target: .uk-navbar-container; cls-active: uk-navbar-sticky; cls-inactive: uk-navbar-transparent; top: 200">
<nav class="uk-container uk-container-expand" uk-navbar="align: center">
<div class="nav-overlay uk-navbar-left">
<a class="uk-navbar-item uk-logo header-logo"
href="<?php echo get_home_url();?>"><img
src="<?php echo fw_get_opt('logo');?>" alt="LOGO"></a>
</div>
<div class="uk-navbar-right">
<div>
<ul class="uk-navbar-nav uk-visible@m">
<?php wp_nav_menu( array(
'theme_location' => 'menu-header',
'container' => false,
'container_class' => '', //最外层容器class名
'container_id' => '',//最外层容器id值
'items_wrap' => '%3$s',
'fallback_cb' => 'wp_page_menu',
));?>
</ul>
</div>
</div>
<div class="nav-overlay uk-margin-left">
<a class="uk-navbar-toggle uk-hidden@m" uk-toggle="target: #offcanvas-reveal" uk-navbar-toggle-icon href="#"></a>
</div>
</nav>
</div>
</div>