index.php 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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">
  7. <header class="article-header">
  8. <h1 class="h2"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
  9. <p class="byline vcard"><?php
  10. printf( __( 'Posted <time class="updated" datetime="%1$s" pubdate>%2$s</time> by <span class="author">%3$s</span> <span class="amp">&</span> filed under %4$s.', 'bonestheme' ), get_the_time('Y-m-j'), get_the_time(get_option('date_format')), bones_get_the_author_posts_link(), get_the_category_list(', '));
  11. ?></p>
  12. </header> <?php // end article header ?>
  13. <section class="entry-content clearfix">
  14. <?php the_content(); ?>
  15. </section> <?php // end article section ?>
  16. <footer class="article-footer">
  17. <p class="tags"><?php the_tags( '<span class="tags-title">' . __( 'Tags:', 'bonestheme' ) . '</span> ', ', ', '' ); ?></p>
  18. </footer> <?php // end article footer ?>
  19. <?php // comments_template(); // uncomment if you want to use them ?>
  20. </article> <?php // end article ?>
  21. <?php endwhile; ?>
  22. <?php if ( function_exists( 'bones_page_navi' ) ) { ?>
  23. <?php bones_page_navi(); ?>
  24. <?php } else { ?>
  25. <nav class="wp-prev-next">
  26. <ul class="clearfix">
  27. <li class="prev-link"><?php next_posts_link( __( '&laquo; Older Entries', 'bonestheme' )) ?></li>
  28. <li class="next-link"><?php previous_posts_link( __( 'Newer Entries &raquo;', 'bonestheme' )) ?></li>
  29. </ul>
  30. </nav>
  31. <?php } ?>
  32. <?php else : ?>
  33. <article id="post-not-found" class="hentry clearfix">
  34. <header class="article-header">
  35. <h1><?php _e( 'Oops, Post Not Found!', 'bonestheme' ); ?></h1>
  36. </header>
  37. <section class="entry-content">
  38. <p><?php _e( 'Uh Oh. Something is missing. Try double checking things.', 'bonestheme' ); ?></p>
  39. </section>
  40. <footer class="article-footer">
  41. <p><?php _e( 'This is the error message in the index.php template.', 'bonestheme' ); ?></p>
  42. </footer>
  43. </article>
  44. <?php endif; ?>
  45. </div> <?php // end #main ?>
  46. <?php get_sidebar(); ?>
  47. </div> <?php // end #inner-content ?>
  48. </div> <?php // end #content ?>
  49. <?php get_footer(); ?>