-
Notifications
You must be signed in to change notification settings - Fork 0
/
page.php
54 lines (36 loc) · 1.22 KB
/
page.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
<?php
/**
* The template for displaying all pages
*
* This is the template that displays all pages by default.
*/
get_header(); ?>
<?php $hero = get_field('page_header');
if ( $hero ):
$pageheader = $hero;
else:
$pageheader = get_field('default_header_image', 'option');
endif; ?>
<header class="header" role="banner" style="background-image: url('<?php echo get_template_directory_uri(); ?>/assets/images/swoosh.png'), url('<?php echo $pageheader ?>')">
<div class="navWrap">
<div class="grid-container">
<?php get_template_part( 'parts/nav', 'offcanvas-topbar' ); ?>
</div>
</div>
<div id="heroTitle">
<h1><?php the_title(); ?></h1>
</div>
</header> <!-- started in header.php-->
<div class="content">
<div class="grid-container">
<div class="inner-content grid-x grid-margin-x grid-padding-x">
<main class="main small-12 large-8 medium-8 cell" role="main">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php get_template_part( 'parts/loop', 'page' ); ?>
<?php endwhile; endif; ?>
</main> <!-- end #main -->
<?php get_sidebar(); ?>
</div> <!-- end #inner-content -->
</div>
</div> <!-- end #content -->
<?php get_footer(); ?>