<?php

if (is_singular()) {
    ?>
	
	<article id="article"
	style="background-image:url(<?php 
    the_post_thumbnail_src($post);
    ?>
);">
		<div class="c">
			<div <?php 
    post_class('article cc c');
    ?>
>
				
				<h1><?php 
    the_title();
    ?>
</h1>
				<?php 
    the_content();
    ?>
				
			</div>
		</div>
	</article>
	
	<?php 
    if (is_single()) {
        ?>
	
	<?php 
}
?>

	<?php 
if (!empty($post_prev)) {
    ?>
		
		<a class="post-prev"
		href="<?php 
    echo post_permalink($post_prev->ID);
    ?>
"
		style="background-image:url(<?php 
    the_post_thumbnail_src($post_prev);
    ?>
);">
			<div class="c">
				<h4><?php 
    echo $post_prev->post_title;
    ?>
</h4>
				<p class="icon">
					<span data-icon="next"></span>
				</p>
			</div>
		</a>
		
	<?php 
}