Advertisement
Guest User

Untitled

a guest
Feb 3rd, 2013
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.46 KB | None | 0 0
  1. <?php /* Template Name: Microblog */get_header(); ?>
  2.  
  3. <div id="wrapper" class="clearfix">
  4.    
  5.     <!-- navigation sidebar -->
  6.     <?php get_template_part( 'navigation' ); ?>
  7.    
  8.     <div id="content-wrapper">
  9.    
  10.         <div id="content" <?php post_class();?>>
  11.            
  12.             <?php if ( get_post_meta( $post->ID, 'reach_hide_title', true ) != 'on' ) { ?>
  13.                
  14.                 <div class="page-intro">
  15.                    
  16.                     <!-- title -->
  17.                     <?php if ( get_post_meta( $post->ID, 'reach_page_title', true ) != '' ) { ?>
  18.                         <h1><?php echo get_post_meta( $post->ID, 'reach_page_title', true ); ?></h1>
  19.                     <?php } else { ?>
  20.                         <h1><?php the_title(); ?></h1>
  21.                     <?php } ?>
  22.                    
  23.                     <!-- subtitle -->
  24.                     <?php if ( get_post_meta( $post->ID, 'reach_subtitle', true ) != '' ) { ?>
  25.                         <em><?php echo get_post_meta( $post->ID, 'reach_subtitle', true ); ?></em>
  26.                     <?php } ?>
  27.                
  28.                 </div>
  29.            
  30.             <?php } ?>
  31.            
  32.             <?php if ( get_post_meta( $post->ID, 'reach_enable_slider', true ) == 'on' ) {             
  33.                 raw_create_slider( $post->ID );            
  34.             } elseif ( has_post_thumbnail() && get_post_meta( $post->ID, 'reach_hide_feature_image', true ) != 'on'  ) {
  35.                 $image = vt_resize( get_post_thumbnail_id(), '', 816, 999, false);
  36.                 echo '<img class="post-image" src="'. $image[url] .'" width="'. $image[width] .'" height="'. $image[height] .'" />';
  37.             } ?>
  38.                         <?php query_posts("cat=66"); ?>
  39.             <?php get_template_part('loop'); ?>    
  40.            
  41.         </div>
  42.        
  43.     </div>
  44.  
  45. </div>
  46.  
  47. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement