-
Notifications
You must be signed in to change notification settings - Fork 6
/
header.php
50 lines (33 loc) · 1.41 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
<html <?php language_attributes(); ?>>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!--[if lte IE 8]><script src="assets/js/ie/html5shiv.js"></script><![endif]-->
<?php wp_head(); ?>
<style>
<?php if ( is_home() ):?>
#intro {
background: url('<?php echo get_stylesheet_directory_uri()?>/assets/css/images/overlay.png'), url("<?php header_image(); ?>");
<?php elseif ( is_single() or is_page() ):?>
#top {
background: url('<?php echo get_stylesheet_directory_uri()?>/assets/css/images/overlay.png'), url("<?php echo get_the_post_thumbnail_url(); ?>");
<?php endif?>
background-size: 256px 256px, cover;
background-attachment: fixed, fixed;
background-position: top left, bottom center;
background-repeat: repeat, no-repeat;
}
<?php if ( is_admin_bar_showing() ) :?>
#header { top: 30px;}
<?php endif?>
</style>
<!--[if lte IE 8]><link rel="stylesheet" href="assets/css/ie8.css" /><![endif]-->
<!--[if lte IE 9]><link rel="stylesheet" href="assets/css/ie9.css" /><![endif]-->
</head>
<?php echo '<body class="'.join(' ', get_body_class()).'">'; ?>
<!-- Header -->
<header id="header">
<h1><a href="<?php echo site_url();?>"><?php bloginfo( 'name' ); ?></a></h1>
<nav>
<ul>
<li><a href="<?php echo site_url();?>/#intro"><?php echo get_bigpicture_intro_menu_label() ?></a></li>