index.php 1.2 KB

123456789101112131415161718192021222324252627
  1. <?php get_header(); ?>
  2. <div class="container">
  3. <div id="content" role="main">
  4. <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  5. <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  6. <div class="entry-content">
  7. <div class="date">
  8. <?php the_date('M j, Y g:i a '); ?>
  9. <div class="meta">
  10. <?php dw_posted_at(); ?>
  11. <p><small><?php edit_post_link('Edit');?></small><p>
  12. </div>
  13. </div>
  14. <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'daw' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
  15. <?php the_content(); ?>
  16. <?php comments_template( '', true ); ?>
  17. <div class="clear">&nbsp;</div>
  18. <div id="nav-below" class="navigation">
  19. <div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '&larr;', 'Previous post link', 'daw' ) . '</span> %title' ); ?></div>
  20. <div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '&rarr;', 'Next post link', 'daw' ) . '</span>' ); ?></div>
  21. </div>
  22. </div>
  23. </div>
  24. <?php endwhile; ?>
  25. </div>
  26. </div>
  27. <?php get_footer(); ?>