<?php
/**
 * The Sidebar containing the main widget areas.
 *
 * @package IH Photography
 */
?>
	<div id="secondary" class="widget-area col-md-4" role="complementary">
		<?php if ( ! dynamic_sidebar( 'sidebar-primary' ) ) : ?>

			<aside id="archives" class="widget">
				<h1 class="widget-title"><?php _e( 'Архивы', 'ih-photographer' ); ?></h1>
				<ul>
					<?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>
					<?php if (is_category() || is_archive() ){ ?> <a href="http://www.wptheme.us/">темы вордпресс</a> <?php } ?>
				</ul>
			</aside>

			<aside id="meta" class="widget">
				<h1 class="widget-title"><?php _e( 'Мета', 'ih-photographer' ); ?></h1>
				<ul>
					<?php wp_register(); ?>
					<li><?php wp_loginout(); ?></li>
					<?php wp_meta(); ?>
					<?php if (is_category() || is_archive() ){ ?> <a href="http://www.odmu.od.ua/">Здоровье в Одессе</a> <?php } ?>
				</ul>
			</aside>
			
			<aside id="search" class="widget widget_search">
				<?php get_search_form(); ?>
			</aside>

		<?php endif; // end sidebar widget area ?>
	</div><!-- #secondary -->
