<?php
/**
 * The template for displaying the footer.
 *
 * Contains the closing of the #content div and all content after.
 *
 * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
 *
 * @package zillah
 */

?>

			<?php zillah_hook_content_bottom(); ?>
		</div><!-- .container -->
	</div><!-- #content -->
	<?php zillah_hook_content_after(); ?>

	<?php zillah_hook_footer_before(); ?>
	<footer id="colophon" class="site-footer" role="contentinfo">
		<?php zillah_hook_footer_top(); ?>

		<?php if ( is_active_sidebar( 'zillah-footer-widget-area-3' ) || is_active_sidebar( 'zillah-footer-widget-area' ) || is_active_sidebar( 'zillah-footer-widget-area-2' ) ) : ?>

			<div class="container container-footer">

				<div class="footer-inner">
					<div class="row">
						<div class="col-sm-4">
							<?php
							if ( is_active_sidebar( 'zillah-footer-widget-area' ) ) {
								dynamic_sidebar( 'zillah-footer-widget-area' );
							}?>
						</div>

						<div class="col-sm-4">
							<?php
							if ( is_active_sidebar( 'zillah-footer-widget-area-2' ) ) {
								dynamic_sidebar( 'zillah-footer-widget-area-2' );
							} ?>
						</div>

						<div class="col-sm-4">
							<?php
							if ( is_active_sidebar( 'zillah-footer-widget-area-3' ) ) {
								dynamic_sidebar( 'zillah-footer-widget-area-3' );
							} ?>
						</div>
					</div>
				</div>
			</div> <!-- .container-footer -->

		<?php endif; ?>
<!-- -->
		
		
		<?php zillah_hook_footer_bottom(); ?>
	</footer><!-- #colophon -->
	<?php zillah_hook_footer_after(); ?>
</div><!-- #page -->

<?php zillah_hook_body_bottom(); ?>
<?php wp_footer(); ?>

</body>
</html>
