<?php
$footer_social = cs_get_option('footer_social');
$footer_contact_infos = cs_get_option('footer_contact_infos');
$prinox_copywrite_text = cs_get_option('prinox_copywrite_text');
$no_footer = '';
if(!is_active_sidebar('footer-1') || !is_active_sidebar('footer-2') || !is_active_sidebar('footer-3') || !is_active_sidebar('footer-4')){
$no_footer= 'no-footer-widg';
}
?>
<!-- Footer Style Two -->
<footer class="footer-style-two style-three <?php echo esc_attr($no_footer);?>">
<div class="icon-layer-one" style="background-image: url(<?php echo esc_url(get_template_directory_uri());?>/assets/images/vector-26.png)"></div>
<div class="icon-layer-two" style="background-image: url(<?php echo esc_url(get_template_directory_uri());?>/assets/images/vector-27.png)"></div>
<div class="auto-container">
<!-- Widgets Section -->
<div class="widgets-section">
<div class="row clearfix">
<!-- Column -->
<div class="big-column col-lg-6 col-md-12 col-sm-12">
<div class="row clearfix">
<!-- Footer Column -->
<div class="footer-column col-lg-7 col-md-6 col-sm-12">
<div class="footer-widget links-widget">
<?php if(is_active_sidebar( 'footer-1' )){ dynamic_sidebar( 'footer-1' ); }?>
<?php if(!empty($footer_contact_infos)):?>
<ul class="contact-list">
<?php foreach($footer_contact_infos as $item):?>
<li><span class="icon"><i class="<?php echo esc_attr($item['icon'])?>"></i></span><?php echo esc_html($item['type_contact_info'])?></li>
<?php endforeach;?>
</ul>
<?php endif;?>
</div>
</div>
<!-- Footer Column -->
<div class="footer-column col-lg-5 col-md-6 col-sm-12">
<?php if(is_active_sidebar( 'footer-2' )){
dynamic_sidebar( 'footer-2' );
}?>
</div>
</div>
</div>
<!-- Column -->
<div class="big-column col-lg-6 col-md-12 col-sm-12">
<div class="row clearfix">
<!-- Footer Column -->
<div class="footer-column col-lg-6 col-md-6 col-sm-12">
<?php if(is_active_sidebar( 'footer-3' )){
dynamic_sidebar( 'footer-3' );
}?>
</div>
<!-- Footer Column -->
<div class="footer-column col-lg-6 col-md-6 col-sm-12">
<?php if(is_active_sidebar( 'footer-4' )){
dynamic_sidebar( 'footer-4' );
}?>
</div>
</div>
</div>
</div>
</div>
<!-- Footer Bottom -->
<div class="footer-bottom">
<div class="footer-bottom-inner d-flex justify-content-between align-items-center flex-wrap">
<!-- Logo -->
<div class="logo">
<?php prinox_logo();?>
</div>
<div class="copyright">
<?php
if(!empty($prinox_copywrite_text)){
echo wp_kses( $prinox_copywrite_text, true );
}else{
esc_html_e( '© 2022 Prinox - Printing Technology. All Rights Reserved.', 'prinox' );
}
?>
</div>
<?php if(!empty($footer_social)):?>
<!-- Social Box -->
<ul class="social-box">
<?php foreach($footer_social as $social):?>
<li><a href="<?php echo esc_url($social['link']);?>"><i class="<?php echo esc_html($social['icon']);?>"></i></a></li>
<?php endforeach;?>
</ul>
<!-- End Social Box -->
<?php endif;?>
</div>
</div>
<!-- End Footer Bottom -->
</div>
</footer>
<!-- End Footer Style Two -->