-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
53 lines (52 loc) · 1.94 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
<?php
/**
* The template for displaying the header
*
* Displays all of the head element and everything up until the page header div.
*
* @package WordPress
* @subpackage Hestia
* @since Hestia 1.0
*/
?><!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 if ( is_singular() && pings_open( get_queried_object() ) ) : ?>
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php endif; ?>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div class="wrapper">
<header class="header">
<nav class="navbar navbar-default navbar-transparent navbar-fixed-top navbar-color-on-scroll">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#main-navigation">
<span class="sr-only"><?php _e( 'Toggle Navigation', 'hestia-pro' ); ?></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<div class="title-logo-wrapper">
<a class="navbar-brand" style="padding: 0px 15px" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php bloginfo( 'name' ); ?>"><?php echo hestia_logo(); ?></a>
</div>
</div>
<?php
wp_nav_menu( array(
'menu' => esc_html__( 'Primary Menu', 'hestia-pro' ),
'theme_location' => 'primary',
'depth' => 2,
'container' => 'div',
'container_class' => 'collapse navbar-collapse',
'container_id' => 'main-navigation',
'menu_class' => 'nav navbar-nav navbar-right',
'fallback_cb' => 'hestia_bootstrap_navwalker::fallback',
'walker' => new hestia_bootstrap_navwalker(),
) );
?>
</div>
</nav>