-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathheader.php
98 lines (94 loc) · 3.48 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
<?php
/**
* The Header for our theme.
*
* Displays all of the <head> section and everything up till <div id="main">
*
* @package Cardume
* @subpackage Humus
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js">
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no" />
<title><?php wp_title( '|', true, 'right' ); ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<!--[if lt IE 9]>
<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
<![endif]-->
<?php humus_favicon(); ?>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div id="page" class="hfeed site">
<?php do_action( 'before' ); ?>
<header id="masthead" class="site-header" role="banner">
<div class="container">
<div class="twelve columns">
<?php
$logo = humus_get_logo_url();
?>
<h1 class="site-title <?php if($logo) echo 'with-logo'; ?>">
<a href="<?php echo esc_url(home_url('/')); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
<?php bloginfo('name'); ?>
<?php humus_logo(); ?>
</a>
</h1>
<div class="header-navigation">
<nav id="mastnav">
<?php
wp_nav_menu(array(
'theme_location' => 'primary',
'container' => false,
'walker' => new Humus_Header_Menu_Walker()
));
?>
</nav>
<div class="right-side">
<div class="search maintain-hover">
<div class="searchform">
<?php get_search_form(); ?>
</div>
</div>
<div class="newsletter hide-if-mobile maintain-hover">
<div class="newsletter-content">
<div class="newsletter-container">
<p><?php _e('Sign up to our newsletter and be the first to know about our latest contents', 'humus'); ?></p>
<?php humus_newsletter_form(); ?>
</div>
</div>
</div>
<div class="social hide-if-mobile maintain-hover">
<div class="social-content">
<div class="social-icons">
<?php
$facebook = get_field('facebook_url', 'option');
if($facebook)
echo '<a href="' . $facebook . '" title="Facebook" target="_blank">facebook</a>';
$twitter = get_field('twitter_url', 'option');
if($twitter)
echo '<a href="' . $twitter . '" title="Twitter" target="_blank">twitter</a>';
$youtube = get_field('youtube_url', 'option');
if($youtube)
echo '<a href="' . $youtube . '" title="YouTube" target="_blank">youtube</a>';
$instagram = get_field('instagram_url', 'option');
if($instagram)
echo '<a href="' . $instagram . '" title="Instagram" target="_blank">instagram</a>';
$gplus = get_field('gplus_url', 'option');
if($gplus)
echo '<a href="' . $gplus . '" title="Google Plus" target="_blank">google</a>';
$pinterest = get_field('pinterest_url', 'option');
if($pinterest)
echo '<a href="' . $pinterest . '" title="Pinterest" target="_blank">pinterest</a>';
?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</header><!-- #masthead -->
<div id="main" class="site-main">