<?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 vastnews
 */

$copyright  =  get_theme_mod( 'vastnews_copyright_txt',  'All right reserve');
?>

	<footer id="colophon" class="site-footer">
		<div class="theme-wrapper">
			<?php if ( is_active_sidebar( 'footer-1' ) || is_active_sidebar( 'footer-2' ) ||is_active_sidebar( 'footer-3' ) ||  is_active_sidebar( 'footer-4' ) ) { 
				?>
				 <div class="footer-widgets-wrapper">
					<div class="footer-widgets-one">
						<?php dynamic_sidebar( 'footer-1' ); ?>
					</div>
					<div class="footer-widgets-two">
						<?php dynamic_sidebar( 'footer-2' ); ?>
					</div>
					<div class="footer-widgets-three">
						<?php dynamic_sidebar( 'footer-3' ); ?>			
					</div>
					<div class="footer-widgets-four">
						<?php dynamic_sidebar( 'footer-4' ); ?>			
					</div>
				</div>
				 <?php 
			} ?>
			<div class="site-info">
				<a href="<?php echo esc_url( __( 'https://wordpress.org/', 'vastnews' ) ); ?>">
					<?php
					/* translators: %s: CMS name, i.e. WordPress. */
					printf( esc_html__( 'Proudly powered by %s', 'vastnews' ), 'WordPress' );
					?>
				</a>
				<span class="sep"> | </span>

					<?php echo esc_html( $copyright ); ?>

			</div><!-- .site-info -->
		</div>
	</footer><!-- #colophon -->
	<button class="topbutton"><i class="fas fa-chevron-up" style="font-size:30px"></i></button>
</div><!-- #page -->

<?php wp_footer(); ?>

</body>
</html>


