<?php get_header();?>
<div id="wrap"></div>
<div id="main-container">
<?php if(have_posts()):?><?php while(have_posts()):the_post();?>
<div class="title-bar">
<div class="date-block">
<div class="month"><?php the_time('M');?></div><!--month-->
<div class="day"><?php the_time('j');?></div><!--day-->
</div><!--date-block-->
<div class="post-title"><a href="<?php the_permalink(); ?>" title="<?php the_title();?>"><?php the_title();?> </a></div><!--post-title-->
</div><!--title-bar-->
<!--timthumb with sliding caption-->
<?php if ( get_post_meta($post->ID, 'image', true) ) { ?>
<div class="imgbox caption">
<a href="<?php the_permalink(); ?>" title="<?php the_title();?>">
<img src="<?php bloginfo('template_directory'); ?>/scripts/timthumb.php?src=<?php echo get_post_meta($post->ID, 'image', $single = true); ?>&h=100&w=562&zc=1&q=100" alt="<?php the_title();?>" /> </a>
<div class="cover boxcaption">
<h3><a href="<?php the_permalink(); ?>" title="<?php the_title();?>">Click to Continue Reading</a></h3>
</div>
</div>
<?php } ?>
<div class="post-content">
<?php the_excerpt();?>
</div><!--post-content-->
<div class="post-meta">
Under: <?php the_category(',')?> with <?php comments_number('0 comments', '1 comment', '% comments');?>
</div><!--post-meta-->
<div class="author-box">
<div class="author-description"><?php the_author_description(); ?></div><!--author-description-->
<?php echo get_avatar( get_the_author_id() , 40 ); ?>
<div class="author-name"><a href="<?php the_author_url(); ?>"><?php the_author_firstname(); ?> <?php the_author_lastname(); ?></a></div><!--author-name-->
</div><!--author-box-->
<?php endwhile;?>
<?php posts_nav_link();?>
<?php endif;?>
</div><!--main-container-->
<?php get_sidebar()?>
<?php get_footer()?>