Repository navigation
Expand file tree
/
Copy pathheader.php
More file actions
83 lines (62 loc) · 2.92 KB
/
Copy pathheader.php
File metadata and controls
83 lines (62 loc) · 2.92 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
<?php
/**
* Header Template
*
* @see http://codex.wordpress.org/Template_Hierarchy
*
* @package Scaffolding
* @since Scaffolding 1.0
*
*/ ?><!DOCTYPE html>
<!--[if lt IE 7]><html <?php language_attributes(); ?> class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if (IE 7)&!(IEMobile)]><html <?php language_attributes(); ?> class="no-js lt-ie9 lt-ie8"><![endif]-->
<!--[if (IE 8)&!(IEMobile)]><html <?php language_attributes(); ?> class="no-js lt-ie9"><![endif]-->
<!--[if gt IE 8]><!--> <html <?php language_attributes(); ?> class="no-js"><!--<![endif]-->
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
<!--[if lt IE 9]>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7/html5shiv.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7/html5shiv-printshiv.min.js"></script>
<![endif]-->
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div id="container">
<header id="masthead" class="header" role="banner">
<div id="inner-header" class="wrap clearfix">
<?php // to use an image just replace the bloginfo('name') with <img> ?>
<div id="logo" class="h1"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a></div>
<?php // if you'd like to use the site description you can un-comment it below
// echo '<p class="site-description">' . bloginfo( "description" ) . '</p>' ?>
</div>
</header>
<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'scaffolding' ); ?></a>
<nav id="main-navigation" class="clearfix" role="navigation" aria-label="<?php _e( 'Primary Navigation', 'scaffolding' ); ?>">
<?php scaffolding_main_nav(); ?>
</nav>
<?php // Interior Header Image ?>
<div class="banner-wrap">
<div id="banner">
<div class="spacer"></div>
</div>
</div>
<div id="content">
<div id="inner-content" class="wrap clearfix">
<?php // Test for active sidebars to set the main content width
if ( is_active_sidebar( 'left-sidebar' ) && is_active_sidebar( 'right-sidebar' ) ) { // both sidebars
$main_class = 'col-sm-6 col-sm-push-3';
} elseif ( is_active_sidebar( 'left-sidebar' ) && ! is_active_sidebar( 'right-sidebar' ) ) { // left sidebar
$main_class = 'col-sm-9 col-sm-push-3';
} elseif ( ! is_active_sidebar( 'left-sidebar' ) && is_active_sidebar( 'right-sidebar' ) ) { // right sidebar
$main_class = 'col-sm-9';
} else { // no sidebar
$main_class = 'col-xs-12';
}
?>
<div class="row">
<div id="main" class="<?php echo $main_class; ?> clearfix" role="main">