index.php 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?php get_header(); ?>
  2. <div id="content" class="clearfix">
  3. <div id="main" class="col620 left first clearfix" role="main">
  4. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  5. <article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?>>
  6. <header>
  7. <h1 class="h2"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
  8. <p class="meta"><?php _e("Posted", "bonestheme"); ?> <time datetime="<?php echo the_time('Y-m-j'); ?>" pubdate><?php the_time('F jS, Y'); ?></time> <?php _e("by", "bonestheme"); ?> <?php the_author_posts_link(); ?> <span class="amp">&</span> <?php _e("filed under", "bonestheme"); ?> <?php the_category(', '); ?>.</p>
  9. </header> <!-- end article header -->
  10. <section class="post_content clearfix">
  11. <?php the_content(_e('<span class="read-more">Read more on "'.the_title('', '', false).'" &raquo;</span>', "bonestheme")); ?>
  12. </section> <!-- end article section -->
  13. <footer>
  14. <p class="tags"><?php the_tags('<span class="tags-title">Tags:</span> ', ', ', ''); ?></p>
  15. </footer> <!-- end article footer -->
  16. </article> <!-- end article -->
  17. <?php comments_template(); ?>
  18. <?php endwhile; ?>
  19. <?php if (function_exists('page_navi')) { // if expirimental feature is active ?>
  20. <?php page_navi(); // use the page navi function ?>
  21. <?php } else { // if it is disabled, display regular wp prev & next links ?>
  22. <nav class="wp-prev-next">
  23. <ul class="clearfix">
  24. <li class="prev-link"><?php next_posts_link(_e('&laquo; Older Entries', "bonestheme")) ?></li>
  25. <li class="next-link"><?php previous_posts_link(_e('Newer Entries &raquo;', "bonestheme")) ?></li>
  26. </ul>
  27. </nav>
  28. <?php } ?>
  29. <?php else : ?>
  30. <article id="post-not-found">
  31. <header>
  32. <h1>Not Found</h1>
  33. </header>
  34. <section class="post_content">
  35. <p>Sorry, but the requested resource was not found on this site.</p>
  36. </section>
  37. <footer>
  38. </footer>
  39. </article>
  40. <?php endif; ?>
  41. </div> <!-- end #main -->
  42. <?php get_sidebar(); // sidebar 1 ?>
  43. </div> <!-- end #content -->
  44. <?php get_footer(); ?>