-
Notifications
You must be signed in to change notification settings - Fork 0
/
single-wasentha_artwork.php
78 lines (57 loc) · 2.25 KB
/
single-wasentha_artwork.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php
/**
* Posts template
*
* @since 0.1.0
* @package wasentha
*/
// Don't load directly
if ( ! defined( 'ABSPATH' ) ) {
die;
}
get_header();
the_post();
?>
<section id="post-<?php the_ID(); ?>" class="page-content">
<div class="row">
<article <?php post_class( array( 'small-12', 'medium-9', 'columns' ) ); ?>>
<?php if ( has_post_thumbnail() ) : ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<div class="thumbnail post-thumbnail-container">
<?php the_post_thumbnail( 'thumbnail' ); ?>
</div>
</a>
<?php endif; ?>
<h1 class="post-title">
<?php the_title(); ?>
</h1>
<div class="post-meta">
<?php if ( get_the_terms( get_the_ID(), 'wasentha_artwork_series' ) !== false ) : ?>
<strong>Series:</strong> <?php the_terms( get_the_ID(), 'wasentha_artwork_series' ); ?>
<?php endif; ?>
<?php if ( ( get_the_terms( get_the_ID(), 'wasentha_artwork_series' ) !== false ) && ( get_the_terms( get_the_ID(), 'wasentha_artwork_material' ) !== false ) ) : ?>
/
<?php endif; ?>
<?php if ( get_the_terms( get_the_ID(), 'wasentha_artwork_material' ) !== false ) : ?>
<strong>Materials:</strong> <?php the_terms( get_the_ID(), 'wasentha_artwork_material' ); ?><br />
<?php endif; ?>
<?php if ( get_field( 'artwork_dimensions' ) !== '' ) : ?>
<strong>Dimensions:</strong> <?php the_field( 'artwork_dimensions' ); ?>
<?php endif; ?>
</div>
<div class="post-copy">
<?php the_content(); ?>
</div>
<?php if ( comments_open() ) : ?>
<div class="post-comments">
<?php comments_template(); ?>
</div>
<?php endif; ?>
</article>
<div class="small-12 medium-3 columns sidebar">
<?php dynamic_sidebar( 'main-sidebar' ); ?>
</div>
</div>
</section>
<?php
get_footer();