Advertisement
Guest User

Untitled

a guest
Feb 2nd, 2012
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 KB | None | 0 0
  1. <?php
  2.  
  3. /* Template Name: Homepage */
  4.  
  5. global $shortname;
  6.  
  7. get_header(); ?>
  8.  
  9. <div id="wrapper" class="clearfix">
  10.  
  11. <!-- navigation sidebar -->
  12. <?php get_template_part( 'navigation' ); ?>
  13.  
  14. <div id="content-wrapper">
  15.  
  16. <div id="content" <?php post_class();?>>
  17.  
  18. <?php if ( get_post_meta( $post->ID, 'reach_hide_title', true ) != 'on' ) { ?>
  19.  
  20. <div class="page-intro">
  21.  
  22. <!-- title -->
  23. <?php if ( get_post_meta( $post->ID, 'reach_page_title', true ) != '' ) { ?>
  24. <h1><?php echo get_post_meta( $post->ID, 'reach_page_title', true ); ?></h1>
  25. <?php } else { ?>
  26. <h1><?php the_title(); ?></h1>
  27. <?php } ?>
  28.  
  29. <!-- subtitle -->
  30. <?php if ( get_post_meta( $post->ID, 'reach_subtitle', true ) != '' ) { ?>
  31. <em><?php echo get_post_meta( $post->ID, 'reach_subtitle', true ); ?></em>
  32. <?php } ?>
  33.  
  34. </div>
  35.  
  36. <?php } ?>
  37.  
  38. <?php if ( get_post_meta( $post->ID, 'reach_enable_slider', true ) == 'on' ) {
  39. raw_create_slider( $post->ID );
  40. } elseif ( has_post_thumbnail() && get_post_meta( $post->ID, 'reach_hide_feature_image', true ) != 'on' ) {
  41. $image = vt_resize( get_post_thumbnail_id(), '', 816, 999, false);
  42. echo '<img class="post-image" src="'. $image[url] .'" width="'. $image[width] .'" height="'. $image[height] .'" />';
  43. } ?>
  44.  
  45. <?php if ( have_posts() ): ?>
  46.  
  47. <?php while ( have_posts() ): the_post(); ?>
  48.  
  49. <!-- content -->
  50. <?php if( $post->post_content != "" ) { ?>
  51.  
  52. <div id="content">
  53. <article class="page-content clearfix">
  54.  
  55. <?php the_content(); ?>
  56.  
  57. <?php query_posts( array( 'category__and' => array(9), 'showposts' => 3,)); ?>
  58.  
  59. <?php } ?>
  60.  
  61. <?php if ( of_get_option('blog_layout') == "0" ) {
  62. get_template_part('loop', 'grid');
  63. ?>
  64. <?php wp_reset_query() ?>
  65.  
  66. </article>
  67. </div>
  68. <?php } ?>
  69.  
  70. <?php endwhile; ?>
  71.  
  72. <?php endif; ?>
  73.  
  74.  
  75. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement