<?php get_header(); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="wrapper mh-clearfix">
	<div class="content <?php mh_content_class(); ?>"><?php
		mh_before_post_content(); ?>
		<article <?php post_class(); ?>>
			<header class="post-header">
				<h1 class="post-title"><?php the_title(); ?></h1>
			</header>
			<div class="entry mh-clearfix"> <?php
				if (wp_attachment_is_image($post->id)) {
					$att_image = wp_get_attachment_image_src($post->id, 'full'); ?>
					<a href="<?php echo wp_get_attachment_url($post->id); ?>" title="<?php the_title_attribute(); ?>" rel="attachment" target="_blank"><img src="<?php echo $att_image[0]; ?>" width="<?php echo $att_image[1]; ?>" height="<?php echo $att_image[2]; ?>" class="mh-attachment attachment-medium" alt="<?php the_title_attribute(); ?>" /></a>
					<?php if (get_post(get_post_thumbnail_id())->post_excerpt) { ?>
						<p class="wp-caption-text"><?php echo get_post(get_post_thumbnail_id())->post_excerpt; ?></p>
					<?php } ?>
					<?php if (get_post(get_post_thumbnail_id())->post_content) { ?>
						<p><?php echo get_post(get_post_thumbnail_id())->post_content; ?></p>
					<?php }
				} ?>
			</div>
		</article><?php
		mh_after_post_content();
		endwhile; endif; ?>
	</div>
	<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>