Advertisement
Guest User

single post

a guest
Jul 7th, 2013
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.58 KB | None | 0 0
  1. <?php
  2. /**
  3.  * @package WordPress
  4.  * @subpackage Templuto
  5.  */
  6.  
  7. get_header();
  8. ?>
  9.     <div id="content" class="narrowcolumn" >
  10.  
  11.     <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  12.  
  13.         <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
  14.             <h2 class="post_title" ><?php the_title(); ?></h2>
  15.        
  16.                     <div class="entry" >
  17.                        
  18.                     <?php
  19.                             $width = tpo_option('tpo_blog_cat_thumbnail_width');
  20.                             $height = tpo_option('tpo_blog_cat_thumbnail_height');
  21.                             if (!$width) $width = THUMB_WIDTH;
  22.                             if (!$height) $height = THUMB_HEIGHT;  
  23.                             $postimage = get_post_meta($post->ID, '_post_image', true);
  24.                             if ($postimage) :
  25.                             $postimg = tpo_image_resize( $height, $width, $postimage); ?>
  26.                                      <div class="feature_image" style="width:<?php echo $width; ?>px">
  27.                                         <a class="load_blog_img" title="<?php the_title(); ?>" href="<?php the_permalink(); ?>">
  28.                                             <img src="<?php echo $postimg; ?>" alt="<?php the_title(); ?>" title="<?php the_title(); ?>" />
  29.                                         </a>
  30.                                     </div>
  31.                             <?php endif; ?>
  32.                             <?php the_content(); ?>
  33.                             <?php if ( TPO_BLOG_SHOW_TAGS ) : ?>                   
  34.                                 <?php $post_tags = wp_get_post_tags($post->ID);
  35.                                 if(!empty($post_tags)) { ?>
  36.                                     <div class="tag" ><?php the_tags( __('Tags', THEME_SLUG) . ': ', ', ', '<br />'); ?></div>
  37.                                 <?php }  ?>
  38.                             <?php endif; ?>
  39.  
  40.  
  41. <a name="fb_share" type="button_count" href="http://www.facebook.com/sharer.php">Share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
  42. <span><script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
  43. <g:plusone></g:plusone></span>
  44.  
  45.                              <div class="entry_meta">
  46.                             <?php if ( TPO_BLOG_SHOW_DATE == true ) : ?>
  47.                                 <span class="datetime" datetime="<?php echo get_the_time('F j, Y') ?>" ><?php echo get_the_time('F j, Y') ?></span>
  48.                     <?php endif; ?>
  49.                              
  50.                  <?php if ( TPO_BLOG_SHOW_AUTHOR == true ) : ?>
  51.                         <span class="author" ><?php echo get_the_author() ?></span>         <?php endif;   ?>
  52.                    
  53.  
  54.                     <?php if ( TPO_BLOG_SHOW_CATEGORIES == true ) : ?>
  55.                         <?php if (count( get_the_category())) :   ?>
  56.                                 <span  class="category"  ><?php _e('Posted In',THEME_SLUG);?>
  57.                                 <?php echo get_the_category_list( ', ' ) ; ?>
  58.                                 </span>
  59. <?php if(function_exists('the_views')) { the_views(); } ?>
  60. </span>
  61.                         <?php endif;   ?>
  62.                     <?php endif;   ?>
  63.                     <?php if ( TPO_BLOG_SHOW_COMMENTCOUNT == true ) :  ?>      
  64.                                 <span  class="metacomment" ><?php comments_popup_link(__('No Comments', THEME_SLUG), __('1 Comment', THEME_SLUG), __('% Comments', THEME_SLUG)); ?></span>
  65.                     <?php endif;   ?>
  66.                 </div>
  67.                                    
  68.                            
  69.                            
  70.                             </div>
  71.                         </div>   <!-- End Post  -->                                    
  72.                             <?php if ( TPO_BLOG_SHOW_AUTHORBIO == true ) : ?>
  73.                                 <div class="author_info_main">
  74.                                     <h3><?php _e('About The Author',THEME_SLUG);?></h3>
  75.                                     <?php tpo_author_info(); ?>
  76.                                 </div>
  77.  
  78.                             <?php endif; ?>
  79.                                
  80.            
  81.            
  82.                     <?php comments_template(); ?>
  83.                    
  84.     <?php endwhile; else: ?>
  85.  
  86.         <p><?php _e('Sorry, no posts matched your criteria.',  THEME_SLUG ); ?></p>
  87.  
  88. <?php endif; ?>
  89.  
  90.         </div> <!-- End content  -->
  91.        
  92. <?php get_sidebar(); ?>
  93. <div class="clearboth"></div>
  94. <?php  get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement