Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <div id="content">
- <div id="inner-content" class="wrap clearfix">
- <div id="main">
- <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <?php $prev_post = get_previous_post(); if (!empty( $prev_post )): ?>
- <a href="<?php echo get_permalink( $prev_post->ID ); ?>"><?php echo $prev_post->post_title; ?></a>
- <?php endif; ?>
- <article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
- <section class="entry-content clearfix">
- <?php the_content(); ?>
- </section> <!-- end article section -->
- <footer class="article-footer">
- <p class="tags"><?php the_tags('<span class="tags-title">Tags:</span> ', ', ', ''); ?></p>
- </footer> <!-- end article footer -->
- <?php // comments_template(); // uncomment if you want to use them ?>
- </article> <!-- end article -->
- <?php endwhile; ?>
- <?php if (function_exists('bones_page_navi')) { ?>
- <?php bones_page_navi(); ?>
- <?php } else { ?>
- <nav class="wp-prev-next">
- <ul class="clearfix">
- <li class="prev-link"><?php next_posts_link(_e('« Older Entries', "bonestheme")) ?></li>
- <li class="next-link"><?php previous_posts_link(_e('Newer Entries »', "bonestheme")) ?></li>
- </ul>
- </nav>
- <?php } ?>
- <?php else : ?>
- <article id="post-not-found" class="hentry clearfix">
- <header class="article-header">
- <h1><?php _e("Oops, Post Not Found!", "bonestheme"); ?></h1>
- </header>
- <section class="entry-content">
- <p><?php _e("Uh Oh. Something is missing. Try double checking things.", "bonestheme"); ?></p>
- </section>
- <footer class="article-footer">
- <p><?php _e("This is the error message in the index.php template.", "bonestheme"); ?></p>
- </footer>
- </article>
- <?php endif; ?>
- </div> <!-- end #main -->
- </div> <!-- end #inner-content -->
- </div> <!-- end #content -->
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement