-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathheader.php
More file actions
executable file
·209 lines (193 loc) · 10.9 KB
/
header.php
File metadata and controls
executable file
·209 lines (193 loc) · 10.9 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
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<!-- Mobiel Detect -->
<?php $detect = new Mobile_Detect(); ?>
<!-- load the Theme Options -->
<?php $options = get_options_by_cat() ?>
<head profile="http://gmpg.org/xfn/11">
<title><?php bloginfo('name'); ?> <?php wp_title(' - ', true, 'left'); ?></title>
<!-- ♥ ♥ ♥ Oh nice, you take a look at the sourcecode. I'm flattered. ♥ ♥ ♥ -->
<meta name="author" content="Peter Amende" />
<meta name="description" content="<?php bloginfo('description'); ?>" />
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0" />
<!-- Stylesheet -->
<link type="text/css" rel="stylesheet" href="<?php bloginfo('stylesheet_url');?>" media="screen" />
<link type="text/css" rel="stylesheet" href="<?php bloginfo('stylesheet_directory');?>/print.css" media="print" />
<!--[if IE]>
<link type="text/css" rel="stylesheet" href="<?php bloginfo('stylesheet_directory');?>/ie.css" media="screen" />
<![endif]-->
<!-- Favicon -->
<link rel="Shortcut Icon" type="image/x-icon" href="<?php bloginfo('template_directory'); ?>/favicon.ico" />
<!-- Touch Icon -->
<?php if($options['icon']) : ?>
<link rel="apple-touch-icon" href="<?php echo $options['icon']; ?>"/>
<link rel="apple-touch-icon-precomposed" href="<?php echo $options['icon']; ?>"/>
<?php else : ?>
<link rel="apple-touch-icon" href="<?php bloginfo('template_directory'); ?>/touch-icon.png"/>
<link rel="apple-touch-icon-precomposed" href="<?php bloginfo('template_directory'); ?>/touch-icon.png"/>
<?php endif; ?>
<link rel="alternate" type="application/rss+xml" title="RSS" href="<?php bloginfo('rss2_url'); ?>">
<link rel='canonical' href='<?php bloginfo('url'); ?>' />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<link rel='index' title='<?php bloginfo('description'); ?>' href='<?php bloginfo('url'); ?>' />
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/jquery.1.7.1.js"></script>
<?php if(is_front_page()) : ?>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/jquery.cycle.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/jquery.easing.1.3.js"></script>
<?php endif; ?>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/jquery.fitvids.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/jquery.smoothscroll.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/jquery.cookie.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/libs/modernizr-1.7.min.js"></script>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<a class="skip-link" href="#content" title="Zum Inhalt springen">Zum Inhalt</a>
<div id="main-nav-outside">
<div id="main-nav-inside" class="inside">
<nav id="main-nav" role="navigation">
<a href="#main-nav" class="menu-toggle"><?php _e('Navigation','scapegoat'); ?></a>
<?php wp_nav_menu(array('theme_location' => 'header', 'depth' => '0', 'fallback_cb' => fallback_menu, 'walker' => new My_Walker_Nav_Menu())); ?>
<div class="clear"></div>
</nav><!-- main-nav -->
</div><!-- main-nav-inside -->
</div><!-- main-nav-outside -->
<?php wp_nav_menu(array('theme_location' => 'header', 'menu_class' => 'active-submenu', 'depth' => '0', 'fallback_cb' => fallback_menu, 'walker' => new My_Walker_SubNav_Menu())); ?>
<div id="menu-placeholder"></div>
<div id="header-outside">
<header id="header-inside" class="inside">
<figure id="logo" role="banner">
<?php if($options['logo']) : ?>
<a title="<?php bloginfo('name'); ?>" href="<?php if(isset($options["opt_id"])){echo get_category_link($options["opt_id"] );} else {bloginfo('url');} ?>">
<img src="<?php echo $options['logo']; ?>" alt="<?php bloginfo('name'); ?>" />
</a>
<?php else : ?>
<span id="logo-text">
<a title="<?php bloginfo('name'); ?>" href=""<?php if(isset($options["opt_id"])){echo get_category_link($options["opt_id"] );} else {bloginfo('url');} ?>">
<?php bloginfo('name'); ?>
</a>
</span>
<?php endif; ?>
</figure><!-- logo -->
<div id="description-outer">
<div id="description-inner">
<aside id="header-social-links" role="navigation">
<?php if($options['rss']) : ?>
<a target="_blank" class="social-icon rss" href="<?php echo $options['rss']; ?>" title="Feed">Feed</a>
<?php else : ?>
<a target="_blank" class="social-icon rss" href="<?php bloginfo('rss2_url'); ?>" title="Feed">Feed</a>
<?php endif; ?>
<?php if($options['twitter']) : ?><a target="_blank" class="social-icon twitter" href="<?php echo $options['twitter']; ?>" title="Twitter">Twitter</a><?php endif; ?>
<?php if($options['facebook']) : ?><a target="_blank" class="social-icon facebook" href="<?php echo $options['facebook']; ?>" title="Facebook">Facebook</a><?php endif; ?>
<?php if($options['google']) : ?><a target="_blank" class="social-icon google" href="<?php echo $options['google']; ?>" title="GooglePlus">Google +</a><?php endif; ?>
<?php if($options['youtube']) : ?><a target="_blank" class="social-icon youtube" href="<?php echo $options['youtube']; ?>" title="Youtube">Youtube</a><?php endif; ?>
<?php if($options['mail']) : ?><a target="_blank" class="social-icon mail" href="<?php echo $options['mail']; ?>" title="Newsletter">Newsletter</a><?php endif; ?>
<?php if($options['podcast']) : ?><a target="_blank" class="social-icon podcast" href="<?php echo $options['podcast']; ?>" title="Podcast">Podcast</a><?php endif; ?>
</aside>
<span id="description">
<?php bloginfo('description'); ?>
</span>
</div><!-- discription-inner -->
</div><!-- discription-outer -->
<div class="clear"></div>
<h1 id="header-title-hidden">Piratenpartei Hamburg</h1>
</header><!-- header-inside -->
</div><!-- header-outside -->
<!-- Mobile Query -->
<?php if(!$detect->isMobile() || $detect->isTablet()) : ?>
<!-- Featured Container for Frontpage Slider and "Sidebar" -->
<?php if (is_home() && !is_paged() && is_front_page()) : ?>
<?php if($options['header-option'] == 'show-slider') : ?>
<!-- customize slider by theme-options -->
<?php if($options['slider-num'] == TRUE) : $num=$options['slider-num']; else : $num=5; endif; ?>
<?php if($options['slider-cat'] == TRUE) : $cat=$options['slider-cat']; else : $cat=''; endif; ?>
<!-- filter post formats from slider query -->
<?php $no_formats = array(array('taxonomy' => 'post_format', 'field' => 'slug', 'terms' => array('post-format-status'), 'operator' => 'NOT IN')); ?>
<!-- all parameters for the query -->
<?php $args = array('posts_per_page'=>$num,'cat'=>$cat,'tax_query'=>$no_formats,'post__not_in'=>get_option('sticky_posts')); ?>
<?php query_posts($args); ?>
<?php if(have_posts()) : ?>
<section id="front-page-header-outside">
<div id="front-page-header-inside" class="inside">
<div id="toggling" class="toggling">
<div id="slideshow">
<div id="front-page-slider">
<?php while (have_posts()) : the_post(); ?>
<section class="front-page-slide">
<header class="slide-text">
<h2 class="slide-text-title">
<a title="<?php the_title(); ?>" href="<?php the_permalink(); ?>">
<?php the_title(); ?>
</a>
</h2>
</header><!-- slide-text -->
<?php if(has_post_thumbnail()) : ?>
<figure class="slide-image">
<a title="<?php the_title(); ?>" href="<?php the_permalink(); ?>">
<?php the_post_thumbnail('featured'); ?>
</a>
</figure><!-- slide-image -->
<?php endif; ?>
</section><!-- front-page-slide -->
<?php endwhile; ?>
</div><!-- front-page-slider -->
</div><!-- slideshow -->
<?php if($options['featured-link-1'] && $options['featured-link-2'] && $options['featured-link-3'] && $options['featured-link-4']) : ?>
<div id="front-page-adverts">
<aside id="featured-links" role="navigation">
<ul>
<li>
<a target="_blank" class="featured-link" href="<?php echo $options['featured-link-1']; ?>" title="<?php echo $options['featured-link-title-1']; ?>">
<?php if($options['featured-link-title-1']) : ?>
<?php echo $options['featured-link-title-1']; ?>
<?php endif; ?>
</a>
</li>
<li>
<a target="_blank" class="featured-link" href="<?php echo $options['featured-link-2']; ?>" title="<?php echo $options['featured-link-title-2']; ?>">
<?php if($options['featured-link-title-2']) : ?>
<?php echo $options['featured-link-title-2']; ?>
<?php endif; ?>
</a>
</li>
<li>
<a target="_blank" class="featured-link" href="<?php echo $options['featured-link-3']; ?>" title="<?php echo $options['featured-link-title-3']; ?>">
<?php if($options['featured-link-title-3']) : ?>
<?php echo $options['featured-link-title-3']; ?>
<?php endif; ?>
</a>
</li>
<li>
<a target="_blank" class="featured-link" href="<?php echo $options['featured-link-4']; ?>" title="<?php echo $options['featured-link-title-4']; ?>">
<?php if($options['featured-link-title-4']) : ?>
<?php echo $options['featured-link-title-4']; ?>
<?php endif; ?>
</a>
</li>
</ul>
</aside><!-- featured-links -->
</div><!-- front-page-adverts -->
<?php endif; ?>
<div class="clear"></div>
</div><!-- toggling -->
<a id="front-page-slider-toggle"></a>
<div class="clear"></div>
</div><!-- front-page-header-inside -->
</section><!-- front-page-header-outside -->
<?php endif; wp_reset_query(); ?>
<?php elseif($options['header-option'] == 'show-header') : ?>
<?php $header_image = get_header_image(); if($header_image) : ?>
<section id="front-page-header-image-outside">
<div id="front-page-header-image-inside" class="inside">
<figure class="custom-header"></figure>
</div><!-- front-page-header-image-inside -->
</section><!-- front-page-header-image-outside -->
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
<!-- Featured Container End -->
<?php endif; ?>
<!-- Mobile Query -->
<div id="wrapper-outside">
<div id="wrapper-inside" class="inside">