<article class="otw-single-portfolio-item">
	<div class="portfolio-gallery-wrapper">
		<?php if( isset( $otw_portfolio_slider_images ) && count( $otw_portfolio_slider_images ) ){?>
		<div id="portfolio-gallery" class="flexslider">
			<ul class="slides">
				<?php foreach( $otw_portfolio_slider_images as $image_url ){ ?>
					<?php  $image_data = parse_url( $image_url ); ?>
					<li data-thumb="<?php echo otw_resize_media( array( 'type' => 'img', 'path' => $image_data['path'], 'width' => 80, 'height' => 50, 'crop' => 'center_center' ) ) ;?>"><img src="<?php echo otw_resize_media( array( 'type' => 'img', 'path' => $image_data['path'], 'width' => 700, 'height' => 400, 'crop' => 'center_center' ) ) ;?>" alt=""></li>
				<?php }?>
			</ul>
		</div>
		<?php if( count( $otw_portfolio_slider_images ) > 1){?>
			<div id="portfolio-carousel" class="flexslider">
				<ul class="slides">
					<?php foreach( $otw_portfolio_slider_images as $image_url ){ ?>
						<?php  $image_data = parse_url( $image_url ); ?>
						<li data-thumb="<?php echo otw_resize_media( array( 'type' => 'img', 'path' => $image_data['path'], 'width' => 80, 'height' => 50, 'crop' => 'center_center' ) ) ;?>"><img src="<?php echo otw_resize_media( array( 'type' => 'img', 'path' => $image_data['path'], 'width' => 700, 'height' => 400, 'crop' => 'center_center' ) ) ;?>" alt=""></li>
					<?php }?>
				</ul>
			</div>
		<?php } ?>
		<?php } ?>
	</div>
	<?php if( isset( $otw_portfolio_cats ) && count( $otw_portfolio_cats ) ){?>
		<div class="post-meta">
			<span class="categories">
				<?php _e( 'Portfolio Categories', 'otw_cm' )?>:
				
				<?php foreach( $otw_portfolio_cats as $cat ){?>
					<a href="<?php echo esc_url( get_term_link( $cat->term_id, 'otw_cm_portfolio_category' ) ) ?>" title="<?php echo __( 'View all posts in', 'otw_cm' ).' '.$cat->name ?>"><?php echo $cat->name ?></a>
				<?php }?>
			</span>
		</div>
	<?php } ?>
	<div class="post-content">
		<p><?php echo $content ?></p>
	</div>
</article>