Advertisement
JPry

Untitled

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