<?php
/**
* The template for displaying the footer.
*
* @package Theme Freesia
* @subpackage ShoppingCart
* @since ShoppingCart 1.0
*/
$shoppingcart_settings = shoppingcart_get_theme_options(); ?>
</div><!-- end #content -->
<!-- Footer Start ============================================= -->
<footer id="colophon" class="site-footer">
<?php
$footer_column = $shoppingcart_settings['shoppingcart_footer_column_section'];
if( is_active_sidebar( 'shoppingcart_footer_1' ) || is_active_sidebar( 'shoppingcart_footer_2' ) || is_active_sidebar( 'shoppingcart_footer_3' ) || is_active_sidebar( 'shoppingcart_footer_4' )) { ?>
<div class="widget-wrap">
<div class="wrap">
<div class="widget-area">
<?php
if($footer_column == '1' || $footer_column == '2' || $footer_column == '3' || $footer_column == '4'){
echo '<div class="column-'.absint($footer_column).'">';
if ( is_active_sidebar( 'shoppingcart_footer_1' ) ) :
dynamic_sidebar( 'shoppingcart_footer_1' );
endif;
echo '</div><!-- end .column'.absint($footer_column). ' -->';
}
if($footer_column == '2' || $footer_column == '3' || $footer_column == '4'){
echo '<div class="column-'.absint($footer_column).'">';
if ( is_active_sidebar( 'shoppingcart_footer_2' ) ) :
dynamic_sidebar( 'shoppingcart_footer_2' );
endif;
echo '</div><!--end .column'.absint($footer_column).' -->';
}
if($footer_column == '3' || $footer_column == '4'){
echo '<div class="column-'.absint($footer_column).'">';
if ( is_active_sidebar( 'shoppingcart_footer_3' ) ) :
dynamic_sidebar( 'shoppingcart_footer_3' );
endif;
echo '</div><!--end .column'.absint($footer_column).' -->';
}
if($footer_column == '4'){
echo '<div class="column-'.absint($footer_column).'">';
if ( is_active_sidebar( 'shoppingcart_footer_4' ) ) :
dynamic_sidebar( 'shoppingcart_footer_4' );
endif;
echo '</div><!--end .column'.absint($footer_column). '-->';
}
?>
</div> <!-- end .widget-area -->
</div><!-- end .wrap -->
</div> <!-- end .widget-wrap -->
<?php } ?>
<div class="site-info">
<div class="wrap">
<?php do_action('shoppingcart_footer_menu');
if($shoppingcart_settings['shoppingcart_buttom_social_icons'] == 0):
do_action('shoppingcart_social_links');
endif;
if ( is_active_sidebar( 'shoppingcart_footer_options' ) ) :
dynamic_sidebar( 'shoppingcart_footer_options' );
else:
echo '<div class="copyright">'; ?>
<?php do_action('wordpress_theme_initialize') ?>
</div>
<?php endif; ?>
<div style="clear:both;"></div>
</div> <!-- end .wrap -->
</div> <!-- end .site-info -->
<?php
$disable_scroll = $shoppingcart_settings['shoppingcart_scroll'];
if($disable_scroll == 0):?>
<a class="go-to-top">
<span class="icon-bg"></span>
<span class="back-to-top-text"><i class="fa fa-angle-up"></i></span>
<i class="fa fa-angle-double-up back-to-top-icon"></i>
</a>
<?php endif; ?>
<div class="page-overlay"></div>
</footer> <!-- end #colophon -->
</div><!-- end .site-content-contain -->
</div><!-- end #page -->
<?php wp_footer(); ?>
</body>
</html>