-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcustom-single-narrow.php
More file actions
57 lines (29 loc) · 1.67 KB
/
custom-single-narrow.php
File metadata and controls
57 lines (29 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
50
51
52
53
54
55
56
57
<?php /* Template Name: Single narrow column page */ ?>
<?php get_header(); ?>
<main id="content" role="main">
<?php while (have_posts()) : the_post(); ?>
<div class="inner-wrapper">
<?php if ( is_active_sidebar( 'subnav_menu' ) ) : ?>
<?php dynamic_sidebar( 'subnav_menu' ); ?>
<?php endif; ?>
<div class="g-row">
<article class="entry bg bg-white single-narrow-entry single-narrow-entry-<?php global $post; echo $post->post_name; ?>">
<header class="entry-header single-narrow-header single-narrow-header-<?php global $post; echo $post->post_name; ?>">
<?php if(function_exists('breadcrumb_trail')) { breadcrumb_trail(array('separator' => ' → ', 'show_browse' => 'false')); } ?>
<h1 class="entry-title single-narrow-title single-narrow-title-<?php global $post; echo $post->post_name; ?>"><?php the_title(); ?></h1>
</header>
<div class="entry-content single-narrow-content single-narrow-content-<?php global $post; echo $post->post_name; ?>">
<?php if ( has_post_thumbnail() ) {?>
<figure class="hero-splash hero-splash-single-narrow hero-splash-<?php global $post; echo $post->post_name; ?>">
<?php the_post_thumbnail(); ?>
<figcaption class="hero-splash-text hero-splash-single-narrow-text hero-splash-text-<?php global $post; echo $post->post_name; ?>"><?php if ( has_excerpt() ) {?><?php the_excerpt(); ?><?php } ?></figcaption>
</figure>
<?php } ?>
<?php the_content(); ?>
</div>
</article>
</div> <!-- end .g-row -->
</div> <!-- end .inner-wrapper -->
<?php endwhile; ?>
</main>
<?php get_footer(); ?>