-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
executable file
·91 lines (84 loc) · 3.01 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
<?php
/**
* The template for displaying the header
*
* Displays all of the head element
*
*/
$settings = json_decode(get_option('wp_fancy_settings'), true);
?>
<!DOCTYPE html>
<!--[if IE 7]>
<html class="ie ie7" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 8]>
<html class="ie ie8" <?php language_attributes(); ?>>
<![endif]-->
<!--[if !(IE 7) & !(IE 8)]><!-->
<html <?php language_attributes(); ?>>
<!--<![endif]-->
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<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 esc_url( get_template_directory_uri() ); ?>/resources/js/html5.js"></script>
<![endif]-->
<script>(function(){document.documentElement.className='js'})();</script>
<link href='http://fonts.googleapis.com/css?family=PT+Sans:400,700|Slabo+27px' rel='stylesheet' type='text/css'>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-22248575-1']);
_gaq.push(['_setDomainName', 'andreknieriem.de']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<?php wp_head();
$favicon = (isset($settings['favicon']) && !empty($settings['favicon'])) ? $settings['favicon'] : esc_url( get_template_directory_uri() ).'/resources/img/favicon.ico';
$filetype = wp_check_filetype($favicon);
echo '<link rel="icon" type="'.$filetype['type'].'" href="'.$favicon.'" />';
?>
<style>
@media screen and (max-width: 991px) {
html {
margin-top: 0 !important;
}
* html body { margin-top: 0 !important; }
}
</style>
</head>
<body <?php body_class(); ?>>
<header id="header">
<a href="<?php echo get_home_url(); ?>" class="logo">
<?php
if(!empty($settings['logo'])) {
echo '<img src="'.$settings['logo'].'" />';
} else {
echo '<img class="logoimg" src="'.get_template_directory_uri().'/resources/img/logo.png">';
}
?>
</a>
<button type="button" class="navbar-toggle">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar topicon"></span>
<span class="icon-bar"></span>
</button>
<button type="button" class="search-toggle">
<i class="fa fa-search"></i>
</button>
</header>
<div class="topmenu">
<?php
wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu' , 'container' => 'nav') );
?>
</div>
<div class="mobileSearch">
<form action="" class="searchform" method="get"><input type="text" name="s" id="s" placeholder="Search"></form>
</div>
<div id="wholecontent">