<?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 prime-industry
 */

?>

<footer id="colophon" class="site-footer">
    <div class="footer-widgets-area mt-4 container">

<!-- </?php
 $featured_footer_newsletter_shortcode = get_theme_mod('featured_footer_newsletter_shortcode', 'Add Your Form Shortcode In Customizer');
 $featured_footer_title = prime_industry_get_option('featured_footer_title' , 'Join Our Newsletter Now.');
 ?> -->
             <!-- <div class="row footer-content">
                <div class="col-lg-2 col-12">
                    </?php
      $prime_industry_footer_logo = get_theme_mod('prime_industry_footer_logo');
      echo '<img alt="footer us" class="footer-image1-img" src="' . esc_url($prime_industry_footer_logo ?: get_template_directory_uri() . '/assets/images/footericon.png') . '" />';
      ?>
                </div>
                <div class="col-lg-3 col-12 footer-newsletter-text">
                          <h2>   </?php echo esc_html($featured_footer_title); ?></h2>
                </div>
                <div class="col-lg-7 col-12 footer-shortcode">
                    </?php echo do_shortcode($featured_footer_newsletter_shortcode);?>
                </div>
             </div> -->


        <div>
            <div class="row">
                <div class="col-xl-12 col-lg-12 col-md-12 col-12">

 <?php 
    $footer_sidebar_data = prime_industry_footer_sidebar_class();
    $footer_sidebar = $footer_sidebar_data['active_sidebar'];
    $footer_class = $footer_sidebar_data['class'];

    if ( ! empty( $footer_sidebar ) ) : ?>
        <div class="<?php echo esc_attr( $footer_class ); ?>">
            <?php foreach ( $footer_sidebar as $sidebar ) : ?>
            <div class="hentry">
                <?php dynamic_sidebar( $sidebar ); ?>
            </div>
            <?php endforeach; ?>
        </div>
        <?php endif; ?>
                
                    <div class="site-info mt-4">
                        <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'prime-industry' ) ); ?>">
                            <?php
							/* translators: %s: CMS name, i.e. WordPress. */
							printf( esc_html__( 'Proudly powered by %s', 'prime-industry' ), 'WordPress' );
							?>
                        </a>
                        <span class="sep"> | </span>
                        <?php
							/* translators: 1: Theme name, 2: Theme author. */
							// printf( esc_html__( 'Theme: %1$s by %2$s.', 'prime_industry' ), 'prime-industry', 'prime_industry' );

                             printf(
                  esc_html__('Theme: %1$s by %2$s.', 'prime-industry'),
                  esc_html(get_theme_mod('prime_industry_foot_themename', 'prime-industry')),
                  esc_html(get_theme_mod('prime_industry_foot_poweredby', 'prime_industry'))
              );
							?>
                            
                    </div><!-- .site-info -->
                </div>
            </div>
        </div>
    </div>

    <!-- Scroll to Top Button -->
    <?php if(get_theme_mod('featured_scrooltopbtn_on_off',true) == true ){  ?>
    <div class="scroll-to-top">
        <a href="#" id="scroll-to-top"><i class="fas fa-caret-up"></i></a>
    </div>
    <?php } ?>
</footer><!-- #colophon -->
</div><!-- #page -->

<?php wp_footer(); ?>

</body>

</html>