forked from WordPress/gutenberg-starter-theme
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathheader.php
77 lines (67 loc) · 2.29 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
<?php
/**
* The header for our theme
*
* This is the template that displays all of the <head> section and everything up until <div id="content">
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package ThemeWPUGPH
*/
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<a class="screen-reader-text" href="#main-content"><?php esc_html_e( 'Skip to content', 'themewpugph' ); ?></a>
<!--HEADER-->
<header class="nav uk-sticky uk-sticky-below uk-sticky-fixed uk-box-shadow-medium" data-uk-sticky="cls-active: uk-background-default; animation: uk-animation-slide-top; show-on-up: true;">
<div class="uk-container">
<nav class="uk-navbar uk-navbar-container uk-navbar-transparent" data-uk-navbar>
<div class="uk-navbar-left">
<div class="uk-navbar-item uk-padding-remove-horizontal">
<a class="uk-navbar-toggle uk-hidden@m" data-uk-toggle data-uk-navbar-toggle-icon href="#offcanvas-nav"></a>
<a class="uk-navbar-item uk-logo" href="<?php echo esc_url( home_url() ); ?>">
<?php
if ( has_custom_logo() ) {
wp_kses(
the_custom_logo(),
wp_kses_allowed_html( 'post' )
);
} else {
esc_html_e( 'Logo', 'themewpugph' );
}
?>
</a>
<?php
wp_nav_menu(
array(
'theme_location' => 'primary-menu',
'container_class' => 'uk-visible@m',
'menu_class' => 'uk-navbar-nav',
'items_wrap' => '<ul class="%2$s">%3$s</ul>',
'walker' => new UIKit3_Walker_Nav_Menu(),
)
);
?>
</div>
</div>
<div class="uk-navbar-right">
<div>
<a class="uk-navbar-toggle" data-uk-search-icon href="#"></a>
<div class="uk-drop uk-background-default uk-padding-small uk-padding-remove-vertical" data-uk-drop="mode: click; pos: left-center; offset: 0">
<?php get_search_form(); ?>
</div>
</div>
</div>
</nav>
</div>
</header>
<!--/HEADER-->
<main id="main-content" class="uk-section">
<div class="uk-container">