forked from lacymorrow/casper
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
103 lines (97 loc) · 5.42 KB
/
header.php
File metadata and controls
103 lines (97 loc) · 5.42 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
<?php
/**
* The Header for our theme.
*
* Displays all of the <head> section and everything up till <div id="content">
*
* @package Casper
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="HandheldFriendly" content="True" />
<meta name="MobileOptimized" content="320" />
<title><?php wp_title( '|', true, 'right' ); ?></title>
<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(); ?>>
<header id="masthead" role="banner" class="site-head site-header" <?php if(get_header_image() ) : ?>style="background-image: url(<?php header_image(); ?>);"<?php endif ?>>
<div class="vertical">
<nav id="site-navigation" class="main-navigation" role="navigation">
<div>
<h1 class="menu-toggle">
<a class="icon-menu" href="#">
<span class="hidden"><?php _e( 'Menu', 'casper' ); ?></span>
</a>
</h1>
<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'casper' ); ?></a>
<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
</div>
</nav><!-- #site-navigation -->
<div class="site-head-content inner">
<?php if ( get_theme_mod( 'casper_logo' ) ) : ?>
<a class="blog-logo" href='<?php echo esc_url( home_url( '/' ) ); ?>' rel='home'><img src='<?php echo esc_url( get_theme_mod( 'casper_logo' ) ); ?>' alt='<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>'></a>
<?php endif; ?>
<div class="social-icons">
<?php if ( false != get_theme_mod( 'casper_social_youtube')) { ?>
<a class="icon-youtube" href="<?php echo get_theme_mod( 'casper_social_youtube'); ?>">
<span class="hidden"><?php _e( 'Youtube', 'casper' ); ?></span>
</a>
<?php } ?>
<?php if ( false != get_theme_mod( 'casper_social_tumblr')) { ?>
<a class="icon-tumblr" href="<?php echo get_theme_mod( 'casper_social_tumblr'); ?>">
<span class="hidden"><?php _e( 'Tumblr', 'casper' ); ?></span>
</a>
<?php } ?>
<?php if ( false != get_theme_mod( 'casper_social_google')) { ?>
<a class="icon-google-plus" href="<?php echo get_theme_mod( 'casper_social_google'); ?>">
<span class="hidden"><?php _e( 'Google+', 'casper' ); ?></span>
</a>
<?php } ?>
<?php if ( false != get_theme_mod( 'casper_social_facebook')) { ?>
<a class="icon-facebook" href="<?php echo get_theme_mod( 'casper_social_facebook'); ?>">
<span class="hidden"><?php _e( 'Facebook', 'casper' ); ?></span>
</a>
<?php } ?>
<?php if ( false != get_theme_mod( 'casper_social_twitter')) { ?>
<a class="icon-twitter" href="<?php echo get_theme_mod( 'casper_social_twitter' ); ?>">
<span class="hidden"><?php _e( 'Twitter', 'casper' ); ?></span>
</a>
<?php } ?>
<?php if ( false != get_theme_mod( 'casper_social_website')) { ?>
<a class="icon-home" href="<?php echo get_theme_mod( 'casper_social_website'); ?>">
<span class="hidden"><?php _e( 'Home', 'casper' ); ?></span>
</a>
<?php } ?>
<?php if ( false != get_theme_mod( 'casper_social_mail')) { ?>
<a class="icon-envelope" href="mailto:<?php echo get_theme_mod( 'casper_social_mail'); ?>">
<span class="hidden"><?php _e( 'Email', 'casper' ); ?></span>
</a>
<?php } ?>
<?php if ( false != get_theme_mod( 'casper_social_linkedin')) { ?>
<a class="icon-linkedin" href="<?php echo get_theme_mod( 'casper_social_linkedin'); ?>">
<span class="hidden"><?php _e( 'LinkedIn', 'casper' ); ?></span>
</a>
<?php } ?>
<?php if ( false != get_theme_mod( 'casper_social_github')) { ?>
<a class="icon-github" href="<?php echo get_theme_mod( 'casper_social_github'); ?>">
<span class="hidden"><?php _e( 'GitHub', 'casper' ); ?></span>
</a>
<?php } ?>
<?php if ( false != get_theme_mod( 'casper_social_dribbble')) { ?>
<a class="icon-dribbble" href="<?php echo get_theme_mod( 'casper_social_dribbble'); ?>">
<span class="hidden"><?php _e( 'Dribbble', 'casper' ); ?></span>
</a>
<?php } ?>
</div>
<h1 class="blog-title"><a class="blog-logo" href='<?php echo esc_url( home_url( '/' ) ); ?>' rel='home'><?php bloginfo( 'name' ); ?></a></h1>
<h2 class="blog-description"><?php bloginfo( 'description' ); ?></h2>
</div>
</div>
</header><!-- #masthead -->
<main id="content" class="content" role="main">