-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsingle.php
54 lines (39 loc) · 1.77 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
<?php get_header(); ?>
<section class="two-column row no-max pad">
<div class="small-12 columns">
<div class="row">
<!-- Primary Column -->
<div class="small-12 medium-7 medium-offset-1 medium-push-4 columns">
<div class="primary">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<article class="post">
<h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
<ul class="post-meta no-bullet">
<li class="author">
<span class="primus-avatar small">
<?php echo get_avatar( get_the_author_meta('ID'), 24 ); ?>
</span>
by <?php the_author_posts_link(); ?>
</li>
<li class="cat">in <?php the_category( ', ' ); ?></li>
<li class="date">on <?php the_time('F j, Y'); ?></li>
</ul>
<?php if(get_the_post_thumbnail()) : ?>
<div class="img-container">
<?php the_post_thumbnail('large'); ?>
</div>
<?php endif; ?>
<?php the_content(); ?>
<?php the_tags(); ?>
<?php comments_template(); ?>
<?php wp_link_pages(); ?>
</article>
<?php endwhile; else : ?>
<p><?php _e( 'Sorry, no posts found.', 'primus' ); ?></p>
<?php endif; ?>
</div>
</div>
<?php get_sidebar(); ?>
</div>
</section>
<?php get_footer(); ?>