forked from joebillings/sea-wordpress-theme
-
Notifications
You must be signed in to change notification settings - Fork 1
/
header.php
49 lines (48 loc) · 1.91 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
<!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js">
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<title><?php wp_title('—', true, 'right'); ?><?php bloginfo('name'); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<header class="site-header">
<div class="site-header-inner">
<?php if( get_bloginfo('description') ): ?>
<div class="logo-container">
<?php endif; ?>
<h1 class="title">
<a class="nav-brand" href="<?php bloginfo('url'); ?>"><span id="nav-brand-image-wrap">
<?php
$blog_name = get_bloginfo('name'); ?>
<?php sea_add_brand_image() ?></span>
<span class="site-name <?= get_theme_mod( 'display_brand_image_only' ) ? 'hide-text' : '' ?>"><?php echo $blog_name; ?></span>
</a>
</h1>
<?php if( get_bloginfo('description') ): ?>
<p class="tagline"><?php bloginfo('description') ?></p>
</div>
<?php endif; ?>
<nav class="main-nav">
<?php wp_nav_menu(array(
'theme_location' => 'main-navigation',
'container' => ''
)) ?>
</nav>
<nav class="hamburger">
<span class="hamburger-icon" onclick="toggleMobileMenu()">
<i class="hamburger-lines" aria-label="Toggle Navigation Menu">×</i>
</a>
</nav>
</div>
<nav id="mobile-nav" class="mobile-nav hidden">
<?php wp_nav_menu(array(
'theme_location' => 'main-navigation',
'container' => '',
'container_class' => ''
)) ?>
</nav>
</header>