-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
38 lines (35 loc) · 1.07 KB
/
header.php
File metadata and controls
38 lines (35 loc) · 1.07 KB
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
<?php
print('<!DOCTYPE html>');
printf('<html %s>', get_language_attributes() );
printf('
<head>
<meta charset="%s">
<meta name="viewport" content="width=device-width, initial-scale=1.0">',
get_bloginfo('charset')
);
wp_head();
print('</head>');
printf( '<a href="#theme-skip-link-destination" id="theme-skip-link">%s</a>', __('Skip the navigation') );
printf('<body class="%s"><div class="top-bar">', esc_attr( implode( ' ', get_body_class() ) ) );
wp_body_open();
if( function_exists('the_custom_logo') ):
the_custom_logo();
endif;
wp_nav_menu(
['theme_location' => 'primary',
'menu_class' => 'menu flex-list',
'container' => 'nav',
'container_id' => 'regular-nav',
'container_class' => 'navbar',
'depth' => '2']
);
print( '<span id="theme-skip-link-destination"></span>');
print('</div>');
wp_nav_menu(
['theme_location' => 'primary',
'menu_class' => 'menu flex-list',
'container' => 'nav',
'container_id' => 'mobile-nav',
'container_class' => 'navbar',
'depth' => '2']
);