<?php get_header(); ?>

<div id="main">
<div id="main-content">

<?php
if( have_posts()):
while (have_posts()): the_post();
global $post;
?>

<div id="main-title">
<h1 id="page-title"><span><?php the_title(); ?></span></h1>

<?php if( get_option( THEME_SHORTNAME . '_show_the_view_and_like' ) !== '0' ){ ?>
<div id="single-project-meta">
<ul>
<li class="single-project-meta-view"><span class="spmvt"><?php echo _prime_portfolio_visitor_count($post->ID); ?></span></li>
<li class="single-project-meta-like"><span class="sptp"><a href="#"><?php echo _prime_portfolio_likes_count($post->ID); ?></a></span></li>
<li class="single-project-meta-comment"><?php comments_popup_link( __('0', 'prime'), __('1', 'prime'), __('%', 'prime') ); ?></li>
</ul>
</div>
<?php } ?>
<div class="clear"></div>
</div><!-- #main-title -->

<div id="project-single" <?php post_class(); ?>>

<?php prime_get_single_portfolio_gallery(); ?>

<div id="project-single-content"<?php if( !_prime_portfolio_had_video($post->ID) && get_option(THEME_SHORTNAME.'_always_show_video_tab') === '0' ) { echo ' class="no_video"'; } ?>>
<div id="content-tabs">
<ul>
<li class="description-tab"><a href="#project-description"><?php print __('Description', 'prime'); ?></a></li>
</ul>
</div>

<div id="content-panes"<?php if( !_prime_portfolio_had_video($post->ID) && get_option(THEME_SHORTNAME.'_always_show_video_tab') === '0' ) { echo ' class="no_video"'; } ?>>

<div class="content-pane" id="project-description">
<?php the_content(); ?>
</div>

</div>
</div>

</div><!-- #project-single -->

<?php
endwhile;
endif;
wp_reset_query();
?>

</div><!-- #main-content -->
</div><!-- #main -->


<?php get_footer(); ?>