<?php
/**
 * Footer Style Two
 */
function nextbit_footer_style_2(){
    $nextbit_footer_logo = get_theme_mod( 'nextbit_footer_logo', get_template_directory_uri() . '/assets/images/logo-2.svg' );
    $nextbit_copyright_center = $nextbit_footer_logo ? 'col-lg-4 offset-lg-4 col-md-6 text-right' : 'col-lg-12 text-center';
    $footer_top_switch = get_theme_mod( 'footer_top_switch', false );    
    $nextbit_footer_info_number_icon = get_theme_mod( 'nextbit_footer_info_number_icon', get_template_directory_uri() . '/assets/images/icons/icon-1.png' );
    $nextbit_footer_info_mail_icon = get_theme_mod( 'nextbit_footer_info_mail_icon', get_template_directory_uri() . '/assets/images/icons/icon-2.png' );
    $nextbit_footer_info_address_icon = get_theme_mod( 'nextbit_footer_info_address_icon', get_template_directory_uri() . '/assets/images/icons/icon-3.png' );
    $nextbit_footer_info_number_1 = get_theme_mod( 'nextbit_footer_info_number_1', __('+3453-909-6565', 'nextbit') );
    $nextbit_footer_info_number_2 = get_theme_mod( 'nextbit_footer_info_number_2', __('+3453-909-6565', 'nextbit') );
    $nextbit_footer_info_mail_1 = get_theme_mod( 'nextbit_footer_info_mail_1', __('infoname@gmail.com', 'nextbit') );
    $nextbit_footer_info_mail_2 = get_theme_mod( 'nextbit_footer_info_mail_2', __('infoname@gmail.com', 'nextbit') );
    $nextbit_footer_info_address = get_theme_mod( 'nextbit_footer_info_address', __('503 Old Buffalo Street Northwest #205, New York-3087', 'nextbit') );
?>
    <!-- Main Footer / Style Two -->
    <footer class="main-footer style-two">
        <div class="auto-container">
        <div class="auto-container">
            <div class="widgets-section">
                <?php if(!empty( $footer_top_switch == true )) : ?>
                <?php if(!empty( $nextbit_footer_logo )) : ?>
            	<div class="logo">
					<a href="<?php print esc_url( home_url( '/' ) );?>">
                        <img src="<?php print esc_url($nextbit_footer_logo); ?>" alt="<?php echo esc_attr__('logo', 'nextbit') ?>" />
                    </a>
				</div>
                <?php endif; ?>
                <?php endif; ?>
                <?php if(!empty( $footer_top_switch == true )) : ?>
                <ul class="contact-info-list">

					<li>
                        <?php if(!empty( $nextbit_footer_info_number_icon )) : ?>
						<span class="icon"><img src="<?php echo esc_url($nextbit_footer_info_number_icon); ?>" alt="<?php echo esc_attr__('img', 'nextbit'); ?>" /></span>
                        <?php endif; ?>

                        <?php if(!empty( $nextbit_footer_info_number_1 )) : ?>
						<a href="tel:<?php echo esc_attr($nextbit_footer_info_number_1); ?>"><?php echo esc_html($nextbit_footer_info_number_1); ?></a><br>
                        <?php endif; ?>

                        <?php if(!empty( $nextbit_footer_info_number_2 )) : ?>
						<a href="tel:<?php echo esc_attr($nextbit_footer_info_number_2); ?>"><?php echo esc_html($nextbit_footer_info_number_2); ?></a>
                        <?php endif; ?>
					</li>

					<li>
                        <?php if(!empty( $nextbit_footer_info_mail_icon )) : ?>
						<span class="icon"><img src="<?php echo esc_url($nextbit_footer_info_mail_icon); ?>" alt="<?php echo esc_attr__('img', 'nextbit'); ?>" /></span>
                        <?php endif; ?>

                        <?php if(!empty( $nextbit_footer_info_mail_1 )) : ?>
						<a href="mailto:<?php echo esc_html($nextbit_footer_info_mail_1); ?>"><?php echo esc_html($nextbit_footer_info_mail_1); ?></a><br>
                        <?php endif; ?>

                        <?php if(!empty( $nextbit_footer_info_mail_2 )) : ?>
						<a href="mailto:<?php echo esc_html($nextbit_footer_info_mail_2); ?>"><?php echo esc_html($nextbit_footer_info_mail_2); ?></a>
                        <?php endif; ?>
					</li>
					<li>
                        <?php if(!empty( $nextbit_footer_info_address_icon )) : ?>
						<span class="icon"><img src="<?php echo esc_url($nextbit_footer_info_address_icon); ?>" alt="<?php echo esc_attr__('img', 'nextbit'); ?>" /></span>
                        <?php endif; ?>

                        <?php if(!empty( $nextbit_footer_info_address )) : ?>
						<?php echo nextbit_kses_basic($nextbit_footer_info_address); ?>
                        <?php endif; ?>
					</li>
				</ul>
                
                <!-- Social Box -->
                <?php nextbit_footer_social_profiles(); ?>
                <?php endif; ?>
                
            </div>
            
        </div>
        <!-- Footer Bottom -->
        <div class="footer-bottom">
            <div class="auto-container">
                <div class="copyright"><?php print nextbit_copyright_text(); ?></div>
            </div>
        </div>
    </footer>
    <!-- End Main Footer -->
<?php 
}