Advertisement
alchymyth

index.php

Sep 28th, 2012
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php get_header(); ?>
  2.  
  3. <div id="content">
  4.  
  5. <div id="inner-content" class="wrap clearfix">
  6.  
  7. <div id="main">
  8.  
  9. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  10. <?php $prev_post = get_previous_post(); if (!empty( $prev_post )): ?>
  11. <a href="<?php echo get_permalink( $prev_post->ID ); ?>"><?php echo $prev_post->post_title; ?></a>
  12.  
  13. <?php endif; ?>
  14.  
  15. <article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
  16.  
  17. <section class="entry-content clearfix">
  18. <?php the_content(); ?>
  19. </section> <!-- end article section -->
  20.  
  21. <footer class="article-footer">
  22.  
  23. <p class="tags"><?php the_tags('<span class="tags-title">Tags:</span> ', ', ', ''); ?></p>
  24.  
  25. </footer> <!-- end article footer -->
  26.  
  27. <?php // comments_template(); // uncomment if you want to use them ?>
  28.  
  29. </article> <!-- end article -->
  30.  
  31. <?php endwhile; ?>
  32.  
  33. <?php if (function_exists('bones_page_navi')) { ?>
  34. <?php bones_page_navi(); ?>
  35. <?php } else { ?>
  36. <nav class="wp-prev-next">
  37. <ul class="clearfix">
  38. <li class="prev-link"><?php next_posts_link(_e('&laquo; Older Entries', "bonestheme")) ?></li>
  39. <li class="next-link"><?php previous_posts_link(_e('Newer Entries &raquo;', "bonestheme")) ?></li>
  40. </ul>
  41. </nav>
  42. <?php } ?>
  43.  
  44. <?php else : ?>
  45.  
  46. <article id="post-not-found" class="hentry clearfix">
  47. <header class="article-header">
  48. <h1><?php _e("Oops, Post Not Found!", "bonestheme"); ?></h1>
  49. </header>
  50. <section class="entry-content">
  51. <p><?php _e("Uh Oh. Something is missing. Try double checking things.", "bonestheme"); ?></p>
  52. </section>
  53. <footer class="article-footer">
  54. <p><?php _e("This is the error message in the index.php template.", "bonestheme"); ?></p>
  55. </footer>
  56. </article>
  57.  
  58. <?php endif; ?>
  59.  
  60. </div> <!-- end #main -->
  61.  
  62.  
  63.  
  64. </div> <!-- end #inner-content -->
  65.  
  66. </div> <!-- end #content -->
  67.  
  68. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement