<?php buildark_bunch_global_variable(); 
	$options = _WSH()->option();
	get_header(); 
	$settings  = _WSH()->option(); 
	if(buildark_set($_GET, 'layout_style')) $layout = buildark_set($_GET, 'layout_style'); else
	$layout = buildark_set( $settings, 'author_page_layout', 'right' );
	$sidebar = buildark_set( $settings, 'author_page_sidebar', 'blog-sidebar' );
	$view = buildark_set( $settings, 'author_page_view', 'list' );
	_WSH()->page_settings = array('layout'=>$layout, 'sidebar'=>$sidebar);
	$classes = ( !$layout || $layout == 'full' || buildark_set($_GET, 'layout_style')=='full' ) ? ' col-lg-12 col-md-12 col-sm-12 col-xs-12 ' : ' content-side col-lg-8 col-md-8 col-sm-12 col-xs-12 ' ;
	$title = buildark_set($settings, 'author_page_header_title');
	$desc = buildark_set($settings, 'author_page_header_description');
?>
<!--Page Title-->
<section class="page-title">
	<div class="auto-container">
		<h1><?php if($title) echo wp_kses_post($title); else wp_title('');?></h1>
		<div class="text"><?php echo wp_kses_post( $desc );  ?></div>
	</div>
</section>
<!--End Page Title-->

<!--Page Info-->
<section class="page-info">
	<div class="auto-container">
		<?php echo wp_kses_post(buildark_get_the_breadcrumb()) ?>
	</div>
</section>
<!--End Page Info-->

<!--Sidebar Page-->
<div class="sidebar-page-container">
    <div class="auto-container">
        <div class="row clearfix">
            
            <!-- sidebar area -->
			<?php if( $layout == 'left' ): ?>
				<?php if ( is_active_sidebar( $sidebar ) ) : ?>
					<div class="sidebar-side col-lg-4 col-md-4 col-sm-12 col-xs-12">        
						<aside class="sidebar default-sidebar">
							<?php dynamic_sidebar( $sidebar ); ?>
						</aside>
					</div>
				<?php endif; ?>
			<?php endif; ?>
            
            <!--Content Side-->	
            <div class="<?php echo esc_attr($classes);?>">
                
                <!--Default Section-->
                <div class="blog-classic">
                    <!--Blog Post-->
                    <div class="thm-unit-test">
                    <?php while( have_posts() ): the_post();?>
                    	<div class="news-style-two">
							<!-- blog post item -->
							<!-- Post -->
							<div id="post-<?php the_ID(); ?>" <?php post_class();?>>
								<?php get_template_part( 'blog' ); ?>
							<!-- blog post item -->
							</div><!-- End Post -->
						</div>
					<?php endwhile;?>
                    </div>
                    <br><br>
                    <!--Pagination-->
                   <div class="styled-pagination">
						<?php buildark_the_pagination(); ?>
					</div>
                </div>
            </div>
            <!--Content Side-->
            
            <!--Sidebar-->	
            <!-- sidebar area -->
			<?php if( $layout == 'right' ): ?>
				<?php if ( is_active_sidebar( $sidebar ) ) : ?>
					<div class="sidebar-side col-lg-4 col-md-4 col-sm-12 col-xs-12">        
						<aside class="sidebar default-sidebar">
							<?php dynamic_sidebar( $sidebar ); ?>
						</aside>
					</div>
				<?php endif; ?>
			<?php endif; ?>
            <!--Sidebar-->
        </div>
    </div>
</div>

<?php get_footer(); ?>