This repository was archived by the owner on Dec 29, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
49 lines (49 loc) · 1.67 KB
/
Copy pathheader.php
File metadata and controls
49 lines (49 loc) · 1.67 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
<?php ?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<nav id="nav-drawer">
<header id="nav-drawer-header">
<span>Menu</span>
</header>
<hr>
<?php wp_nav_menu( array( 'container' => false, 'depth' => 1, 'theme_location' => 'main-menu' ) ); ?>
</nav>
<div id="wrapper">
<nav id="tab-bar">
<button class="button icon-button material-icons toggle-nav">menu</button>
<div class="container">
<?php wp_nav_menu( array( 'container' => false, 'depth' => 1, 'theme_location' => 'main-menu' ) ); ?>
</div>
</nav>
<header id="header">
<div class="container">
<span><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span>
</div>
</header>
<main id="main">
<?php if ( is_front_page() ) { ?>
<section id="home-showcase">
<div class="flex-columns">
<div class="flex-column left">
<div class="flex-column-content">
<?php if ( is_active_sidebar( 'sidebar-1' ) ) {
dynamic_sidebar( 'sidebar-1' );
} else {
keystone_default_homepage_widget();
} ?>
</div>
</div>
<div class="flex-column right" style="background-image:url(<?php header_image(); ?>)"></div>
</div>
</section>
<?php } else { ?>
<section id="page-showcase" style="background-image:url(<?php ( has_post_thumbnail() && ( is_single() || is_page() ) ) ? the_post_thumbnail_url() : header_image(); ?>)"></section>
<?php } ?>
<div class="container">
<section id="page-content">