<?php

require_once 'inc/walker-nav-menu.php';

?>
    </div><!-- .content -->

    <footer>
        <div class="cont">
            <div class="footer-right">
                <?php if (has_nav_menu('bottom')) {
                        wp_nav_menu([
                            'menu' => 'bottom',
                            'menu_class' => 'nav',
                            'container' => 'div',
                            'container_class' => 'footer-menu',
                            'depth' => 1,
                            'walker' => new LawCarta_Walker_Nav_Menu(),
                            'theme_location' => 'bottom',
                        ]);
                    }
                    if (has_nav_menu('social')) {
                        wp_nav_menu([
                            'menu' => 'social',
                            'menu_class' => 'nav',
                            'container' => 'div',
                            'container_class' => 'footer-social',
                            'depth' => 1,
                            'walker' => new LawCarta_Walker_Nav_Menu(),
                            'hide_title' => true,
                            'item_wrap' => '',
                            'items_wrap' => '%3$s',
                            'theme_location' => 'social',
                        ]);
                    }
                ?>
            </div>
            <div class="footer-copyright">&copy; <?= get_option('lawcarta_company'); ?>. All rights reserved.</div>
        </div>
    </footer>

</div><!-- .wrapper -->

<?php wp_footer(); ?>

</body>
</html>