<?php
/**
 * The template for displaying the footer.
 *
 *
 * @package Kage
 */
?>
		<footer id="footer" class="clearfix">
			<div class="footer_block">
				<div class="container columnwrapp clearfix">
					<div class="column3">
						<div class="gutter">
							<?php if ( is_active_sidebar('footer-widget-area-1') ) : ?>
							<?php dynamic_sidebar('footer-widget-area-1'); ?>
							<?php else : ?>	
								<aside class="widget">
									<h3 class="widget-title"><?php _e( 'Недавние записи', "kage" ); ?></h3>
									<ul>
										<?php wp_get_archives('type=postbypost&limit=10'); ?>
									</ul>
								</aside>
							<?php endif; ?>
						</div>	
					</div>
					<div class="column3">
						<div class="gutter">
							<?php if ( is_active_sidebar('footer-widget-area-2') ) : ?>
							<?php dynamic_sidebar('footer-widget-area-2'); ?>
							<?php else : ?>	
								<aside class="widget">
									<h3 class="widget-title"><?php _e( 'Облако тегов', "kage" ); ?></h3>
									<div class="tagcloud">
										<?php wp_tag_cloud(); ?>
									</div>
								</aside>
							<?php endif; ?>
						</div>	
					</div>
					<div class="column3">
						<div class="gutter">
							<?php if ( is_active_sidebar('footer-widget-area-3') ) : ?>
							<?php dynamic_sidebar('footer-widget-area-3'); ?>
							<?php else : ?>	
								<aside class="widget">
									<h3 class="widget-title"><?php _e( 'Страницы', "kage" ); ?></h3>
									<ul>
										<?php wp_list_pages('title_li='); ?>
									</ul>
								</aside>
							<?php endif; ?>
						</div>	
					</div>
				</div>
			</div>
			<div class="copyright_block">
				<div class="container">
					<div class="gutter clearfix">
						<p class="copyright">Все права защищены ©</p>
						<p class="designby"><a href="http://www.wptheme.us/">Русские темы wordpress</a></p>
					</div>
				</div>
			</div>
		</footer>
	</div>
<?php wp_footer(); ?>		
</body>
</html>