<?php
/**
 * Displays footer site info
 */

?>
<?php if( get_theme_mod( 'katib_writers_hide_show_scroll',true) != '' || get_theme_mod( 'katib_writers_enable_disable_scrolltop',true) != '') { ?>
    <?php $katib_writers_theme_lay = get_theme_mod( 'katib_writers_footer_options','Right');
        if($katib_writers_theme_lay == 'Left align'){ ?>
            <a href="#" class="scrollup left"><i class="<?php echo esc_attr(get_theme_mod('katib_writers_scroll_icon_changer','fas fa-long-arrow-alt-up')); ?>"></i><span class="screen-reader-text"><?php esc_html_e( 'Scroll Up', 'katib-writers' ); ?></span></a>
        <?php }else if($katib_writers_theme_lay == 'Center align'){ ?>
            <a href="#" class="scrollup center"><i class="<?php echo esc_attr(get_theme_mod('katib_writers_scroll_icon_changer','fas fa-long-arrow-alt-up')); ?>"></i><span class="screen-reader-text"><?php esc_html_e( 'Scroll Up', 'katib-writers' ); ?></span></a>
        <?php }else{ ?>
            <a href="#" class="scrollup"><i class="<?php echo esc_attr(get_theme_mod('katib_writers_scroll_icon_changer','fas fa-long-arrow-alt-up')); ?>"></i><span class="screen-reader-text"><?php esc_html_e( 'Scroll Up', 'katib-writers' ); ?></span></a>
    <?php }?>
<?php }?>
<div class="site-info">
  <div class="container">
    <div class="row">
    	<div class="col-lg-4 col-md-12 col-12"><?php katib_writers_credit(); ?> <?php echo esc_html(get_theme_mod('katib_writers_footer_text',__('By Themescaliber','katib-writers'))); ?> </div>
        <div class="socialicons col-lg-4 col-md-12 col-12">   
            <?php if( get_theme_mod('katib_writers_show_hide_footer_social_icon',true) != ''){ ?>                   
                <?php if( get_theme_mod( 'katib_writers_footer_facebook_url' ) != '' && get_theme_mod('katib_writers_footer_facebook_icon') != 'None') { ?>
                    <a target="_blank" href="<?php echo esc_url( get_theme_mod( 'katib_writers_footer_facebook_url','' ) ); ?>"><i class="<?php echo esc_attr(get_theme_mod('katib_writers_footer_facebook_icon', 'fab fa-facebook-f')); ?>"></i><span class="screen-reader-text"><?php esc_html_e( 'Facebook','katib-writers' );?></span></a>
                <?php } ?>
                <?php if( get_theme_mod( 'katib_writers_footer_twitter_url' ) != '' && get_theme_mod('katib_writers_footer_twitter_icon') != 'None') { ?>
                    <a target="_blank" href="<?php echo esc_url( get_theme_mod( 'katib_writers_footer_twitter_url','' ) ); ?>"><i class="<?php echo esc_attr(get_theme_mod('katib_writers_footer_twitter_icon', 'fab fa-twitter')); ?>"></i><span class="screen-reader-text"><?php esc_html_e( 'Twitter','katib-writers' );?></span></a>
                <?php } ?>
                <?php if( get_theme_mod( 'katib_writers_footer_instagram_url' ) != '' && get_theme_mod('katib_writers_footer_instagram_icon') != 'None') { ?>
                    <a target="_blank" href="<?php echo esc_url( get_theme_mod( 'katib_writers_footer_instagram_url','' ) ); ?>"><i class="<?php echo esc_attr(get_theme_mod('katib_writers_footer_instagram_icon','fab fa-instagram')); ?>"></i><span class="screen-reader-text"><?php esc_html_e( 'Instagram','katib-writers' );?></span></a>
                <?php } ?>
                <?php if( get_theme_mod( 'katib_writers_footer_linkedin_url' ) != '' && get_theme_mod('katib_writers_footer_linkedin_icon') != 'None') { ?>
                    <a target="_blank" href="<?php echo esc_url( get_theme_mod( 'katib_writers_footer_linkedin_url','' ) ); ?>"><i class="<?php echo esc_attr(get_theme_mod('katib_writers_footer_linkedin_icon','fab fa-pinterest-p')); ?>"></i><span class="screen-reader-text"><?php esc_html_e( 'linkedin','katib-writers' );?></span></a>
                <?php } ?>
            <?php } ?>                          
        </div>	
        <div class="footer_text col-lg-4 col-md-12 col-12"><?php echo esc_html_e('Powered By WordPress','katib-writers') ?></div>
    </div>
  </div>
</div>