<?php
/*
Post Template: Full-width
*/
?>
<?php get_header(); ?>
<?php while ( have_posts() ): the_post(); ?>
	
<div class="content">
	<div class="pad group">
		<header class="entry-header">
			<h1 class="entry-title"><?php the_title(); ?></h1>	
			<?php if ( !wpb_option('post-hide-comments-single') ): ?>
				<a class="entry-comments" href="<?php comments_link(); ?>"><i class="icon-comments-alt"></i><?php comments_number( '0', '1', '%' ); ?></a>
			<?php endif; ?>
			<ul class="entry-meta">
				<?php if ( !wpb_option('post-hide-author-single') ): ?><li class="entry-author"><?php _e('by','typegrid'); ?> <?php the_author_posts_link(); ?></li><?php endif; ?>
				<?php if ( !wpb_option('post-hide-categories-single') ): ?><li class="category">In <?php the_category(' &middot; '); ?></li><?php endif; ?>
				<?php if ( !wpb_option('post-hide-date-single') ): ?><li class="date"> &mdash; <?php the_time('j M, Y'); ?> <?php if ( !wpb_option('post-hide-detailed-date') ): ?><?php _e('at','typegrid'); ?> <?php the_time('g:i a'); ?><?php endif; ?></li><?php endif; ?>
				<div class="clear"></div>
			</ul>
		</header>
		<?php if ( get_post_format() ) { get_template_part('partials/post-formats-full'); }; ?>
	</div>
</div><!--/.content-->

<div class="main group">

	<div class="content">
		<div class="pad group">
		
			<article id="entry-<?php the_ID(); ?>" <?php post_class('entry group'); ?>>	

				<div class="entry-part text">
					<?php the_content(); ?>
					<?php wp_link_pages(array('before'=>'<div class="entry-page-links">'.__('Pages:','typegrid'),'after'=>'</div>')); ?>
					<div class="clear"></div>
					<?php get_template_part('partials/sharrre'); ?>
				</div>
				
				<div class="clear"></div>
				
				<?php if ( !wpb_option('post-hide-tags-single') ): // Post Tags ?>
					<?php the_tags('<p class="entry-tags"><span>'.__('Tags:','typegrid').'</span> ','','</p>'); ?>
				<?php endif; ?>

				<?php if ( wpb_option('post-enable-author-block') ): // Post Author Block ?>
					<div class="clear"></div>
					<div class="entry-author-block group">
						<div class="entry-author-avatar"><?php echo get_avatar(get_the_author_meta('user_email'),'160'); ?></div>
						<p class="entry-author-name">&mdash; <?php the_author_meta('display_name'); ?></p>
						<p class="entry-author-description"><?php the_author_meta('description'); ?></p>
					</div>
				<?php endif; ?>
					
			</article>
			
			<?php if ( wpb_option('single-postnav') == '1' ): ?>
			<ul class="entry-browse group">
				<li class="previous"><?php previous_post_link('%link', '<i class="icon-chevron-left"></i><strong>'.__('Previous story', 'typegrid').'</strong> <span>%title</span>'); ?></li>
				<li class="next"><?php next_post_link('%link', '<i class="icon-chevron-right"></i><strong>'.__('Next story', 'typegrid').'</strong> <span>%title</span>'); ?></li>
			</ul>
			<?php endif; ?>

			<?php if ( air_related_posts::get_option('enable') ) { get_template_part('partials/related-posts'); } ?>

			<?php comments_template(); ?>
		
		</div><!--/.pad-->
	</div><!--/.content-->

</div><!--/.main-->

<?php endwhile;?>
<?php get_footer(); ?>