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

?>
</div><!-- .wrap -->
<?php
$go_top = get_theme_mod('disable-go-top',0);
?>
	</div><!-- #content -->
	<?php
	/**
	 * Instagram Feed
	 */
	do_action('freeware_frontend_instagram_feed'); ?>

	<footer id="colophon" class="site-footer" role="contentinfo">

			<?php 
				/**
				 * Footer settings and Options
				 */
				do_action ('freeware_frontend_footer_settings'); 
			?>

		<div class="copyright-area">
			<div class="wrap">
				<div class="site-info">
					<?php if ( !class_exists( 'Freeware_Pro' ) ) { ?>
						<a href="<?php echo esc_url( __( 'https://wordpress.org/', 'freeware' ) ); ?>">
							<?php
							/* translators: %s: CMS name, i.e. WordPress. */
							printf( esc_html__( 'Proudly powered by %s', 'freeware' ), 'WordPress' );
							?>
						</a>
						<span class="sep"> | </span>
							<?php
							/* translators: 1: Theme name, 2: Theme author. */
							printf( esc_html__( 'Theme: %1$s By %2$s.', 'freeware' ), 'Freeware <span class="sep"> | </span> ', '<a href="'.esc_url('https://themefreesia.com/').'">Theme Freesia</a>' );
					} else {
						/**
						 * Footer Copyright
						 */
						do_action ('freeware_footer_copyright_frontend');
					} ?>
				</div><!-- .site-info -->
					<?php
						if ( function_exists( 'the_privacy_policy_link' ) ) { ?>
							<div class="footer-right-info">
								<?php the_privacy_policy_link(); ?>
							</div>
						<?php }
					?>
			</div><!-- .wrap -->
		</div><!-- .copyright-area -->
	</footer><!-- #colophon -->
	<?php if( $go_top !=1 ) {  ?>
		<button href="#" type="button" class="back-to-top"><i class="fa-solid fa-arrow-up-long"></i><?php esc_html_e('Go Top','freeware'); ?></button>
	<?php } ?>
</div><!-- #page -->

<?php wp_footer(); ?>

</body>
</html>
