single.php 1.2 KB

12345678910111213141516171819202122232425
  1. <?php get_header(); ?>
  2. <div class="container">
  3. <article id="content" class="single" role="main">
  4. <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  5. <div itemscope="" itemtype="http://schema.org/BlogPosting" id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  6. <div class="entry-content">
  7. <div class="date">
  8. <time datetime="<?php the_time('c');?>" itemprop="datePublished"><?php the_time('n/j/Y'); ?></time>
  9. </div>
  10. <h2 itemprop="name headline" 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>
  11. <?php the_content(); ?>
  12. <?php comments_template( '', true ); ?>
  13. <div class="clear">&nbsp;</div>
  14. <div id="nav-below" class="navigation">
  15. <div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '&larr;', 'Previous post link', 'daw' ) . '</span> %title' ); ?></div>
  16. <div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '&rarr;', 'Next post link', 'daw' ) . '</span>' ); ?></div>
  17. </div>
  18. </div>
  19. </div>
  20. <?php endwhile; ?>
  21. </article>
  22. </div>
  23. <?php get_footer(); ?>