Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: Full-width
- */
- ?>
- <?php get_header(); the_post(); ?>
- <?php if(is_home() || is_front_page()): ?>
- <?php include 'billboard.php' ?>
- <?php if(get_option('uds-hp-show-posts') == true): ?>
- <?php include 'post-loop.php' ?>
- <?php else: ?>
- <div id="content">
- <div class="page">
- <div class="homer">
- <?php the_content() ?>
- </div>
- <div class="custom-home">
- <?php
- $args=array(
- 'post_type'=>'page',
- 'post__in' => array('520', '525')
- 'showposts' => '1',
- 'orderby' => 'rand'
- );
- $the_query = new WP_Query($args);
- ?>
- <?php while ($the_query->have_posts()) : $the_query->the_post(); ?>
- <?php the_post_thumbnail('homer'); ?>
- <?php the_content(); ?>
- <?php endwhile; ?>
- </div>
- </div>
- <div class="clear"></div>
- </div>
- <?php endif; ?>
- <?php else: ?>
- <?php $custom = get_post_custom() ?>
- <?php if(!empty($custom['heading'][0])): ?>
- <div class="content-heading">
- <?php echo $custom['heading'][0]?>
- </div>
- <?php endif; ?>
- <div id="content">
- <div class="page">
- <?php the_content() ?>
- </div>
- </div>
- <?php endif; ?>
- <?php get_footer() ?>
Add Comment
Please, Sign In to add comment