1. <?php require ("_posts_everestgrp.php"); ?>
  2.  
  3. <?php if (!is_404() && have_posts()) : while (have_posts()) : the_post(); ?>
  4.         <?php if(is_single()):?>
  5.                 <div class="post-nav fix"> <span class="previous"><?php previous_post_link('%link','%title',TRUE) ?></span> <span class="next"><?php next_post_link('%link','%title',TRUE) ?></span></div>
  6.         <?php endif;?>
  7.  
  8.         <div class="postwrap fix">
  9.                 <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
  10.                         <?php if(!is_page()):?>
  11.                         <div class="copy fix">
  12.                                         <?php if(pl_show_thumb($post->ID)): ?>
  13.                                                 <div class="thumb left">
  14.                                                                         <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php _e('Permanent Link To', TDOMAIN);?> <?php the_title_attribute();?>">
  15.                                                                                 <?php the_post_thumbnail('thumbnail');?>
  16.                                                                         </a>
  17.                                                     </div>
  18.                                         <?php elseif (get_post_meta($post->ID, 'thumb', true)): ?>
  19.                                                 <?php $postimageurl = get_post_meta($post->ID, 'thumb', true); ?>
  20.                                 <div class="thumb left">
  21.                                       <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php _e('Permanent Link To', TDOMAIN);?> <?php the_title_attribute();?>">
  22.                                                         <img src="<?php echo $postimageurl; ?>" alt="Post Pic" width="200" height="200" />
  23.                                                 </a>
  24.                                     </div>
  25.                                         <?php endif; ?>
  26.  
  27.                                         <div class="post-header fix <?php
  28.                                                 if(!pl_show_thumb($post->ID) && !get_post_meta($post->ID, 'thumb', true)) echo 'post-nothumb';
  29.                                         ?>" style="<?php
  30.                                                 if(pl_show_thumb($post->ID)){
  31.                                                         $post_header_width = 555 - get_option('thumbnail_size_w');
  32.                                                         echo 'width: '.$post_header_width.'px';
  33.                                                 }?>">
  34.                                                 <div class="post-title-section fix">
  35.                                                         <div class="post-title fix">
  36.                                                                 <h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php _e('Permanent Link to',TDOMAIN);?> <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
  37.                                                                 <div class="metabar">
  38.                                                                 <?php if(get_post_type()==='post'):?>
  39.                                                                         <em>
  40.                                                                         <?php _e('Posted on',TDOMAIN);?> <?php the_time(get_option('date_format')); ?>,
  41.                                                                         <?php _e('in',TDOMAIN);?> <?php the_category(', ') ?>,
  42.                                                                         <?php _e('by',TDOMAIN);?> <?php coauthors_posts_links(); ?>
  43.                                                                         <!-- <?php edit_post_link(__('<strong>(Edit Post)</strong>', TDOMAIN), ' ', ' ');?> -->
  44.                                                                         </em>
  45.                                                                 <?php endif; ?>
  46.                                                                 </div>
  47.                                                         </div>
  48.                                                 </div>
  49.                                                 <!--/post-title -->
  50.  
  51.                                                 <?php if(pl_show_excerpt($post->ID)):?>
  52.                                                                 <div class="post-excerpt">
  53.                                                                 <?php the_excerpt(); ?>
  54.                                                                 </div>
  55.                                                 <?php endif; ?>
  56.                                         </div>
  57.  
  58.                         </div>
  59.                         <?php endif;?>
  60.                         <?php  if(pl_show_content($post->ID)):?>
  61.                                 <div class="copy fix">
  62.                                         <?php if(pagelines('pagetitles') && is_page()  || is_page_template('page-feature-blog.php')):?>
  63.                                                 <h1 class="pagetitle"><?php the_title(); ?></h1>
  64.                                         <?php endif;?>
  65.                                         <div class="textcontent">
  66.                                                 <?php the_content(__('<p>Continue reading &raquo;</p>',TDOMAIN)); ?>
  67.                                                 <?php wp_link_pages(__('<p><strong>Pages:</strong>', TDOMAIN), '</p>', __('number', TDOMAIN)); ?>
  68.                                                 <?php edit_post_link(__('Edit',TDOMAIN), '<p>', '</p>'); ?>
  69.                                         </div>
  70.                                         <div class="tags">
  71.                                         <?php the_tags(__('Tagged with: ', TDOMAIN),' &bull; ','<br />'); ?>&nbsp;
  72.                                         </div>
  73.                                 </div>
  74.                                 <?php if(pagelines('authorinfo') && is_single()):?>
  75.                                         <?php include(THEME_LIB.'/_authorinfo.php');?>
  76.                                 <?php endif;?>
  77.  
  78.                         <?php endif;?>
  79.  
  80.                         <?php if(!is_page()) include(THEME_LIB.'/_post_footer.php');?>
  81.                 </div><!--post -->
  82.  
  83.         </div>
  84.  
  85.         <div class="clear"></div>
  86.  
  87.                 <?php if(is_single() || is_page()):?>
  88.  
  89.                         <?php include(THEME_LIB."/_contentsidebar.php");?>
  90.                         <?php if(!is_page() || (is_page() && pagelines('pagecomments', $post->ID))) include(THEME_LIB.'/_commentsform.php');?>
  91.  
  92.                 <?php endif; endwhile; ?>
  93.  
  94.         <?php include(THEME_LIB.'/_pagination.php');?>
  95.  
  96.  
  97.         <?php else : ?>
  98.                 <div class="postwrap fix">
  99.                         <div class="hentry">
  100.                         <div class="billboard">
  101.                                 <?php if(is_404()):?>
  102.                                         <h2 class="center"><?php _e('Error 404 - Page Not Found',TDOMAIN);?></h2>
  103.                                 <?php else:?>
  104.                                         <h2 class="center"><?php _e('Nothing Found',TDOMAIN);?></h2>
  105.                                 <?php endif;?>
  106.                                 <p class="center"><?php _e('Sorry, what you are looking for isn\'t here.', TDOMAIN);?></p>
  107.                                 <div class="center fix"><?php include (THEME_LIB . '/_searchform.php'); ?></div>
  108.                         </div>
  109.                         </div>
  110.                 </div>
  111.  
  112. <?php endif; ?>