-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathheader.php
More file actions
executable file
·77 lines (75 loc) · 2.56 KB
/
header.php
File metadata and controls
executable file
·77 lines (75 loc) · 2.56 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
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 osi
*/
?>
<!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(); ?>>
<div class="wrapper" role="document">
<header id="masthead" class="site-header header-main">
<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'osi' ); ?></a>
<div class="header--inner">
<div class="site-branding header--blog-name">
<?php //osi_linked_logo( 'header-logo', 'large' ); ?>
</div><!-- .site-branding -->
<nav aria-label="Primary" id="site-navigation" class="nav-main" role="navigation">
<?php
if ( has_nav_menu( 'primary_navigation' ) ) :
wp_nav_menu(
array(
'theme_location' => 'primary_navigation',
'menu_class' => 'nav-main--menu',
)
);
endif;
if ( has_nav_menu( 'mobile_navigation' ) ) :
wp_nav_menu(
array(
'theme_location' => 'mobile_navigation',
'menu_class' => 'nav-mobile--menu',
)
);
endif;
//Adding for AI template - secondary navigation
if ( is_page_template( 'templates/ai-wide.php' ) ) :
echo '<p class="ai-mobile-label">' . esc_html__( 'Open Source AI', 'osi' ) . '</p>';
wp_nav_menu(
array(
'theme_location' => 'ai_secondary_nav',
'menu' => 'AI secondary nav',
'container' => false,
'container_class' => 'ai-secondary-nav',
'menu_class' => 'ai-secondary-nav-menu',
)
);
endif;
?>
</nav><!-- #site-navigation -->
<section class="open-search-wrapper">
<a aria-label="Open Search" class="open-search open-button jetpack-search-filter__link" href="#">
<?php OSI\SVG::the_svg( 'search' ); ?>
</a>
</section>
<section class="open-button-wrapper">
<button aria-label="Open Menu" id="openMainMenu" class="open-main-menu open-button">
<span class="menu-text"><?php esc_html_e( 'Open Main Menu', 'osi' ); ?></span>
<span></span>
<span></span>
</button>
<?php echo wp_kses_post( osi_sidebar_button() ); ?>
</section>
</div>
</header><!-- #masthead -->