<?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 United Blog
 */
?>
</div><!-- #content -->
<?php get_template_part('template-parts/widget-area/footer-fullwidth-top'); ?>
<footer id="colophon" class="site-footer">
    <?php get_template_part('template-parts/footer/footer-widgetarea'); ?>
    <div class="site-info">
        <div class="wrapper">
            <div class="row row-align-cneter">
                <div class="column-sm-12 column-md-8">
                    <div class="copyright-info">
                        <?php
                        $pb_copyright_text = united_blog_get_option('copyright_text');
                        if (!empty ($pb_copyright_text)) {
                            echo wp_kses_post(united_blog_get_option('copyright_text'));
                        }
                        ?>
                        <?php printf(esc_html__('Theme: %1$s by %2$s.', 'united-blog'), 'United Blog', '<a href="https://unitedtheme.com">Unitedtheme</a>');
                        ?>
                    </div>
                </div>
                <div class="column-sm-12 column-md-4">
                <?php 
                    $enable_footer_social_menu = united_blog_get_option('enable_footer_social_menu');
                    $footer_social_menu_display = united_blog_get_option('footer_social_menu_display');
                    if (!empty($enable_footer_social_menu) && has_nav_menu('social')) {
                        ?>
                        <nav aria-label="<?php esc_attr_e('Expanded Social links', 'united-blog'); ?>">
                            <ul class="social-menu footer-social-menu reset-list-style <?php echo esc_attr($footer_social_menu_display); ?>">
                                <?php
                                wp_nav_menu(
                                    array(
                                        'theme_location' => 'social',
                                        'container' => '',
                                        'items_wrap' => '%3$s',
                                        'depth' => 1,
                                        'link_before' => '<span class="screen-reader-text">',
                                        'link_after' => '</span>',
                                        'fallback_cb' => '',
                                    )
                                );
                                ?>
                            </ul>
                        </nav>
                    <?php
                    }
                    ?>
                </div>
            </div>
        </div>
    </div>
</footer>
<?php get_template_part('template-parts/widget-area/footer-fullwidth-bottom'); ?>
<button class="scroll-up">
    <span class="screen-reader-text"><?php _ex('Scroll up', 'scroll text', 'united-blog'); ?></span>
    <?php united_blog_the_theme_svg('chevron-up'); ?>
</button>
</div>
<?php wp_footer(); ?>
</body>
</html>
