<?php
/**
 * The template for displaying all single posts.
 *
 * @package pro
 */

get_header(); ?>
<?php while ( have_posts() ) : the_post(); ?>
	
	
	
	<div id="page-title-pro">
		<div id="progression-studios-page-title-container">
			<div class="width-container-pro">
				<h1 class="page-title"><?php the_title(); ?></h1>
			</div><!-- #progression-studios-page-title-container -->
			<div class="clearfix-pro"></div>
		</div><!-- close .width-container-pro -->
		
	</div><!-- #page-title-pro -->
	
	<div id="content-pro">
		
		<?php if(!get_post_meta($post->ID, 'progression_studios_featured_image_disable', true)): ?>
		<?php if(has_post_thumbnail()): ?>
			<div class="progression-studios-feaured-image-single-portfolio">
				<?php $image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'large'); ?>	
				<a href="<?php echo esc_attr($image[0]);?>" <?php $get_description = get_post(get_post_thumbnail_id())->post_excerpt; if(!empty($get_description)){ echo 'title="' . $get_description . '"'; } ?> data-rel="prettyPhoto">
					<?php the_post_thumbnail('progression-studios-portfolio-single'); ?>
				</a>
			</div><!-- close .progression-studios-feaured-image -->
		<?php endif; ?><!-- close featured thumbnail -->
		<?php endif; ?>

		<div class="width-container-pro">
				
			<?php get_template_part( 'template-parts/content-portfolio', 'single' ); ?>
				
		<div class="clearfix-pro"></div>
		</div><!-- close .width-container-pro -->
		
		
	</div><!-- #content-pro -->
		
<?php endwhile; // end of the loop. ?>
<?php get_footer(); ?>