1<?php flat_hook_sidebar_before(); ?>
2					<div id="main-sidebar" class="widget-area" role="complementary">
3						<?php flat_hook_sidebar_top(); ?>
4<?php if ( ! dynamic_sidebar( 'sidebar-1' ) ) : ?>
5
6						<aside id="archives" class="widget">
7							<h3 class="widget-title"><?php _e( 'Archives', 'flat' ); ?></h3>
8							<ul>
9								<?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>
10							</ul>
11						</aside>
12
13						<aside id="meta" class="widget">
14							<h3 class="widget-title"><?php _e( 'Meta', 'flat' ); ?></h3>
15							<ul>
16								<?php wp_register(); ?>
17								<li><?php wp_loginout(); ?></li>
18								<?php wp_meta(); ?>
19							</ul>
20						</aside>
21
22<?php endif; ?>
23						<?php flat_hook_sidebar_bottom(); ?>
24					</div>
25<?php flat_hook_sidebar_after(); ?>