Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcooney/68727d94f341af46e9452fd34fa72326 to your computer and use it in GitHub Desktop.
Save dcooney/68727d94f341af46e9452fd34fa72326 to your computer and use it in GitHub Desktop.
<?php
global $post;
$votes = StoryVote::votes($post->ID);
?>
<div class="story clearfix" id="<?php echo $post->ID; ?>">
<span class="date">
<span class="big"><?php echo get_the_date("j"); ?></span>
<?php echo get_the_date("M / Y"); ?>
</span>
<div class="story-content">
<?php the_excerpt() ?>
<a href="<?php echo the_permalink() ?>" class="button">Read more</a>
<span class="votes <?php if($votes < 0) { echo 'negative'; } elseif($votes > 0) { echo 'positive'; } ?>">
<div class="count">
<?php echo $votes ?> Points
</div>
</span>
</div><!--/.content-->
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment