<?php
/**
 * @package pro
 */
?>

<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
	<div class="progression-single-container">


			
			<?php if(get_post_meta($post->ID, 'progression_studios_gallery', true) ): ?>
				<div class="progression-studios-feaured-image">
					<div class="flexslider progression-studios-gallery">
				      <ul class="slides">
							<?php $files = get_post_meta( get_the_ID(),'progression_studios_gallery', 1 ); ?>
							<?php foreach ( (array) $files as $attachment_id => $attachment_url ) : ?>
							<?php $lightbox_pro = wp_get_attachment_image_src($attachment_id, 'large'); ?>
							<li><a href="<?php echo esc_attr($lightbox_pro[0]);?>" data-rel="prettyPhoto[gallery]" <?php $get_description = get_post(get_post_thumbnail_id())->post_excerpt; if(!empty($get_description)){ echo 'title="' . $get_description . '"'; } ?>><?php echo wp_get_attachment_image( $attachment_id, 'progression-blog' ); ?></a></li>
							<?php endforeach;  ?>
						</ul>
					</div><!-- close .flexslider -->
			
				</div><!-- close .progression-studios-feaured-image -->
			<?php else: ?>
				
				<?php if(get_post_meta($post->ID, 'progression_studios_video_post', true)): ?>
					<div class="progression-studios-feaured-image"><?php echo apply_filters('the_content', get_post_meta($post->ID, 'progression_studios_video_post', true)); ?></div><!-- close .progression-studios-feaured-image -->
				<?php else: ?>
				
					<?php if(has_post_thumbnail()): ?>
			
						<div class="progression-studios-feaured-image">
							<?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-blog'); ?>
							</a>
						</div><!-- close .progression-studios-feaured-image -->

					<?php endif; ?>
					
				<?php endif; ?>
				
			<?php endif; ?>
	
			
			
			<div class="progression-blog-meta">
				<div class="progression-blog-category"><?php the_category(''); ?><div class="clearfix-pro"></div></div>
			
			
				<a class="progression-date-meta" href="<?php echo get_month_link(get_the_time('Y'), get_the_time('m')); ?>"><i class="fa fa-calendar" aria-hidden="true"></i> <?php the_time(get_option('date_format')); ?></a>
				<?php if ( 'post' == get_post_type() ) : ?>
				<a class="progression-author-meta" href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ), get_the_author_meta( 'user_nicename' ) ); ?>"><i class="fa fa-user" aria-hidden="true"></i> <?php the_author(); ?></a>
			
				<?php comments_popup_link( '' . wp_kses( __( '<i class="fa fa-commenting"></i> No Comments', 'protege-progression' ), true ) . '', wp_kses( __( '<i class="fa fa-commenting"></i> 1 Comment', 'protege-progression' ), true), wp_kses( __( '<i class="fa fa-commenting"></i> % Comments', 'protege-progression' ), true ) ); ?>
			
				<?php endif; ?>
			
			</div><!-- close .progression-blog-meta -->
			
			
	
			<div class="progression-blog-content">
				<h2 class="progression-blog-title"><?php the_title(); ?></h2>
	
				<div class="progression-studios-summary-post"><?php the_content(); ?></div>
				
		
				<?php wp_link_pages( array(
						'before' => '<div class="progression-page-nav">' . esc_html__( 'Pages:', 'protege-progression' ),
						'after'  => '</div>',
						'link_before' => '<span>',
						'link_after'  => '</span>',
					) );
				?>
				
				<?php the_tags(  '<div class="tags-progression"><i class="fa fa-tag"></i>', '', '</div>' ); ?> 
				
				
				<?php if ( comments_open() || get_comments_number() ) : comments_template(); endif; ?>
				
				
			</div><!-- close .progression-blog-content -->
	
			
	
		<div class="clearfix-pro"></div>
		
		
	<div class="clearfix-pro"></div>
	</div><!-- close .progression-single-container -->
</div><!-- #post-## -->