    </div><!-- #content -->

    <footer id="colophon" class="footer-side">
        <div class="footer-widget">
            <div class="container">
                <?php
                // Count active footer sidebars for responsive column classes.
                $nxt_event_planner_active_sidebars = 0;
                for ( $nxt_event_planner_i = 1; $nxt_event_planner_i <= 4; $nxt_event_planner_i++ ) {
                    if ( is_active_sidebar( "footer{$nxt_event_planner_i}-sidebar" ) ) {
                        $nxt_event_planner_active_sidebars++;
                    }
                }
                $nxt_event_planner_any_sidebar_active = $nxt_event_planner_active_sidebars > 0;
                ?>
                <div class="footer-row" data-columns="<?php echo esc_attr( $nxt_event_planner_any_sidebar_active ? $nxt_event_planner_active_sidebars : 4 ); ?>">
                    <?php for ( $nxt_event_planner_i = 1; $nxt_event_planner_i <= 4; $nxt_event_planner_i++ ) : ?>
                        <?php if ( $nxt_event_planner_any_sidebar_active && ! is_active_sidebar( "footer{$nxt_event_planner_i}-sidebar" ) ) { continue; } ?>
                        <div class="footer-area">
                            <?php if ( $nxt_event_planner_any_sidebar_active ) : ?>
                                <?php dynamic_sidebar( "footer{$nxt_event_planner_i}-sidebar" ); ?>
                            <?php elseif ( 1 === $nxt_event_planner_i ) : ?>
                                <aside role="complementary" id="footer-search" class="sidebar-widget">
                                    <h3 class="title"><?php esc_html_e( 'Search', 'nxt-event-planner' ); ?></h3>
                                    <?php get_search_form(); ?>
                                </aside>
                            <?php elseif ( 2 === $nxt_event_planner_i ) : ?>
                                <aside role="complementary" id="footer-archives" class="sidebar-widget">
                                    <h3 class="title"><?php esc_html_e( 'Archives', 'nxt-event-planner' ); ?></h3>
                                    <ul>
                                        <?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>
                                    </ul>
                                </aside>
                            <?php elseif ( 3 === $nxt_event_planner_i ) : ?>
                                <aside role="complementary" id="footer-meta" class="sidebar-widget">
                                    <h3 class="title"><?php esc_html_e( 'Meta', 'nxt-event-planner' ); ?></h3>
                                    <ul>
                                        <?php wp_register(); ?>
                                        <li><?php wp_loginout(); ?></li>
                                        <?php wp_meta(); ?>
                                    </ul>
                                </aside>
                            <?php elseif ( 4 === $nxt_event_planner_i ) : ?>
                                <aside role="complementary" id="footer-categories" class="sidebar-widget">
                                    <h3 class="title"><?php esc_html_e( 'Categories', 'nxt-event-planner' ); ?></h3>
                                    <ul>
                                        <?php wp_list_categories( 'title_li=' ); ?>
                                    </ul>
                                </aside>
                            <?php endif; ?>
                        </div>
                    <?php endfor; ?>
                </div>
            </div>
        </div>

        <div class="footer-copyright">
            <div class="container">
                <div class="site-info">
                    <p>&copy; <?php echo esc_html( wp_date( 'Y' ) ); ?> <?php bloginfo( 'name' ); ?></p>
                    <p>
                        <?php
                        $nxt_event_planner_theme_data  = wp_get_theme();
                        $nxt_event_planner_author_uri  = $nxt_event_planner_theme_data->get( 'AuthorURI' );
                        $nxt_event_planner_author_name = $nxt_event_planner_theme_data->get( 'Author' );

                        $nxt_event_planner_author_link = '<a href="' . esc_url( $nxt_event_planner_author_uri ) . '">' . esc_html( $nxt_event_planner_author_name ) . '</a>';
                        $nxt_event_planner_theme_name  = '<a href="' . esc_url( 'https://novexthemes.com/product/event-planner-wordpress-theme/?utm_source=wordpress&utm_medium=theme&utm_campaign=free_theme_footer' ) . '" target="_blank" rel="noopener">' . esc_html( $nxt_event_planner_theme_data->get( 'Name' ) ) . '</a>';

                        printf(
                            wp_kses_post( __( 'Theme %1$s by %2$s', 'nxt-event-planner' ) ),
                            '<strong>' . $nxt_event_planner_theme_name . '</strong>',
                            $nxt_event_planner_author_link
                        );
                        ?>
                    </p>
                </div>
            </div>
        </div>
    </footer>
</div><!-- #page -->

<?php wp_footer(); ?>
</body>
</html>
