-
Notifications
You must be signed in to change notification settings - Fork 4
/
header.php
executable file
·100 lines (82 loc) · 3.18 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
87
88
89
90
91
92
93
94
95
96
97
98
99
<?php
/**
* The Header for our theme.
*
* Displays all of the <head> section and everything up till <div id="main">
*
* @package solar
* @since solar 1.0
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />
<title><?php wp_title( 'by', true, 'right' ); bloginfo( 'name' ); ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<?php
$options = get_option ( 'solar_options' );
echo $options['google_analytics'];
if( isset( $options['color'] ) && '' != $options['color'] )
$color = $options['color'];
else
$color = '<?php echo $color ?>';
?>
<?php wp_head(); ?>
<style>
.wrap .content-blog article blockquote,
.wrap .content-blog article .entry-content a:hover,
.wrap .content-blog article a:hover,
.wrap nav a:hover
{border-color: <?php echo $color ?> !important;}
.wrap .content-blog article h2 a:hover
{ color: <?php echo $color ?> !important}
.wrap nav.pagination a:hover,
#respond #submit
{background-color: <?php echo $color ?>;}
<?php if($options['color']): ?>
.wrap header.site-header h1#logo a{background-color: <?php echo $options['color'] ?> !important;}
<?php endif; ?>
<?php if (header_image()): ?>
.wrap header.site-header h1#logo a{background-image: url(<?php echo header_image() ?> ) !important;}
<?php endif ?>
</style>
</head>
<body <?php body_class(); ?>>
<div class="wrap clearfix">
<?php do_action( 'before' ); ?>
<header id="masthead" class="site-header" role="banner">
<nav role="navigation" class="nav-blog">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>">Home</a>
<?php
$pages = get_pages(array('parent' => 0, 'exclude' => '84,88,80'));
foreach ( $pages as $page ): ?>
<a href="<?php echo get_page_link( $page->ID ) ?>" title="<?php echo $page->post_title ?>"><?php echo $page->post_title ?></a>
<?php endforeach; ?>
<?php if ($options['github_username']): ?>
<a target="_blank" class="github" href="http://github.com/<?php echo $options['github_username'] ?>"><i></i>Github</a></li>
<?php endif ?>
<?php if ($options['twitter_username']): ?>
<a target="_blank" href="http://twitter.com/<?php echo $options['twitter_username'] ?>" title="">@<?php echo $options['twitter_username'] ?></a>
<?php endif ?>
<?php if ($options['contact_email']): ?>
<a target="_blank" class="contact-us" href="mailto:<?php echo $options['contact_email'] ?>"><i></i>Say hello</a></li>
<?php endif ?>
</nav>
<hgroup>
<h1 id="logo" class="logo">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" class="logo"><?php echo bloginfo('title') ?></a>
</h1>
<div class="info">
<h2><?php echo bloginfo('title') ?></h2>
<?php if ($options['theme_username']): ?>
<h4><?php echo $options['theme_username'] ?></h4>
<?php endif ?>
<p class="bio"><?php echo $options['biography'] ?></p>
</div>
</hgroup>
</header><!-- #masthead .site-header -->