whyisjake

Jake Spurlock

Apr 29th, 2010
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.34 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.                        
  23.                         <?php
  24.                             $args=array(
  25.                                'post_type'=>'page',
  26.                                'post__in' => array('520', '525')
  27.                                'showposts' => '1',
  28.                                'orderby' => 'rand'
  29.                             );
  30.                             $the_query = new WP_Query($args);
  31.                         ?>
  32.                         <?php while ($the_query->have_posts()) : $the_query->the_post(); ?>
  33.                        
  34.                         <?php the_post_thumbnail('homer'); ?>
  35.                        
  36.                         <?php the_content(); ?>
  37.                        
  38.                         <?php endwhile; ?>                     
  39.                        
  40.                        
  41.                        
  42.                        
  43.                     </div>
  44.                    
  45.                 </div>
  46.                
  47.                 <div class="clear"></div>
  48.             </div>
  49.         <?php endif; ?>
  50.     <?php else: ?>
  51.         <?php $custom = get_post_custom() ?>
  52.         <?php if(!empty($custom['heading'][0])): ?>
  53.             <div class="content-heading">
  54.                 <?php echo $custom['heading'][0]?>
  55.             </div>
  56.         <?php endif; ?>
  57.         <div id="content">
  58.             <div class="page">
  59.                 <?php the_content() ?>
  60.             </div>
  61.         </div>
  62.     <?php endif; ?>
  63. <?php get_footer() ?>
Add Comment
Please, Sign In to add comment