whyisjake

Jake Spurlock

Apr 28th, 2010
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.12 KB | None | 0 0
  1. <?php
  2. /*
  3. Template Name: Full-width
  4. */
  5. ?>
  6. <?php get_header(); the_post(); ?>
  7.     <?php if(is_home() || is_front_page()): ?>
  8.         <?php include 'billboard.php' ?>
  9.         <?php if(get_option('uds-hp-show-posts') == true): ?>
  10.             <?php include 'post-loop.php' ?>
  11.         <?php else: ?>
  12.             <div id="content">
  13.                 <div class="page">
  14.                     <div class="homer">
  15.                    
  16.                         <?php the_content() ?>
  17.                    
  18.                     </div>
  19.                    
  20.                     <div class="custom-home">
  21.                    
  22.                         <!--This is where you are going to adding the content-->
  23.                        
  24.                         <?php $customField = get_post_custom_values("custom-content-1");
  25.                             if (isset($customField[0])) {
  26.                             echo $customField[0];
  27.                             }
  28.                            
  29.                         ?>
  30.                        
  31.                     </div>
  32.                    
  33.                 </div>
  34.                
  35.                 <div class="clear"></div>
  36.             </div>
  37.         <?php endif; ?>
  38.     <?php else: ?>
  39.         <?php $custom = get_post_custom() ?>
  40.         <?php if(!empty($custom['heading'][0])): ?>
  41.             <div class="content-heading">
  42.                 <?php echo $custom['heading'][0]?>
  43.             </div>
  44.         <?php endif; ?>
  45.         <div id="content">
  46.             <div class="page">
  47.                 <?php the_content() ?>
  48.             </div>
  49.         </div>
  50.     <?php endif; ?>
  51. <?php get_footer() ?>
Add Comment
Please, Sign In to add comment