-
Notifications
You must be signed in to change notification settings - Fork 1
/
header.php
118 lines (106 loc) · 5.98 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<?php
/*
Template Name: Full Width
*/
?><!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(); ?>
</head>
<body <?php body_class(); ?>>
<div id="page" class="hfeed site">
<a class="skip-link screen-reader-text" href="#content"><?php _e('Skip to content', 'masonic'); ?></a>
<header id="masthead" class="site-header clear">
<div class="header-image">
<?php if (get_header_image()) : ?>
<figure><img src="<?php header_image(); ?>" width="<?php echo esc_attr(get_custom_header()->width); ?>" height="<?php echo esc_attr(get_custom_header()->height); ?>" alt="">
<div class="angled-background"></div>
</figure>
<?php endif; // End header image check. ?>
</div> <!-- .header-image -->
<div class="site-branding clear">
<div class="wrapper site-header-text clear">
<div class="logo-img-holder " >
<?php if ( get_theme_mod('masonic_logo', '') != '') { ?>
<a href='<?php echo esc_url(home_url('/')); ?>' title='<?php echo esc_attr(get_bloginfo('name', 'masonic')); ?>' rel='home'><img src='<?php echo esc_url(get_theme_mod('masonic_logo')); ?>' alt='<?php echo esc_attr(get_bloginfo('name', 'masonic')); ?>'></a>
<?php } ?>
<?php if (function_exists('the_custom_logo') && has_custom_logo( $blog_id = 0 )) {
masonic_the_custom_logo();
} ?>
</div>
<div class="main-header">
<?php if ( is_front_page() || is_home() ) : ?>
<h1 class="site-title"><a href="<?php echo esc_url(home_url('/')); ?>" rel="home"><?php bloginfo('name'); ?></a></h1>
<?php else : ?>
<h3 class="site-title"><a href="<?php echo esc_url(home_url('/')); ?>" rel="home"><?php bloginfo('name'); ?></a></h3>
<?php endif; ?>
<?php
$description = get_bloginfo( 'description', 'display' );
if ( $description || is_customize_preview() ) : ?>
<p class="site-description"><?php echo $description; ?></p>
<?php endif;?>
</div>
</div>
</div><!-- .site-branding -->
<nav class="navigation clear">
<input type="checkbox" id="masonic-toggle" name="masonic-toggle"/>
<label for="masonic-toggle" id="masonic-toggle-label" class="fa fa-navicon fa-2x"></label>
<div class="wrapper clear" id="masonic">
<?php
if (has_nav_menu('primary')) {
wp_nav_menu(array(
'theme_location' => 'primary',
'items_wrap' => '<ul id="%1$s" class="%2$s wrapper clear">%3$s</ul>',
'container' => ''
));
} else {
wp_page_menu(array(
'show_home' => true,
'menu_class' => ''
));
}
?>
<?php if ( get_theme_mod( 'masonic_search_icon_display', 1 ) != 0 ) { ?>
<div id="sb-search" class="sb-search">
<span class="sb-icon-search"><i class="fa fa-search"></i></span>
</div>
<?php } ?>
</div>
<?php if ( get_theme_mod( 'masonic_search_icon_display', 1 ) != 0 ) { ?>
<div id="sb-search-res" class="sb-search-res">
<span class="sb-icon-search"><i class="fa fa-search"></i></span>
</div>
<?php } ?>
</nav><!-- #site-navigation -->
<div class="inner-wrap masonic-search-toggle">
<?php get_search_form(); ?>
</div>
<?php if (!is_front_page()) { ?>
<div class="blog-header clear">
<article class="wrapper">
<div class="blog-site-title">
<?php
if ('' != masonic_header_title()) {
?>
<?php if ( is_home() ) : ?>
<h2><?php echo masonic_header_title(); ?></h2>
<?php elseif(is_post_type_archive('vacancies')) : ?>
<h1>Current Vacancies</h1>
<?php else : ?>
<h1><?php echo masonic_header_title(); ?></h1>
<?php endif; ?>
<?php } ?>
</div>
<?php if (function_exists('bcn_display')) { ?>
<div class="breadcrums" xmlns:v="http://rdf.data-vocabulary.org/#">
<?php bcn_display(); ?>
</div>
<?php } ?>
</article>
</div>
<?php } ?>
</header><!-- #masthead -->