-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustom-hero-two-col.php
63 lines (32 loc) · 1.41 KB
/
custom-hero-two-col.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
<?php /* Template Name: Two column hero page */ ?>
<?php get_header(); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php if ( has_post_thumbnail() ) {?>
<figure class="hero-splash hero-splash-col2 hero-splash-<?php global $post; echo $post->post_name; ?>">
<?php the_post_thumbnail(); ?>
<figcaption class="hero-splash-text hero-splash-col2-text hero-splash-text-<?php global $post; echo $post->post_name; ?>"><?php if ( has_excerpt() ) {?><?php the_excerpt(); ?><?php } ?></figcaption>
</figure>
<?php } ?>
<div class="wrapper">
<?php if ( is_active_sidebar( 'subnav_menu' ) ) : ?>
<?php dynamic_sidebar( 'subnav_menu' ); ?>
<?php endif; ?>
<div class="g-row">
<div class="g-w-col8 g-w-left">
<main id="content">
<article class="entry bg bg-white">
<header class="entry-header">
<?php if(function_exists('breadcrumb_trail')) { breadcrumb_trail(array('separator' => ' → ', 'show_browse' => 'false')); } ?>
<h1 class="entry-title"><?php the_title(); ?></h1>
</header>
<div class="entry-content">
<?php the_content(); ?>
</div>
</article>
</main>
</div>
<?php endwhile; else : ?>
<p><?php _e( 'Sorry, no posts matched your criteria.' ); ?></p>
<?php endif; ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>