<?php

/*

* gallery taxonomy archive

*/

get_header();

$term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );

?>

<!-- start container -->

    <div id="container">

    	<h2 class="gallery-title"><?php echo apply_filters( 'the_title', $term->name ); ?></h2>

    	<ul class="gallery-thumbnail">

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

        <?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post-thumb' ); ?>

        	<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(); ?>