-
Notifications
You must be signed in to change notification settings - Fork 1
/
header.php
59 lines (53 loc) · 1.58 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
<?php declare(strict_types=1);
/*
* Header template
*
*/
use \Ultrafunk\Theme\Tags as ultrafunk;
?>
<!doctype html>
<html <?php language_attributes(); ?> class="<?php ultrafunk\user_layout_class(); ?>">
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<?php
ultrafunk\pre_wp_head();
wp_head();
ultrafunk\head();
?>
</head>
<body <?php ultrafunk\body_attributes(); ?>>
<?php wp_body_open(); ?>
<header id="site-header" class="hide-nav-menu">
<?php ultrafunk\header_progress_controls(); ?>
<div class="site-header-container">
<div id="site-search-container"><?php ultrafunk\search_form(); ?></div>
<div class="site-branding-container">
<?php
ultrafunk\header_site_branding();
ultrafunk\header_playback_controls();
?>
</div>
<nav id="site-navigation" class="main-navigation">
<?php ultrafunk\header_nav_bars() ?>
<div class="nav-menu-outer">
<div class="nav-menu-inner">
<?php
wp_nav_menu([
'theme_location' => 'primary-sections',
'item_spacing' => 'discard',
'link_before' => '<span class="menu-item-text text-nowrap-ellipsis">',
'link_after' => '</span><span class="menu-item-icon"></span>',
]);
wp_nav_menu([
'theme_location' => 'primary-channels',
'item_spacing' => 'discard',
]);
?>
</div>
</div>
</nav>
</div>
<?php ultrafunk\track_search_results(); ?>
</header>
<main id="site-content">