wp/wp-content/themes/IN-MOTION-package-u1/in-motion/index.php
changeset 0 d970ebf37754
equal deleted inserted replaced
-1:000000000000 0:d970ebf37754
       
     1 <?php get_header(); ?>
       
     2 			<div id="content" class="clearfix">
       
     3 			<?php menu(-1); ?>
       
     4 		<?php
       
     5   			if ( !function_exists( 'get_option_tree') ) {
       
     6 				echo '<h1 style="color:white; background-color:#494a4a;">You need the Option Tree plugin installed for this theme!<br/>
       
     7 					You can get it here: <a href="http://wordpress.org/extend/plugins/option-tree/" target="_blank" class="ot-warning">Option tree</a></h1>';
       
     8 			}
       
     9 		?>
       
    10 				<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
       
    11 				
       
    12 
       
    13 				<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
       
    14 		
       
    15 				<?php
       
    16 					$title = $post->post_title;
       
    17     
       
    18 				   $post_id = get_the_ID();
       
    19 				    
       
    20 				   $content = get_the_content();
       
    21 				    
       
    22 				   $pageTemplate=  get_post_meta($post_id , 'page_template' , true);
       
    23     
       
    24     				$shortDesc = get_post_meta($post_id , 'short_desc' , true);
       
    25     				
       
    26 					echo '<div class="page-title" style="margin-top: 37px;">';
       
    27 					echo '<h2 style="float:left; width:auto;">'.$title.'</h2>';
       
    28 					if (!empty($shortDesc)) {
       
    29 						echo 	'<span style="float: left; color: #fff; font-size: 15px; margin: 12px 0 0 20px; ">}</span><p style="float:left; width:auto; font-style: italic; color: #ffffff; margin: 16px 0 0 20px; color: #fff;">'.$shortDesc.'</p>';
       
    30 					}		
       
    31 					echo '</div>';
       
    32 	
       
    33 					?>
       
    34 					<div class="entry">
       
    35 						<?php the_content(); ?>
       
    36 					</div>
       
    37 				</div>
       
    38 
       
    39 			<?php endwhile; ?>
       
    40 
       
    41 			<?php include (TEMPLATEPATH . '/inc/nav.php' ); ?>
       
    42 
       
    43 			<?php else : ?>
       
    44 
       
    45 				<h2><?php _e('Not Found','pego_tr'); ?></h2>
       
    46 				<img src="<?php echo get_template_directory_uri(); ?>/images/404-img.png" />
       
    47 			<?php endif; ?>	
       
    48 		</div>
       
    49 </div><!-- end container -->
       
    50 <?php get_footer(); ?>