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

?>
<?php if( get_theme_mod( 'print_on_demand_hide_show_scroll',true) != '' || get_theme_mod( 'print_on_demand_enable_disable_scrolltop',true) != '') { ?>
    <?php $print_on_demand_theme_lay = get_theme_mod( 'print_on_demand_footer_options','Right');
        if($print_on_demand_theme_lay == 'Left align'){ ?>
            <a href="#" class="scrollup left"><i class="<?php echo esc_attr(get_theme_mod('print_on_demand_scroll_icon_changer','fas fa-long-arrow-alt-up')); ?>"></i><span class="screen-reader-text"><?php esc_html_e( 'Scroll Up', 'print-on-demand' ); ?></span></a>
        <?php }else if($print_on_demand_theme_lay == 'Center align'){ ?>
            <a href="#" class="scrollup center"><i class="<?php echo esc_attr(get_theme_mod('print_on_demand_scroll_icon_changer','fas fa-long-arrow-alt-up')); ?>"></i><span class="screen-reader-text"><?php esc_html_e( 'Scroll Up', 'print-on-demand' ); ?></span></a>
        <?php }else{ ?>
            <a href="#" class="scrollup"><i class="<?php echo esc_attr(get_theme_mod('print_on_demand_scroll_icon_changer','fas fa-long-arrow-alt-up')); ?>"></i><span class="screen-reader-text"><?php esc_html_e( 'Scroll Up', 'print-on-demand' ); ?></span></a>
    <?php }?>
<?php }?>
<div class="site-info">
    <div class="container">
      <div class="row"> 
    	<div class="col-lg-4 col-md-12 col-12 align-self-center"><?php print_on_demand_credit(); ?> <?php echo esc_html(get_theme_mod('print_on_demand_footer_text',__('By Themescaliber','print-on-demand'))); ?></div>
    	<div class="col-lg-4 col-md-12 col-12 align-self-center">
        <?php if (get_theme_mod('print_on_demand_show_footer_social_icon', true)){ ?>  
        <div class="socialicons">                      
            <?php if(get_theme_mod('print_on_demand_footer_facebook_url') != ''){ ?>
	  		    <a target="_blank" href="<?php echo esc_url(get_theme_mod('print_on_demand_footer_facebook_url')); ?>"><i class="<?php echo esc_attr(get_theme_mod('print_on_demand_footer_facebook_icon', 'fab fa-facebook-f')); ?>"></i><span class="screen-reader-text"><?php echo esc_html('Facebook', 'print-on-demand'); ?></span></a>
	  		<?php }?>
			<?php if(get_theme_mod('print_on_demand_footer_twitter_url') != ''){ ?>
	  		    <a target="_blank" href="<?php echo esc_url(get_theme_mod('print_on_demand_footer_twitter_url')); ?>"><i class="<?php echo esc_attr(get_theme_mod('print_on_demand_footer_twitter_icon', 'fab fa-twitter')); ?>"></i><span class="screen-reader-text"><?php echo esc_html('Twitter', 'print-on-demand'); ?></span></a>
	  		<?php }?>
			<?php if(get_theme_mod('print_on_demand_footer_instagram_url') != ''){ ?>
	  		    <a target="_blank" href="<?php echo esc_url(get_theme_mod('print_on_demand_footer_instagram_url')); ?>"><i class="<?php echo esc_attr(get_theme_mod('print_on_demand_footer_instagram_icon', 'fab fa-instagram')); ?>"></i><span class="screen-reader-text"><?php echo esc_html('Instagram', 'print-on-demand'); ?></span></a>
	  		<?php }?>
			<?php if(get_theme_mod('print_on_demand_footer_pinterest_url') != ''){ ?>
	  		    <a target="_blank" href="<?php echo esc_url(get_theme_mod('print_on_demand_footer_pinterest_url')); ?>"><i class="<?php echo esc_attr(get_theme_mod('print_on_demand_footer_pinterest_icon', 'fab fa-pinterest')); ?>"></i><span class="screen-reader-text"><?php echo esc_html('Pinterest', 'print-on-demand'); ?></span></a>
	  		<?php }?>
			<?php if(get_theme_mod('print_on_demand_footer_youtube_url') != ''){ ?>
	  		    <a target="_blank" href="<?php echo esc_url(get_theme_mod('print_on_demand_footer_youtube_url')); ?>"><i class="<?php echo esc_attr(get_theme_mod('print_on_demand_footer_youtube_icon', 'fab fa-youtube')); ?>"></i><span class="screen-reader-text"><?php echo esc_html('Youtube', 'print-on-demand'); ?></span></a>
	  		<?php }?>
            </div>
            <?php }?>
            </div>
        <div class="footer_text col-lg-4 col-md-12 col-12 align-self-center"><?php echo esc_html_e('Powered By WordPress','print-on-demand') ?></div>
      </div> 
    </div>
</div>