<?php

/*

Template Name: Home

*/

?>



<?php get_header(); ?>

<!-- start container -->

    <div id="container">

    	<ul class="gallery-thumbnail">

        <?php query_posts(array('post_type'=>'portfolios','posts_per_page'=>15)); ?>

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

	    <?php wp_reset_query(); ?>

         </ul>

        <div class="clear"></div>
	<?php if(get_option('photography_tagline')!=''){ ?>
        <h2 class="tagline"><span><?php echo get_option('photography_tagline'); ?></span></h2>
	<?php } ?>

        <!-- start leftcol -->

        <div id="leftcol">

        	<div class="content">

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

            			<?php if(get_option('photography_himage')!=''){ ?><div class="imgb"><img src="<?php echo get_option('photography_himage'); ?>" alt="" width="180" height="180" /></div><?php } ?>

        			<h4><?php echo get_option('photography_htitle'); ?></h4>

				<div class="entry">

                			<?php the_content(); ?>

				</div>

			<?php endwhile; endif; ?>

	    		<?php wp_reset_query(); ?>

            	</div>

        </div>

        <!-- end leftcol -->

        <!-- start rightcol -->

        <div id="rightcol">

        	<?php dynamic_sidebar(2); ?>

        </div>

        <!-- end rightcol -->

        <div class="clear"></div>

    </div>

    <!-- end container -->

<?php get_footer(); ?>