-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader-no-sidebar.php
More file actions
91 lines (86 loc) · 3.46 KB
/
header-no-sidebar.php
File metadata and controls
91 lines (86 loc) · 3.46 KB
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?php
/**
* Header
*
* @package hipwords
*/
?>
<!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="https://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php wp_head(); ?>
<script id="mcjs">!function(c,h,i,m,p){m=c.createElement(h),p=c.getElementsByTagName(h)[0],m.async=1,m.src=i,p.parentNode.insertBefore(m,p)}(document,"script","https://chimpstatic.com/mcjs-connected/js/users/a4d8265f18725a43ae8c6024f/11fb1a9e6d9e031b5ea929578.js");</script>
</head>
<body <?php body_class(); ?> data-target=".navbar-fixed-top">
<div class="header-top">
<div class="overlay">
<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'hipwords' ); ?></a>
<nav class="navbar navbar-custom navbar-fixed-top" role="navigation">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="<?php echo esc_url( home_url('/') ); ?>">
<?php bloginfo('name'); ?>
</a>
</div>
<?php
wp_nav_menu( array(
'menu' => 'primary',
'theme_location' => 'primary',
'depth' => 2,
'container' => 'div',
'container_class' => 'collapse navbar-collapse navbar-right navbar-ex1-collapse',
'container_id' => 'bs-example-navbar-collapse-1',
'menu_class' => 'nav navbar-nav',
'fallback_cb' => 'hipwords_wp_bootstrap_navwalker::fallback',
'walker' => new hipwords_wp_bootstrap_navwalker())
);
?>
</div>
</nav>
<!-- #site-navigation -->
<header id="masthead" class="site-header container" role="banner">
<div class="site-branding">
<div class="col-md-7">
<?php if (is_front_page()) { ?>
<h1 class="site-title"><?php bloginfo( 'name' ); ?></h1>
<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
<?php } ?>
<?php if ((!is_home()) and !(is_archive())) { ?>
<?php the_title( sprintf( '<h1 class="entry-title site-title">', esc_url( get_permalink() ) ), '</h1>' ); ?>
<?php if ( 'post' == get_post_type() ) : ?>
<div class="entry-meta">
<?php the_time('l, F jS, Y') ?>
<?php the_category(', ') ?>
</div><!-- .entry-meta -->
<?php endif; ?>
<?php } ?>
<?php if (is_archive()) { ?>
<?php
the_archive_title( '<h1 class="site-title">', '</h1>' );
the_archive_description( '<div class="taxonomy-description">', '</div>' )
;?>
<?php } ?>
</div>
<div class="col-md-4 col-md-offset-1">
<?php if (!dynamic_sidebar('header-widget')) : ?>
<h1 class="widget-title"><?php _e('Header Widget', 'hipwords'); ?></h1>
<div class="textwidget"><p><?php _e('This is header widget box. To edit go to Appearance > Widgets > Header Widget','hipword'); ?></p></div>
<?php endif; //end of footer-widget-3 ?>
</div>
</div><!-- .site-branding -->
</header><!-- #masthead -->
</div>
</div>
<div id="page" class="container">
<!-- column container omitted -->