<?php get_header(); ?>
<div class="row">
	<section class="blog-section small-12 medium-8 columns">
		<section id="authorpage" class="authorpage">
			<?php $author = get_user_by( 'slug', get_query_var( 'author_name' ) ); do_action('thb_author',$author->ID); ?>
		</section>
		<div class="row">
			<div class="small-12 columns">
				<?php if (have_posts()) :  while (have_posts()) : the_post(); ?>
					<?php get_template_part( 'inc/loop/style1' ); ?>
				<?php endwhile; else : ?>
				  	<?php get_template_part( 'inc/loop/notfound' ); ?>
				<?php endif; ?>
			</div>
		</div>
		<?php if ( get_next_posts_link() || get_previous_posts_link()) { ?>
		<div class="blog_nav">
			<?php if ( get_next_posts_link() ) : ?>
				<a href="<?php echo next_posts(); ?>" class="next"><i class="fa fa-angle-left"></i> <?php _e( 'Older Posts', 'thevoux' ); ?></a>
			<?php endif; ?>
		
			<?php if ( get_previous_posts_link() ) : ?>
				<a href="<?php echo previous_posts(); ?>" class="prev"><?php _e( 'Newer Posts', 'thevoux' ); ?> <i class="fa fa-angle-right"></i></a>
			<?php endif; ?>
		</div>
		<?php } ?>
	</section>
	<?php get_sidebar('author'); ?>
</div>
<?php get_footer(); ?>