Advertisement
kate3686

template_posts.php

Apr 25th, 2011
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.93 KB | None | 0 0
  1. <?php
  2.  
  3. global $pagelines_ID;
  4.  
  5.     if(is_page_template('page-fullwidth.php') || is_page_template('page-fullhighlight.php') || is_page_template('page-carousel-full.php')) $full_width_page = true;
  6.     else $full_width_page = false;
  7.    
  8.     if(is_page_template('page-carousel.php') || is_page_template('page-carousel-full.php')) $carousel_page = true;
  9.     else $carousel_page = false;
  10.    
  11.     if(VPRO && (is_page_template('page-feature.php') || is_page_template('page-feature-page.php') || (is_home() && pagelines('featureblog')))) $featureslide_template = true;
  12.     else $featureslide_template = false;
  13.    
  14.     if(VPRO && (is_page_template('page-feature.php') || m_pagelines('featureboxes', $pagelines_ID))) $fboxes_template = true;
  15.     else $fboxes_template = false;
  16.    
  17.     if(is_page_template('page-sidebar1.php')) $sidebar1 = true;
  18.     else $sidebar1 = false;
  19.    
  20.     if(is_page_template('page-sidebar2.php')) $sidebar2 = true;
  21.     else $sidebar2 = false;
  22.  
  23. ?>
  24.  
  25. <?php if($featureslide_template) get_template_part('pro/template_feature'); ?>
  26. <?php if($carousel_page) get_template_part('pro/template_carousel');?>
  27.  
  28. <?php if(!is_404()) get_template_part('library/_subhead');?>
  29.  
  30. <?php if(is_page_template('page-fullhighlight.php') || is_page_template('page-highlight.php') ) get_template_part ( 'pro/template_highlight'); ?>
  31.  
  32. <div id="contentcontainer" class="content fix">
  33.     <div id="contentborder">
  34.  
  35.        
  36.         <?php if($fboxes_template) get_template_part('pro/template_fboxes');?>
  37.  
  38.         <?php if(!is_page_template('page-feature.php')):?>
  39.             <div id="maincontent" <?php if($full_width_page):?>class="fullwidth"<?php endif;?> >
  40.            
  41.                 <?php get_template_part ('library/_posts'); ?>
  42.             </div>
  43.    
  44.    
  45. <?php
  46. if($sidebar1) get_sidebar( 'secondary_sidebar1' );
  47. elseif($sidebar2) get_sidebar( 'secondary_sidebar2' );
  48. else get_sidebar( 'main_sidebar' );
  49. ?>
  50.  
  51.        
  52.    
  53.             <?php get_template_part ('library/_contentfooter'); ?>
  54.         <?php endif;?>
  55.    
  56.         <div class="clear"></div>
  57.     </div>
  58. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement