page.php 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php get_header(); ?>
  2. <div id="content">
  3. <div id="inner-content" class="wrap clearfix">
  4. <div id="main" class="eightcol first clearfix" role="main">
  5. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  6. <article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article" itemscope itemtype="http://schema.org/BlogPosting">
  7. <header class="article-header">
  8. <h1 class="page-title" itemprop="headline"><?php the_title(); ?></h1>
  9. <p class="byline vcard"><?php _e("Posted", "bonestheme"); ?> <time class="updated" datetime="<?php echo the_time('Y-m-j'); ?>" pubdate><?php the_time('F jS, Y'); ?></time> <?php _e("by", "bonestheme"); ?> <span class="author"><?php the_author_posts_link(); ?></span>.</p>
  10. </header> <!-- end article header -->
  11. <section class="entry-content clearfix" itemprop="articleBody">
  12. <?php the_content(); ?>
  13. </section> <!-- end article section -->
  14. <footer class="article-footer">
  15. <?php the_tags('<p class="tags"><span class="tags-title">Tags:</span> ', ', ', '</p>'); ?>
  16. </footer> <!-- end article footer -->
  17. <?php comments_template(); ?>
  18. </article> <!-- end article -->
  19. <?php endwhile; else : ?>
  20. <article id="post-not-found" class="hentry clearfix">
  21. <header class="article-header">
  22. <h1><?php _e("Oops, Post Not Found!", "bonestheme"); ?></h1>
  23. </header>
  24. <section class="entry-content">
  25. <p><?php _e("Uh Oh. Something is missing. Try double checking things.", "bonestheme"); ?></p>
  26. </section>
  27. <footer class="article-footer">
  28. <p><?php _e("This is the error message in the page.php template.", "bonestheme"); ?></p>
  29. </footer>
  30. </article>
  31. <?php endif; ?>
  32. </div> <!-- end #main -->
  33. <?php get_sidebar(); ?>
  34. </div> <!-- end #inner-content -->
  35. </div> <!-- end #content -->
  36. <?php get_footer(); ?>