-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
39 lines (33 loc) · 1.22 KB
/
single.php
File metadata and controls
39 lines (33 loc) · 1.22 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
<?php
/**
* The template for displaying all single posts and attachments
*
* @package FoundationPress
* @since FoundationPress 1.0.0
*/
get_header(); ?>
<?php get_template_part( 'template-parts/featured-image' ); ?>
<div class="main-container">
<div class="grid-x">
<main class="main-content fullWidth">
<?php while ( have_posts() ) : the_post(); ?>
<?php $colorClass = isBright(get_post_meta( get_the_ID(), 'color', true )) ? 'bright' : ''; ?>
<div class="showcase <?php echo $colorClass; ?>" style="background: <?php echo get_post_meta( get_the_ID(), 'color', true ); ?>">
<div class="title"><?php the_title(); ?></div>
<div class="meta">
<span class="field"><?php echo get_post_meta( get_the_ID(), 'field', true ); ?></span>
<span class="year"><?php echo get_post_meta( get_the_ID(), 'year', true ); ?></span>
</div>
<div class="image" style="background:url('<?php echo get_the_post_thumbnail_url(get_the_ID(),'full') ?>') no-repeat;"></div>
<div class="content">
<?php the_content(); ?>
</div>
</div>
<?php //the_post_navigation(); ?>
<?php //comments_template(); ?>
<?php endwhile; ?>
</main>
<?php get_sidebar(); ?>
</div>
</div>
<?php get_footer();