-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
62 lines (46 loc) · 1.39 KB
/
single.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
<?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">
<p><strong>Date: </strong><?php the_date(); ?></p>
</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();