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

	<footer id="colophon" class="site-footer" role="contentinfo">
		<div class="row">			
			<?php if( xbox_get_field_value( 'wpst-options', 'footer-ad-mobile' ) != '' ) : ?>
				<div class="footer-ad-mobile">
					<?php echo wpst_render_shortcodes( xbox_get_field_value( 'wpst-options', 'footer-ad-mobile' ) ); ?>
				</div>
			<?php endif; ?>
			<?php if( xbox_get_field_value( 'wpst-options', 'footer-ad-desktop' ) != '' ) : ?>
				<div class="footer-ad">
					<?php echo wpst_render_shortcodes( xbox_get_field_value( 'wpst-options', 'footer-ad-desktop' ) ); ?>
				</div>
			<?php endif; ?>

			<?php if ( function_exists('dynamic_sidebar') && is_active_sidebar('footer') ) : ?>
				<div class="<?php echo xbox_get_field_value( 'wpst-options', 'footer-columns' ); ?>">
					<?php dynamic_sidebar('footer'); ?>
				</div>
			<?php endif; ?>

			<div class="clear"></div>			

			<?php if ( xbox_get_field_value( 'wpst-options', 'logo-footer' ) == 'on' ) : ?>
				<div class="logo-footer">
					<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home" title="<?php echo get_bloginfo( 'name' ); ?>"><img class="grayscale" src="<?php echo xbox_get_field_value( 'wpst-options', 'image-logo-file' ); ?>" alt="<?php echo get_bloginfo( 'name' ); ?>"></a>
				</div>
			<?php endif; ?>

			<?php if ( has_nav_menu( 'wpst-footer-menu' ) ) : ?>
				<div class="footer-menu-container">				
					<?php wp_nav_menu( array( 'theme_location' => 'wpst-footer-menu' ) ); ?>
				</div>			
			<?php endif; ?>

			<?php if( xbox_get_field_value( 'wpst-options', 'copyright-bar' ) == 'on' ) : ?>
				<div class="site-info">
					<?php echo xbox_get_field_value( 'wpst-options', 'copyright-text' ); ?>
				</div><!-- .site-info -->
			<?php endif; ?>
		
		</div>
	</footer><!-- #colophon -->
</div><!-- #page -->

<a href="#" id="back-to-top" title="Back to top"><i class="fa fa-chevron-up"></i></a>

<?php wp_footer(); ?>

<!-- Other scripts -->
<?php if( !wp_is_mobile() && xbox_get_field_value( 'wpst-options', 'other-scripts' ) != '') {
	echo xbox_get_field_value( 'wpst-options', 'other-scripts' );
} ?>

<!-- Mobile scripts -->
<?php if( wp_is_mobile() && xbox_get_field_value( 'wpst-options', 'mobile-scripts' ) != '') {
	echo xbox_get_field_value( 'wpst-options', 'mobile-scripts' );
} ?>

</body>
</html>