<?php 
$global_socials   = cs_get_option('benqu_global_social');
$ft_copyright   = cs_get_option('benqu_copywrite_text');
?>
<footer class="pfy-site-footer footer-two">
    <div class="pfy-footer-top">
        <div class="container">
            <div class="row align-items-center">
                <?php if(is_active_sidebar( 'footer-5' )):?>
                <div class="col-xl-3 col-md-6">
                    <?php dynamic_sidebar( 'footer-5' );?>
                </div>
                <?php endif;?>
                <div class="col-xl-6 d-none d-xl-block">
                    <div class="pfy-ft-nav text-center">
                        <?php benqu_footer_nav();?>
                    </div>
                </div>
                <div class="col-xl-3 col-md-6">                    
                    <?php if(!empty($global_socials)):?>
                    <div class="pfy-global-social text-end">
                        <ul>
                            <?php foreach($global_socials as $item):?>
                                <li><a <?php if(!empty($item['pf-brand-color'])):?> style="background-color:<?php echo esc_attr($item['pf-brand-color']);?>" <?php endif;?> href="<?php echo esc_url($item['link']);?>"><i class="<?php echo esc_attr($item['icon']);?>"></i></a></li>
                            <?php endforeach;?>
                        </ul>
                    </div>
                    <?php endif;?>
                </div>
            </div>
        </div>
    </div>
    <div class="pfy-footer-bottm">
        <div class="container">
            <div class="row">
                <div class="col-lg-12">
                    <div class="footer-tp-border"></div>
                </div>
                <div class="col-lg-12">
                    <div class="footer-copyright text-center">
                        <?php if($ft_copyright):
                            echo benqu_wp_kses(wpautop($ft_copyright));    
                        else: 
                        ?>
                        <p><?php esc_html_e('© 2022, benqu All Rights Reserved', 'benqu');?></p>
                        <?php endif;?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</footer>