-
Notifications
You must be signed in to change notification settings - Fork 0
/
page.php
35 lines (25 loc) · 801 Bytes
/
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
<?php
/* Single page */
get_header();
if (have_posts()) : while (have_posts()) : the_post();
$post_id = get_the_ID();
$thumbnail = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large' );
$color = get_post_meta( $post_id, '_post_accent_color', true );
harvest_title_bar( get_the_title(), $color );
?>
<div class="content_wrap">
<div class="grid-container content">
<?php if( $thumbnail ): ?>
<div class="grid-100 featured-image-div">
<img src="<?php echo $thumbnail[0]; ?>" class="featured-image"/>
</div>
<?php endif; ?>
<div class="grid-100 ctc-content">
<?php echo the_content(); ?>
</div>
</div> <!-- .content.grid-container -->
</div> <!-- .content_wrap -->
<!-- END CONTENT -->
<?php
endwhile; endif;
get_footer();