Advertisement
alchymyth

next/prev at top

May 2nd, 2011
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.16 KB | None | 0 0
  1. <?php get_header(); ?>
  2. <?php $options = get_option('blocks2_options'); ?>
  3.  
  4. <?php if (have_posts()) : the_post(); ?>
  5.  
  6. <div id="postnavi">
  7.     <span class="alignleft floatleft"><?php next_post_link('%link') ?></span>
  8.     <span class="alignright floatright"><?php previous_post_link('%link') ?></span>
  9.     <div class="fixed"></div>
  10. </div>
  11.  
  12. <div class="post" id="post-<?php the_ID(); ?>">
  13.     <h2 class="title"><?php the_title(); ?></h2>
  14.     <div class="meta">
  15.         <div class="info">
  16.             <?php the_time(__('M jS, Y', 'blocks2')) ?>
  17.             <?php if ($options['author']) : ?>
  18.                  | <?php _e('Posted by ', 'blocks2'); the_author_posts_link(); ?>
  19.             <?php endif; ?>
  20.             <?php if ($options['categories']) : ?>
  21.                  | <?php _e('Filed under ', 'blocks2'); the_category(', '); ?>
  22.             <?php endif; ?>
  23.         </div>
  24.         <div class="comments">
  25.             <a href="#respond"><?php _e('Leave a comment', 'blocks2'); ?></a>
  26.             <?php if(pings_open()) : ?>
  27.              | <a href="<?php trackback_url(); ?>" rel="trackback"><?php _e('Trackback', 'blocks2'); ?></a>
  28.             <?php endif; ?>
  29.             <?php edit_post_link(__('Edit', 'blocks2'), ' | ', ''); ?>
  30.         </div>
  31.         <div class="fixed"></div>
  32.     </div>
  33.  
  34.     <div class="content">
  35.         <?php
  36.             the_content();
  37.             // add bookmarks
  38.             if (function_exists('wp_addbookmarks')) {
  39.                 wp_addbookmarks();
  40.             }
  41.         ?>
  42.         <div class="fixed"></div>
  43.         <?php if ($options['tags']) : ?>
  44.             <div class="tags"><?php _e('Tags: ', 'blocks2'); the_tags('', ', ', ''); ?></div>
  45.         <?php endif; ?>
  46.     </div>
  47. </div>
  48.  
  49. <?php else : ?>
  50.     <div class="errorbox">
  51.         <?php _e('Sorry, no posts matched your criteria.', 'blocks2'); ?>
  52.     </div>
  53. <?php endif; ?>
  54.  
  55. <!-- related posts -->
  56. <?php
  57.     if(function_exists('wp23_related_posts')) {
  58.         echo '<div id="related_posts">';
  59.         wp23_related_posts();
  60.         echo '</div>';
  61.         echo '<div class="fixed"></div>';
  62.     }
  63. ?>
  64.  
  65. <div id="postnavi">
  66.     <span class="alignleft floatleft"><?php next_post_link('%link') ?></span>
  67.     <span class="alignright floatright"><?php previous_post_link('%link') ?></span>
  68.     <div class="fixed"></div>
  69. </div>
  70.  
  71. <?php
  72.     if (function_exists('wp_list_comments')) {
  73.         comments_template('', true);
  74.     } else {
  75.         comments_template();
  76.     }
  77. ?>
  78.  
  79. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement