-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
55 lines (55 loc) · 2.5 KB
/
single.php
File metadata and controls
55 lines (55 loc) · 2.5 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php get_header();?>
<?php $coauthors = get_coauthors(); ?>
<div id="single-post" class="container" style="padding-top: 80px; padding-bottom: 80px;">
<div class="row">
<div class="col-sm-8">
<div class="paper-box">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="featured-image-container" style="margin-bottom: 30px;">
<?php the_post_thumbnail();?>
</div>
<div class="categories">
<?php the_category(', '); ?>, <?php echo get_the_date('M \'y');?>
</div>
<h1 title="<?php the_title();?>"><?php the_title();?></h1>
<p><strong>By <?php
foreach( $coauthors as $coauthor) {
echo $coauthor->display_name;
if ($coauthor != end($coauthors)) echo ", ";
}
?> | <?php echo get_the_date();?></strong></p>
<p><strong><?php echo excerpt(60);?></strong></p>
<div class="post-content">
<?php the_content();?>
</div>
<div class="post-tags"><?php the_tags( '', '', '' ); ?></div>
<div class="under"></div>
<!-- <p style="margin-top: 15px;">About Author:</p> -->
<div class="authors-section">
<?php foreach( $coauthors as $coauthor ): ?>
<div class="author-body col-sm-12">
<div class="author-avatar col-md-2 col-xs-3">
<?php echo coauthors_get_avatar( $coauthor, 100 ) ?>
</div>
<div class="author-desc col-md-10 col-xs-9" style="padding-right:0;">
<h3 class="author-name" style="display:inline-block"><?php echo $coauthor->display_name; ?></h3>
<p><?php echo $coauthor->description; ?></p>
</div>
</div>
<?php endforeach; ?>
</div>
<div class="under"></div>
<div class="post-nav">
<span class="pull-left"><?php previous_post_link("%link", "« Read Previous Article"); ?></span>
<span class="pull-right"><?php next_post_link("%link", "Read Next Article »"); ?></span>
</div>
<div style="clear:both;"><?php if ( comments_open() || have_comments() ) : comments_template(); endif;?></div>
<?php endwhile; endif; ?>
</div>
</div>
<div class="col-sm-4">
<?php if( is_active_sidebar( 'single-post-sidebar' ) ){ dynamic_sidebar( 'single-post-sidebar' ); }?>
</div>
</div>
</div>
<?php get_footer();?>