<?php
/**
 * The template for displaying the footer
 *
 * Contains the closing of the #content div and all content after
 *
 * @package Wrock Metro
 */

// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;

$container = get_theme_mod( 'wrockmetro_container_type' );
// Hook the display function to a relevant part of your template
// For example, you can use 'wp_footer' or another appropriate hook
?>
</div>
<?php get_template_part( 'sidebar-templates/sidebar', 'footerfull' ); ?>

<?php if (get_theme_mod('wrockmetro_backtotop') !== 'disable') { ?>
	<a href="#" class="scrollup backtoup"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" class="bi bi-chevron-up" viewBox="0 0 16 16">
  <path fill-rule="evenodd" d="M7.646 4.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 5.707l-5.646 5.647a.5.5 0 0 1-.708-.708l6-6z"/>
</svg><a>
<?php } ?>
<div class="wrapper" id="wrapper-footer">
	<div class="<?php echo esc_attr( $container ); ?>">
		<div class="row">
			<div class="col-md-6">
				<footer class="site-footer" id="colophon" role="contentinfo" <?php wrockmetro_get_schema( 'footer' );?>>
					<div class="site-info">
						<?php wrockmetro_site_info(); ?>
					</div><!-- .site-info -->
				</footer><!-- #colophon -->
			</div><!-- col -->
			<div class="col-md-6">
				<?php wp_nav_menu( array( 'theme_location' => 'footer-menu','container_class' => '','menu_id' => 'footerhorizontal',    'echo' => true,'depth' =>'1','fallback_cb' => false ) ); ?>	
			</div><!-- col -->
		</div><!-- .row -->
	</div><!-- .container(-fluid) -->
</div><!-- #wrapper-footer -->
<?php if(get_theme_mod('wrockmetro_header_style')=='stylethree') { ?>
<div class=" offcanvas offcanvas-start" data-bs-scroll="true" data-bs-backdrop="false" tabindex="-1" id="offcanvasScrolling" aria-labelledby="offcanvasScrollingLabel">
  <div class="offcanvas-header">  
    <button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="Close"></button>
  </div>
  <div class="offcanvas-body">
    <?php
			wp_nav_menu(
				array(
					'theme_location'  => 'primary',
					'container_id'    => '',
					'menu_class'      => 'navbar-nav flex-grow-1 pe-3',
					'fallback_cb'     => '',
					'menu_id'         => 'main-menu',
					'depth'           => 2,
					'walker'          => new wrockmetro_WP_Bootstrap_Navwalker(),
				)
			);
			?>
  </div>
</div> <?php } ?>

</div><!-- #page -->
<!-- Default dropright button -->
<?php wp_footer(); ?>
</body>
</html>

