<?php
/*
Template Name: Portfolio
*/
?>

<?php get_header(); ?>
<!-- start container -->
    <div id="container">
    <h2 class="gallery-title"><?php _e('Portfolio'); ?></h2>
    	<ul class="gallery-thumbnail">
        <?php query_posts(array('post_type'=>'portfolios', 'posts_per_page'=>10, 'paged'=>get_query_var('paged'))); ?>
        <?php if(have_posts()) : while(have_posts()) : the_post(); ?>
        	<li><a href="<?php the_permalink(); ?>">
            	<span class="overlay"><strong><?php the_title(); ?><br /></strong><?php the_time('F j, Y'); ?></span>
            	<?php the_post_thumbnail('post-thumb'); ?></a>
            </li>
            <?php endwhile; endif;   ?>
         </ul>
        <div class="clear"></div>
        <!-- pagination -->
        <?php if (function_exists("pagination")) {
			pagination($additional_loop->max_num_pages);
			} ?>
        <!-- pagination -->
        <div class="clear"></div>
    </div>
    <!-- end container -->
<?php get_footer(); ?>
        