This repository has been archived on 2020-05-08. You can view files and clone it, but cannot push or open issues or pull requests.
understrap/header.php

83 lines
3.1 KiB
PHP
Raw Permalink Normal View History

2014-12-10 11:36:38 +00:00
<?php
/**
* The header for our theme.
*
* Displays all of the <head> section and everything up till <div id="content">
*
* @package understrap
*/
?><!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">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php wp_head(); ?>
<?php echo get_theme_mod( 'understrap_theme_script_code_setting' ); ?>
2014-12-10 11:36:38 +00:00
</head>
<body <?php body_class(); ?>>
2014-12-19 09:04:55 +00:00
2014-12-10 11:36:38 +00:00
<div id="page" class="hfeed site">
<!-- ******************* The Navbar Area ******************* -->
2015-03-23 12:39:22 +00:00
<div class="wrapper-fluid wrapper-navbar" id="wrapper-navbar">
2014-12-10 11:36:38 +00:00
<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'understrap' ); ?></a>
<nav class="site-navigation" itemscope="itemscope" itemtype="http://schema.org/SiteNavigationElement">
2016-01-08 08:05:36 +00:00
<div class="navbar navbar-inverse">
2014-12-19 10:29:56 +00:00
2015-08-12 15:21:46 +00:00
<div class="container">
2014-12-19 09:04:55 +00:00
2015-08-12 15:21:46 +00:00
<div class="row">
2014-12-19 10:29:56 +00:00
2015-08-14 08:29:30 +00:00
<div class="col-xs-12">
2014-12-10 11:36:38 +00:00
2015-08-12 15:21:46 +00:00
<div class="navbar-header">
<!-- .navbar-toggle is used as the toggle for collapsed navbar content -->
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse">
<span class="sr-only">Toggle navigation</span>
2014-12-10 11:36:38 +00:00
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
2015-08-12 15:21:46 +00:00
</button>
2014-12-10 11:36:38 +00:00
2015-08-12 15:21:46 +00:00
<!-- Your site title as branding in the menu -->
<a class="navbar-brand" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>
2014-12-10 11:36:38 +00:00
2015-08-12 15:21:46 +00:00
</div>
2014-12-10 11:36:38 +00:00
2015-08-12 15:21:46 +00:00
<!-- The WordPress Menu goes here -->
<?php wp_nav_menu(
2014-12-10 11:36:38 +00:00
array(
'theme_location' => 'primary',
'container_class' => 'collapse navbar-collapse navbar-responsive-collapse',
'menu_class' => 'nav navbar-nav',
'fallback_cb' => '',
'menu_id' => 'main-menu',
'walker' => new wp_bootstrap_navwalker()
)
2015-08-12 15:21:46 +00:00
); ?>
2014-12-10 11:36:38 +00:00
2014-12-19 09:34:34 +00:00
</div> <!-- .col-md-11 or col-md-12 end -->
2015-08-12 15:21:46 +00:00
</div> <!-- .row end -->
</div> <!-- .container -->
2014-12-10 11:36:38 +00:00
</div><!-- .navbar -->
</nav><!-- .site-navigation -->
2014-12-19 09:04:55 +00:00
</div><!-- .wrapper-navbar end -->