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

    if (is_active_sidebar('footer-1') || is_active_sidebar('footer-2') || is_active_sidebar('footer-3')) {
?>
    <!-- Footer -->
    <footer id="footer" class="footer">
        <div class="container">
            <div class="row">
                <div class="col-12">
                    <div class="footer-inner">
                        <div class="row">
                            <?php
                                if (is_active_sidebar('footer-1')) {
                            ?>
                                <div class="col-sm-4">
                                    <?php dynamic_sidebar( 'footer-1' ); ?>
                                </div>
                            <?php
                            } if (is_active_sidebar('footer-2')) {
                            ?>
                            <div class="col-sm-4">
                                <?php dynamic_sidebar( 'footer-2' ); ?>
                            </div>
                            <?php
                            } if (is_active_sidebar('footer-3')) {
                            ?>
                            <div class="col-sm-4">
                                <?php dynamic_sidebar( 'footer-3' ); ?>
                            </div>
                            <?php } ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </footer>
    <!-- End Footer -->
    <?php
} ?>

<?php wp_footer(); ?>
</div><!-- End Page Wrapper -->

</body>
</html>