Skip to content

Instantly share code, notes, and snippets.

@mowen
Created August 10, 2010 20:23
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 mowen/517925 to your computer and use it in GitHub Desktop.
Save mowen/517925 to your computer and use it in GitHub Desktop.
<?php get_header(); ?>
<div id="coreContent" class="hfeed">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post hentry">
<?php the_date('F j, Y', '<h5 class="postDate"><abbr class="published">','</abbr></h5>'); ?>
<div class="postContent">
<h3 class="entry-title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
<!-- <h4 class="vcard author">by <span class="fn"><?php the_author(); ?></span></h4> -->
<div class="entry-content">
<?php the_content('Read the rest of this entry &raquo;'); ?>
</div>
</div>
<div class="postMeta">
<?php if ('closed' == $post->comment_status) : ?>
<div class="comments closed">
<?php else : ?>
<div class="comments">
<?php endif; ?>
<?php comments_popup_link('leave a comment', '1 comment', '% comments', '', 'comments closed'); ?>
</div>
</div>
</div>
<?php endwhile; ?>
<div class="pageNav">
<div class="prev"><?php next_posts_link('&laquo; Older') ?></div>
<div class="next"><?php previous_posts_link('Newer &raquo;') ?></div>
</div>
<?php else : ?>
<h2>Not Found</h2>
<p>Sorry, but you are looking for something that isn't here.</p>
<?php endif; ?>
</div>
<?php get_footer(); ?>
<?php get_header(); ?>
<div id="coreContent">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post hentry single" id="post-<?php the_ID(); ?>">
<div class="postContent">
<h2 class="entry-title"><?php the_title(); ?></h2>
<div class="entry-content">
<?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
</div>
</div>
</div>
<?php comments_template(); ?>
<?php endwhile; endif; ?>
<?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment