This repository has been archived by the owner on Oct 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
header.php
69 lines (63 loc) · 3.03 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
60
61
62
63
64
65
66
67
68
69
<?php
/**
* The Header for our theme.
*
* Displays all of the <head> section and everything up till #main div
*
* @package Vulcano
* @since 1.0.0
*/
?><!DOCTYPE html>
<html class="no-js" <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php if ( ! get_option( 'site_icon' ) ) : ?>
<link href="<?php echo get_template_directory_uri(); ?>/assets/images/favicon.png" rel="shortcut icon" />
<?php endif; ?>
<!--[if lt IE 9]>
<script src="<?php echo get_template_directory_uri(); ?>/assets/js/html5.js"></script>
<![endif]-->
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<a id="skippy" class="sr-only sr-only-focusable" href="#content"><div class="container"><span class="skiplink-text"><?php _e( 'Skip to content', 'vulcano' ); ?></span></div></a>
<header id="header" role="banner">
<div class="container">
<div class="page-header hidden-xs">
<?php if ( is_front_page() ) : ?>
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
<?php else : ?>
<div class="site-title h1"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></div>
<?php endif ?>
</div><!-- .site-header-->
<div id="main-navigation" class="navbar navbar-default">
<div class="navbar-header">
<button type="button" class="navbar-toggler hidden-sm-up" data-toggle="collapse" data-target=".navbar-main-navigation">☰</button>
<a class="navbar-brand hidden-sm-up" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>
</div>
<nav class="collapse navbar-toggleable-xs navbar-main-navigation" role="navigation">
<?php
wp_nav_menu(
array(
'theme_location' => 'main-menu',
'depth' => 2,
'container' => false,
'menu_class' => 'nav navbar-nav',
'fallback_cb' => 'Vulcano_Bootstrap_Nav_Walker::fallback',
'walker' => new Vulcano_Bootstrap_Nav_Walker()
)
);
?>
<form class="form-inline navbar-form pull-right" method="get" action="<?php echo esc_url( home_url( '/' ) ); ?>" role="search">
<input type="search" value="<?php echo get_search_query(); ?>" class="form-control" name="s" placeholder="<?php _e( 'Search:', 'vulcano' ); ?>">
<button class="btn btn-success-outline" type="submit"><?php _e( 'Search', 'vulcano' ); ?></button>
</form>
</nav><!-- .navbar-collapse -->
</div><!-- #main-navigation-->
</div><!-- .container-->
</header><!-- #header -->
<div id="wrapper" class="container">
<div class="row">