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

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

	<footer id="colophon" class="site-footer">
		<?php if ( is_active_sidebar( 'sidebar-2' ) || is_active_sidebar( 'sidebar-3' ) || is_active_sidebar( 'sidebar-4' ) ) : ?>
			<div id="footer-widgets" class="container">
				<?php get_template_part( 'inc/footer', 'widgets' ); ?>
			</div><!-- .container -->
		<?php endif; ?>

		<div class="site-info">
			<div class="container">
				<?php
				$copyright_text = sprintf(
					__( 'Copyright © 2026. All rights reserved. Theme Rubik News by %s', 'rubik-news' ),
					'<a target="_blank" rel="designer noopener noreferrer" href="' . esc_url( 'https://kantipurthemes.com/' ) . '">' . esc_html__( 'Kantipur Themes', 'rubik-news' ) . '</a>'
				);

				echo wp_kses_post( $copyright_text );
				?>
			</div><!-- .container -->
		</div><!-- .site-info -->
	</footer><!-- #colophon -->

	<?php if ( get_theme_mod( 'enable_scroll_to_top', true ) ) : ?>
		<a href="#page" class="to-top"></a>
	<?php endif; ?>

</div><!-- #page -->

<?php wp_footer(); ?>

</body>
</html>