</main><!-- #main -->

<footer id="site-footer" class="easysite-footer<?php echo easysite_ve_active() ? ' esb-ve-region' : ''; ?>"<?php echo easysite_ve_active() ? ' data-esb-region="footer"' : ''; ?>>
	<div class="easysite-container">
		<?php
		if ( easysite_is_bundle() || easysite_ve_active() ) {
			if ( easysite_ve_active() && ! get_theme_mod( 'easysite_footer_builder_layout' ) ) {
				set_theme_mod( 'easysite_footer_builder_layout', array(
					'columns' => 3,
					'blocks'  => array( 'text', 'menu', 'social' ),
				) );
			}
			easysite_render_footer_builder();
		} else {
			if ( is_active_sidebar( 'sidebar-footer' ) ) {
				echo '<div class="easysite-footer-widgets">';
				dynamic_sidebar( 'sidebar-footer' );
				echo '</div>';
			}
		}
		?>

		<div class="easysite-footer-bottom">
			<?php easysite_social_links(); ?>
			<p class="easysite-footer-text<?php echo easysite_ve_active() ? ' esb-ve-region-el' : ''; ?>" <?php echo easysite_ve_active() ? 'contenteditable="true" data-esb-region-field="footer_text" data-esb-type="text"' : ''; ?>><?php echo esc_html( easysite_get_mod( 'easysite_footer_text', '© ' . get_bloginfo( 'name' ) ) ); ?></p>
			<?php
			wp_nav_menu( array(
				'theme_location' => 'footer',
				'menu_class'     => 'easysite-footer-menu',
				'container'      => false,
				'depth'          => 1,
				'fallback_cb'    => false,
			) );
			?>
		</div>
	</div>
</footer>

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