<?php @session_start();
get_includes('head');
get_includes('header');
get_includes('nav');
get_includes('banner');
?>
<!-- Main -->
<div id="main_area">
	<div class="wrapper">
		<div class="main_con">
			<?php if(!is_front_page()) { ?>
			<?php if ( function_exists('yoast_breadcrumb') ) {
			yoast_breadcrumb( '<p id="breadcrumbs">','</p>' );
			}
			?>
			<?php }?>

			<?php if(is_front_page()) { ?>
			<figure><img src="<?php bloginfo('template_url'); ?>/images/main-image.jpg" alt="a group of girls in the office"/></figure>
			<?php }?>

			<main>
				<?php get_template_part('loop','single');?>
				</main>
			
			<?php if(is_front_page()) { ?>
			<aside class="sidebar">
				<div class="side_box1">
					<ul>
						<li>
							<?php dynamic_sidebar('main_box1'); ?>
						</li>
						<li>
							<?php dynamic_sidebar('main_box2'); ?>
						</li>
						<li>
							<?php dynamic_sidebar('main_box3'); ?>
						</li>
						<li>
							<?php dynamic_sidebar('main_box4'); ?>
						</li>
					</ul>
				</div>
			</aside>
			<?php }?>
		</div>
		<div class="clearfix"></div>
	</div>
</div>
<!-- End Main -->
<?php if ( is_front_page() ) { get_includes('middle'); } ?>
<?php if ( is_front_page() ) { get_includes('bottom'); } ?>
<?php get_includes('footer');?>
