<?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 WordPress
 * @subpackage Twenty_Twenty_One
 * @since Twenty Twenty-One 1.0
 */

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

	<?php //get_template_part( 'template-parts/footer/footer-widgets' ); ?>
<section class="footer">
  <div class="container">

    <div class="row">
      <div class="col-md-4 col-sm-12">
        <div class="footer-image-div">
         <?php
    $custom_secondary_logo_id = get_theme_mod('custom_secondary_logo');
    
    if ($custom_secondary_logo_id) {
        echo wp_get_attachment_image($custom_secondary_logo_id, 'full'); // 'full' can be replaced with the image size you want to display
    }  
    ?>
        </div>

        <address class="footer-para wow fadeInUp">
            <?php $about_footer = get_option('about_footer'); ?>
				 
		<?php if( $about_footer!=''){ ?>  
           <?php echo $about_footer; ?><br> 
          <?php } ?>
            <?php $contact_address = get_option('contact_address'); ?>
				 
		<?php if( $contact_address!=''){ ?>  
          Address: <?php echo $contact_address; ?><br> 
          <?php } ?>
          <?php $contact_phone1 = get_option('contact_number');
		  if($contact_phone1!=''){ ?>
		 Phone:<a href="tel:+<?php echo $contact_phone1; ?>"> <?php echo $contact_phone1; ?></a> <br>
					<?php } ?>
					<?php $contact_mobile1 = get_option('contact_mobile1');
		  if($contact_mobile1!=''){ ?>
		 Mobile:<a href="tel:+<?php echo $contact_mobile1; ?>"> <?php echo $contact_mobile1; ?></a> <br>
					<?php } ?>
          <?php $contact_email = get_option('contact_email');
		    if($contact_email!=''){ ?>
				
				
          Email: 	<a href="mailto:+<?php echo $contact_email; ?>">  <?php echo $contact_email; ?></a><br>
          	<?php } ?>
          </address>
  
        <!-- <p class="footer-para">Address: [Your Physical Address] <br>
          Phone: [Your Contact Number] <br>
          Email: [Your Email Address]</p> -->
      </div>

      <div class="col-md-3 col-sm-12 list-margin wow fadeInUp">
        <h4 class="footer-item-title">Quick Links</h4>
        <?php if ( has_nav_menu( 'footer' ) ) : ?>
			 
				<ul class="footer-navigation-wrapper">
					<?php
					wp_nav_menu(
						array(
							'theme_location' => 'footer',
							'items_wrap'     => '%3$s',
							'container'      => false,
							'depth'          => 1,
							'link_before'    => '<span>',
							'link_after'     => '</span>',
							'fallback_cb'    => false,
						)
					);
					?>
				</ul><!-- .footer-navigation-wrapper -->
			 
		<?php endif; ?>
      </div>
    <div class="col-md-3 col-sm-12 list-margin wow fadeInUp">
        <h4 class="footer-item-title">Programs</h4>
        <?php if ( has_nav_menu( 'program-menu' ) ) : ?>
			 
				<ul class="footer-navigation-wrapper">
					<?php
					wp_nav_menu(
						array(
							'theme_location' => 'program-menu',
							'items_wrap'     => '%3$s',
							'container'      => false,
							'depth'          => 1,
							'link_before'    => '<span>',
							'link_after'     => '</span>',
							'fallback_cb'    => false,
						)
					);
					?>
				</ul><!-- .footer-navigation-wrapper -->
			 
		<?php endif; ?>
      </div>

      <div class="col-md-2 col-sm-12">
        <div class="social-media-outer d-flex">
         <?php $facebook_url = get_option('facebook_url');
			if($facebook_url!=''){ ?>
		  <a class="wow zoomIn" href="<?php echo $facebook_url; ?>"><i class="fa fa-facebook" aria-hidden="true"></i></a>
		  <?php } ?>
		  <?php $twitter_url = get_option('twitter_url');
			if($twitter_url!=''){ ?>
		  <a class="wow zoomIn" href="<?php echo $twitter_url; ?>"><svg xmlns="http://www.w3.org/2000/svg" height="1em" fill="#a8a8a8" viewBox="0 0 512 512"><!--! Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path d="M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"/></svg></a>
		   <?php } ?>
		   <?php $instagram_url = get_option('instagram_url');
			if($instagram_url!=''){ ?>
		  <a class="wow zoomIn" href="<?php echo $instagram_url; ?>"><i class="fa fa-instagram" aria-hidden="true"></i></a>
		   <?php } ?>
		    <?php $youtube_url = get_option('youtube_url');
			if($youtube_url!=''){ ?>
		  <a class="wow zoomIn" href="<?php echo $youtube_url; ?>"><i class="fa fa-youtube-play" aria-hidden="true"></i></a>
		  <?php } ?>
        </div>
      </div>
    </div>


    <div class="row footer-bottom-margin">
      <div class="col-md-3 col-sm-12">
        <!-- <p class="footer-privacy">Privacy Policy</p> -->
      </div>

      <div class="col-md-3 col-sm-12">
       <!-- <p class="footer-privacy">Terms of Service</p> -->
      </div>

      <div class="col-md-6 col-sm-12">
        <p class="footer-copyright">© 2023 UMAI - United Martial Arts Academy International. All rights reserved.</p>
      </div>

    </div>
    
  </div>
</section>
 

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

<?php wp_footer(); ?>
<script>
     new WOW().init();  
</script>
</body>
</html>
