forked from Automattic/_s
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathheader.php
86 lines (82 loc) · 3.37 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
<?php
error_reporting(E_ALL);
/**
* The Header for our theme.
*
* Displays all of the <head> section and everything up till <div id="content">
*
* @package trirhena_theme
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php wp_title( '|', true, 'right' ); ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<!-- Hack for only with script elements http://rickyrosario.com/blog/the-opposite-of-the-noscript-element-yesscript-scriptonly/ -->
<script type="text/javascript">
//<![CDATA[
document.getElementsByTagName('html')[0].className='jsOn';
//]]>
</script>
<?php wp_head(); ?>
<!-- include fittext plugin (needs to be loaded after jQyuery) -->
<script src="<?php echo get_template_directory_uri() . '/js/fittext.js'; ?>"></script>
</head>
<body <?php body_class(); ?>>
<div id="page" class="hfeed site">
<header id="masthead" class="site-branding">
<div id="site-branding" class="opacity-bg<?php echo((get_header_image())? " image" : ""); ?>" >
<h1 class="site-title">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home" class="nolink" style="color: #<?php header_textcolor(); ?>;"><?php bloginfo( 'name' ); ?></a>
</h1>
<h2 class="site-description">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home" class="nolink" style="color: #<?php header_textcolor(); ?>;"><?php bloginfo( 'description' ); ?></a>
</h2>
</div>
<!-- hier die Slideshow hin -->
<div id="claim" <?php if( ! trirhena_theme_is_landing_page() ){ echo 'class="non_landing_page"'; } ?>>
<h1 class="heading">
«<?php
if(get_option('show_on_front') != 'page') :
_e('This Theme is designed for a static front page. Please select one!', 'trirhena_theme');
else :
echo get_the_title(get_option('page_on_front'));
endif; ?>»
</h1>
</div>
<!-- inflate punchline -->
<script type="text/javascript">
jQuery(".heading").fitText(1.2);
</script>
<nav id="site-navigation" class="opacity-bg<?php echo((get_header_image())? " image" : ""); ?>" role="navigation">
<div class="menu-toggle"><a href="#content"><?php _e( 'Menu', 'trirhena_theme' ); ?></a></div>
<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'trirhena_theme' ); ?></a>
<?php
$menu = wp_nav_menu( array(
// count only top-level entries
'depth' => -1,
// display here when set to top
'theme_location' => 'primary',
'echo' => 0,
'container_class' => 'menu',
'fallback_cb' => 'wp_page_menu'
)
);
?>
<!-- Menu for mobile browsers and small screens -->
<div id="menu-desktop"><?php echo "$menu"; ?></div>
</nav><!-- #site-navigation -->
<?php if ( get_header_image() ) : ?>
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home" class="nolink">
<img src="<?php header_image(); ?>"
id="header-image"
title="<?php bloginfo( 'name' ); ?> -- <?php bloginfo( 'description' ); ?>"
alt="<?php bloginfo( 'name' ); ?> -- <?php bloginfo( 'description' ); ?>">
</a>
<?php endif; // End header image check. ?>
</header>
<div id="content" class="site-content">
<div id="menu-mobile"><?php echo "$menu"; ?></div>