<?php get_header(); ?>
<body <?php body_class(); ?>>
<div id="options" class="<?php $options = get_option('myd_theme_options'); if (!empty($options[layout])) { echo esc_html($options[layout]); } else { echo 'c2r'; } ?> <?php $options = get_option('myd_theme_options');echo esc_html($options['background_color_tone']);?>" >
	<?php get_template_part( 'banner' ); ?>

	<div class="l-container" id="container">
		<?php if(is_front_page()): ?><?php {dynamic_sidebar('bigbanner_top');}?><?php endif; ?>

		<div class="l-main_sidebar1">
			<div class="l-main main" id="main" role="main">
				<?php if(is_front_page()): ?><?php {dynamic_sidebar('top_main_top');}?><?php endif; ?>

				<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
				<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
					<header class="entry-header">
						<h1 itemprop="headline"><span class="entry-title"><?php the_title(); ?></span></h1>
					</header>
					<section class="entry-content" itemprop="articleBody">
						<div class="post-thumbnail">
							<?php if (has_post_thumbnail()) { the_post_thumbnail(); } ?>
						</div>
						<?php the_content(); ?>
						<?php wp_link_pages(); ?>
					</section>

					<?php comments_template('', true); ?>
				</article>
				<?php endwhile; endif; ?>

				<?php if(is_front_page()): ?><?php {dynamic_sidebar('top_main_bottom');}?><?php endif; ?>
			</div>

			<?php get_sidebar('1'); ?>
		</div>

		<?php get_sidebar('2'); ?>

		<?php if(is_front_page()): ?><div class="main" style="clear:both;margin:20px auto;"><?php {dynamic_sidebar('bigbanner_bottom');}?></div><?php endif; ?>

	</div>
	<?php get_footer(); ?>