-
Notifications
You must be signed in to change notification settings - Fork 13
/
header.php
44 lines (42 loc) · 1.37 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
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<header id="header" class="clearfix">
<div class="container">
<div class="col-group">
<div class="site-name">
<?php if ( is_front_page() && is_home() ) : ?>
<h1>
<a id="logo" href="<?php echo esc_url( home_url( '/' ) ); ?>">
<?php bloginfo( 'name' ); ?>
</a>
</h1>
<?php else : ?>
<a id="logo" href="<?php echo esc_url( home_url( '/' ) ); ?>">
<?php bloginfo( 'name' ); ?>
</a>
<?php endif; ?>
<p class="description"><?php bloginfo( 'description' ); ?></p>
</div>
<?php if ( has_nav_menu( 'primary' ) ) : ?>
<div>
<?php wp_nav_menu( array(
'theme_location' => 'primary',
'container' => 'nav',
'container_class' => 'clearfix',
'container_id' => 'nav-menu',
) ); ?>
</div>
<?php endif; ?>
</div>
</div>
</header>
<div id="body">
<div class="container">
<div class="col-group">