<?php get_header();?>
<div id="wrap">
<div id="main-container">
<?php if(have_posts()):?><?php while(have_posts()):the_post();?>
<div class="title-bar">
<div class="post-title"><?php the_title();?></div><!--post-title-->
</div><!--title-bar-->

<!--timthumb-->
		<?php if ( get_post_meta($post->ID, 'image', true) ) { ?>	
		 
		<img src="<?php bloginfo('template_directory'); ?>/scripts/timthumb.php?src=<?php echo get_post_meta($post->ID, 'image', $single = true); ?>&h=300&w=594&zc=1&q=100" alt="<?php the_title();?>" /> 	
				
		<?php } ?> 



<div class="post-content">
<?php the_content();?>
</div><!--post-content-->
<div class="post-meta">
<?php wp_link_pages('before=<div class="page-links">Page&after=</div>'); ?>
<?php edit_post_link('Изменить','<div class="edit-me-links">','</div>');?>
</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()?>