<?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 lively
 */

?>
</div> <!-- End Row -->
</div> <!-- End Container -->
<?php if ( is_active_sidebar( 'footer-1' ) || is_active_sidebar( 'footer-2' ) ) : ?>
<!-- Footer -->
<footer id="footer" class="footer">
    <div class="container">
        <div class="row">
            <div class="col-lg-9 offset-lg-3">
                <div class="footer-inner">
                    <div class="row">
                        <?php if ( is_active_sidebar( 'footer-1' ) ) : ?>
                        <div class="col-sm-6">
                            <?php dynamic_sidebar( 'footer-1' ); ?>
                        </div>
                        <?php endif; ?>
                        <?php if ( is_active_sidebar( 'footer-2' ) ) : ?>
                        <div class="col-sm-6">
                            <?php dynamic_sidebar( 'footer-2' ); ?>
                        </div>
                        <?php endif; ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</footer>
<!-- End Footer -->
<?php endif; ?>
<?php wp_footer(); ?>
</body>
</html>