SergeyBiryukov

Sergey Biryukov

Feb 25th, 2011
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.43 KB | None | 0 0
  1. <?php get_header(); ?>
  2. <?php $options = get_option('inove_options'); ?>
  3.  
  4. <?php if (have_posts()) : the_post(); update_post_caches($posts); ?>
  5.  
  6.     <div id="postpath">
  7.         <a title="<?php _e('Goto homepage', 'inove'); ?>" href="<?php echo get_settings('home'); ?>/"><?php _e('Home', 'inove'); ?></a>
  8.          > <?php the_category(', '); ?>
  9.          > <?php the_title(); ?>
  10.     </div>
  11.  
  12.     <div class="post" id="post-<?php the_ID(); ?>">
  13.         <h2><?php the_title(); ?></h2>
  14.         <div class="info">
  15.             <span class="date"><?php the_time(__('F jS, Y', 'inove')) ?></span>
  16.             <div class="act">
  17.             <?php if ($comments || comments_open()) : ?>
  18.                     <span class="comments"><a href="#comments"><?php _e('Goto comments', 'inove'); ?></a></span>
  19.                     <span class="addcomment"><a href="#respond"><?php _e('Leave a comment', 'inove'); ?></a></span>
  20.                 <?php endif; ?>
  21.                 <?php edit_post_link(__('Edit', 'inove'), '<span class="editpost">', '</span>'); ?>
  22.                 <div class="fixed"></div>
  23.             </div>
  24.             <div class="fixed"></div>
  25.         </div>
  26.         <div class="content">
  27.             <?php the_content(); ?>
  28.             <p class="under">
  29.                 <?php if ($options['categories']) : ?><span class="categories"><?php the_category(', '); ?></span><?php endif; ?>
  30.                 <?php if ($options['tags']) : ?><span class="tags"><?php the_tags('', ', ', ''); ?></span><?php endif; ?>
  31.             </p>
  32.             <div class="fixed"></div>
  33.         </div>
  34.     </div>
  35.  
  36. <?php else : ?>
  37.     <div class="errorbox">
  38.         <?php _e('Sorry, no posts matched your criteria.', 'inove'); ?>
  39.     </div>
  40. <?php endif; ?>
  41.  
  42. <!-- related posts START -->
  43. <?php
  44.     // when related posts with title
  45.     if(function_exists('wp23_related_posts')) {
  46.         echo '<div id="related_posts">';
  47.         wp23_related_posts();
  48.         echo '</div>';
  49.         echo '<div class="fixed"></div>';
  50.     }
  51.     /*
  52.     // when related posts without title
  53.     if(function_exists('wp23_related_posts')) {
  54.         echo '<div class="boxcaption">';
  55.         echo '<h3>Related Posts</h3>';
  56.         echo '</div>';
  57.         echo '<div id="related_posts" class="box">';
  58.         wp23_related_posts();
  59.         echo '</div>';
  60.         echo '<div class="fixed"></div>';
  61.     }
  62.     */
  63. ?>
  64. <!-- related posts END -->
  65.  
  66. <?php
  67.     // Support comments for WordPress 2.7 or higher
  68.     if (function_exists('wp_list_comments')) {
  69.         comments_template('', true);
  70.     } else {
  71.         comments_template();
  72.     }
  73. ?>
  74.  
  75. <div id="postnavi">
  76.     <span class="prev"><?php next_post_link('%link') ?></span>
  77.     <span class="next"><?php previous_post_link('%link') ?></span>
  78.     <div class="fixed"></div>
  79. </div>
  80.  
  81. <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment