forked from tlongren/rootdip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
46 lines (34 loc) · 2.3 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
<?php global $html5press_options; $html5press_settings = get_option( 'html5press_options', $html5press_options ); if (!isset($html5press_settings['theme_color'])) { $html5press_settings['theme_color'] = "pink"; } ?>
<!doctype html>
<!--[if lt IE 7]> <html class="no-js ie6" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 7]> <html class="no-js ie7" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 8]> <html class="no-js ie8" <?php language_attributes(); ?>> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" <?php language_attributes(); ?>> <!--<![endif]-->
<head>
<meta charset="utf-8" />
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title><?php bloginfo('name'); ?><?php wp_title(); ?></title>
<meta name="description" content="" />
<!-- Mobile viewport optimized: j.mp/bplateviewport -->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="<?php bloginfo('stylesheet_url'); ?>" rel="stylesheet" />
<link href="<?php echo get_stylesheet_directory_uri(); ?>/css/<?php echo esc_attr( $html5press_settings['theme_color'] ); ?>.css" rel="stylesheet" />
<link href="http://fonts.googleapis.com/css?family=Droid+Serif:regular,bold" rel="stylesheet" />
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div id="wrapper">
<header id="header" class="clearfix" role="banner">
<hgroup>
<h1 id="site-title"><a href="<?php echo home_url(); ?>"><?php if (empty($html5press_settings['custom_logo_url'])) { bloginfo('name'); } else { ?><img src="<?php echo $html5press_settings['custom_logo_url']; ?>" alt="<?php bloginfo('name'); ?>" title="<?php bloginfo('name'); ?>" /><?php } ?></a></h1>
<?php if ($html5press_settings['show_tagline'] == 1) { ?><h2 id="site-description"><?php bloginfo('description'); ?></h2><?php } ?>
</hgroup>
</header> <!-- end header -->
<div id="main" class="clearfix">
<!-- Navigation -->
<nav id="menu" class="clearfix" role="navigation">
<h2 class="assistive-text"><?php _e( 'Main menu', 'html5press' ); ?></h2>
<?php wp_nav_menu( array( 'menu' => 'top-menu', 'container' => 'false' ) ); ?>
</nav> <!-- #nav -->