Advertisement
alchymyth

paganavi at top

May 2nd, 2011
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.52 KB | None | 0 0
  1. <?php get_header(); ?>
  2. <?php $options = get_option('blocks2_options'); ?>
  3.  
  4. <?php if ($options['notice'] && $options['notice_content']) : ?>
  5.     <div class="
  6.     <?php if($options['notice_color'] == 1) {echo 'box';}
  7.         else if($options['notice_color'] == 3){echo 'errorbox';}
  8.         else{echo 'messagebox';}
  9.     ?> normalfont">
  10.         <?php echo($options['notice_content']); ?>
  11.     </div>
  12. <?php endif; ?>
  13.  
  14. <?php if (have_posts()) : ?>
  15.  
  16. <div id="pagenavi">
  17.     <?php if(function_exists('wp_pagenavi')) : ?>
  18.         <?php wp_pagenavi() ?>
  19.     <?php else : ?>
  20.         <span class="alignleft floatleft"><?php previous_posts_link(__('&laquo; Newer Entries', 'blocks2')); ?></span>
  21.         <span class="alignright floatright"><?php next_posts_link(__('Older Entries &raquo;', 'blocks2')); ?></span>
  22.     <?php endif; ?>
  23.     <div class="fixed"></div>
  24. </div>
  25.  
  26.     <?php while (have_posts()) : the_post(); update_post_caches($posts); ?>
  27. <div class="post" id="post-<?php the_ID(); ?>">
  28.     <h2 class="title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
  29.     <div class="meta">
  30.         <div class="info">
  31.             <?php the_time(__('M jS, Y', 'blocks2')) ?>
  32.             <?php if ($options['author']) : ?>
  33.                  | <?php _e('Posted by ', 'blocks2'); the_author_posts_link(); ?>
  34.             <?php endif; ?>
  35.             <?php if ($options['categories']) : ?>
  36.                  | <?php _e('Filed under ', 'blocks2'); the_category(', '); ?>
  37.             <?php endif; ?>
  38.         </div>
  39.         <div class="comments">
  40.             <?php
  41.                 if (function_exists('the_views')) the_views(true, '', ' | ');
  42.                 comments_popup_link(__('No comments', 'blocks2'), __('1 comment', 'blocks2'), __('% comments', 'blocks2'));
  43.                 edit_post_link(__('Edit', 'blocks2'), ' | ', '');
  44.             ?>
  45.         </div>
  46.         <div class="fixed"></div>
  47.     </div>
  48.  
  49.     <div class="content">
  50.         <?php the_content(__('Read more...', 'blocks2')); ?>
  51.         <div class="fixed"></div>
  52.         <?php if ($options['tags']) : ?>
  53.             <div class="tags"><?php _e('Tags: ', 'blocks2'); the_tags('', ', ', ''); ?></div>
  54.         <?php endif; ?>
  55.     </div>
  56. </div>
  57.     <?php endwhile; ?>
  58.  
  59. <?php else : ?>
  60.     <div class="errorbox">
  61.         <?php _e('Sorry, no posts matched your criteria.', 'blocks2'); ?>
  62.     </div>
  63. <?php endif; ?>
  64.  
  65. <div id="pagenavi">
  66.     <?php if(function_exists('wp_pagenavi')) : ?>
  67.         <?php wp_pagenavi() ?>
  68.     <?php else : ?>
  69.         <span class="alignleft floatleft"><?php previous_posts_link(__('&laquo; Newer Entries', 'blocks2')); ?></span>
  70.         <span class="alignright floatright"><?php next_posts_link(__('Older Entries &raquo;', 'blocks2')); ?></span>
  71.     <?php endif; ?>
  72.     <div class="fixed"></div>
  73. </div>
  74.  
  75. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement