 <?php /* Template Name: Single Service */ 

$health_custom = isset( $wp_query ) ? get_post_custom( $wp_query->get_queried_object_id() ) : '';
$health_layout = isset ($health_custom['pix_page_layout']) ? $health_custom['pix_page_layout'][0] : '2';
$health_sidebar = isset ($health_custom['pix_selected_sidebar'][0]) ? $health_custom['pix_selected_sidebar'][0] : 'services-sidebar-1';

if ( ! is_active_sidebar($health_sidebar) ) $health_layout = '1';

?>
<?php get_header();?>

<section class="page-content">
    <div class="container">
        <div class="row">
      
		<?php health_show_sidebar( 'left', $health_layout, $health_sidebar ); ?>
        
        <div class="<?php if ( $health_layout == 1 ) : ?>col-lg-12 col-md-12<?php else : ?>col-lg-9 col-md-8<?php endif; ?> col-sm-12 col-xs-12 left-column sidebar-type-<?php echo esc_attr($health_layout == 2 ? 'right' : ($health_layout == 3 ? 'left' : 'hide')); ?> rtd">

        	<?php if ( have_posts() ) while ( have_posts() ) : the_post(); 
					
				$health_thumbnail = get_the_post_thumbnail($post->ID);
			
			?>

		        <?php the_content(); ?>
                
            <?php endwhile; ?>

		</div>

		<?php health_show_sidebar( 'right', $health_layout, $health_sidebar ); ?>

		</div>
	</div>
</section>
<?php get_footer();?>
