-
Notifications
You must be signed in to change notification settings - Fork 0
/
post.php
33 lines (32 loc) · 1.36 KB
/
post.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
<div class="post well">
<?php if(!is_single()) :?>
<a class="post-title" href="<?php the_permalink(); ?>" title="<?php echo esc_attr( the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark">
<?php endif; ?>
<h1><?php the_title(); ?></h1>
<?php if(!is_single()) :?>
</a>
<?php endif; ?>
<span class="post-info muted">Posted by <?php echo get_the_author(); ?> on <?php the_date('m.d.Y'); ?></span>
<div class="post-body"><?php the_content(); ?></div>
<p>Categories: <?php the_category(', '); ?></p>
<div class="post-social">
<ul>
<li>
<div class="fb-like" data-href="<?php the_permalink(); ?>" data-send="false"
data-layout="button_count" data-width="450" data-show-faces="false" data-colorscheme="light"></div>
</li>
<li>
<a href="https://twitter.com/share" class="twitter-share-button" data-text="<?php the_title(); ?>" data-url="<?php the_permalink(); ?>" data-via="shsteimer">Tweet</a>
</li>
<li class="gplus">
<!-- Place this tag where you want the share button to render. -->
<div class="g-plus" data-action="share" data-annotation="bubble" data-href="<?php the_permalink(); ?>"></div>
</li>
</ul>
</div>
<?php if(is_single()) :?>
<?php comments_template( '', true ); ?>
<?php else: ?>
<a data-disqus-identifier="<?php echo $post->ID?>" href="<?php the_permalink(); ?>#disqus_thread">View Comments</a>
<?php endif; ?>
</div>