Advertisement
Guest User

post-single.php

a guest
Feb 24th, 2014
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.93 KB | None | 0 0
  1. <?php global $theme; ?>
  2.  
  3.     <div <?php post_class('post post-single clearfix'); ?> id="post-<?php the_ID(); ?>">
  4.    
  5.         <h2 class="title"><?php the_title(); ?></h2>
  6.        
  7.         <div class="postmeta-primary">
  8.    
  9.             <span class="meta_date"><?php echo get_the_date(); ?></span>
  10.            &nbsp; <span class="meta_categories"><?php the_category(', '); ?></span>
  11.    
  12.                 <?php if(comments_open( get_the_ID() ))  {
  13.                     ?> &nbsp; <span class="meta_comments"><?php comments_popup_link( __( 'No comments', 'themater' ), __( '1 Comment', 'themater' ), __( '% Comments', 'themater' ) ); ?></span><?php
  14.                 }
  15.                
  16.                 if(is_user_logged_in())  {
  17.                     ?> &nbsp; <span class="meta_edit"><?php edit_post_link(); ?></span><?php
  18.                 } ?>
  19.         </div>
  20.        
  21.         <div class="entry clearfix">
  22.            
  23.             <?php
  24.                 if(has_post_thumbnail())  {
  25.                     the_post_thumbnail(
  26.                         array($theme->get_option('featured_image_width_single'), $theme->get_option('featured_image_height_single')),
  27.                         array("class" => $theme->get_option('featured_image_position_single') . " featured_image")
  28.                     );
  29.                 }
  30.             ?>
  31.            
  32.             <?php
  33.                 the_content('');
  34.                 wp_link_pages( array( 'before' => '<p><strong>' . __( 'Pages:', 'themater' ) . '</strong>', 'after' => '</p>' ) );
  35.             ?>
  36.    
  37.         </div>
  38.        
  39.         <?php if(get_the_tags()) {
  40.                 ?><div class="postmeta-secondary"><span class="meta_tags"><?php the_tags('', ', ', ''); ?></span></div><?php
  41.             }
  42.         ?>
  43.        
  44.    
  45.     </div><!-- Post ID <?php the_ID(); ?> -->
  46.    
  47.     <?php
  48.         if(comments_open( get_the_ID() ))  {
  49.             comments_template('', true);
  50.         }
  51.     ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement