-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
36 lines (33 loc) · 846 Bytes
/
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
<?php include 'inc/head.php'; ?>
<body <?php body_class(); ?>>
<?php
// check if front page
if ( is_front_page() && is_home() ) {
// front page
include 'inc/front-main-nav.php';
} else {
// not front page
include 'inc/main-nav.php';
}
?>
<div id="content">
<div id="header-image" data-parallax="scroll" data-image-src="<?php echo get_stylesheet_directory_uri(); ?>/img/fancy-bg.jpg">
<div class="container" id="standard-header">
<div class="superheader">
<h1>
<span><?php
if ( is_archive() ) {
echo 'Archives';
} elseif ( is_home() || is_single() ) {
echo 'Blog';
} elseif (the_title()) {
echo get_the_title();
} else {
echo '';
}
?></span>
</h1>
</div>
</div>
<div class="page-bar"></div>
</div>