<?php
 $sidebar_logtag = cs_get_option('sidebar_logtag'); 
 $sidebar_social_opt = cs_get_option('sidebar_social_opt'); 
 $side_email = cs_get_option('side_email'); 
 $side_phone = cs_get_option('side_phone'); 
 $side_address = cs_get_option('side_address'); 
 $display_sidebar_nav = cs_get_option('display_sidebar_nav'); 
 if($display_sidebar_nav == true):
?>
<div class="pfy-sidebar-wrap pfy-sidebar-box">
    <div class="pfy-sidebar-overlay pfy-sidebar-return"></div>
    <div class="pfy-sidebar-nav-widget">
        <div class="pfy-sidebar-wid-wrap">
            <div class="pfy-sidebar-close-wrap">
                <a href="#" class="pfy-sidebar-close">
                    <i class="fal fa-times"></i>
                </a>
            </div>
            <div class="pfy-sidebar-content">
                
                <!-- Sidebar Info Content -->
                <div class="pfy-sidebar-info-content">
                    <div class="content-inner">
                        <div class="sidebar-logo sidebar-style">
                            <?php benqu_light_logo();?>
                            <?php if(!empty($sidebar_logtag)):?>
                                <p><?php echo esc_html($sidebar_logtag);?></p>
                            <?php endif;?>
                        </div>
                        <?php if(is_active_sidebar( 'sidebar-nav' )):?>
                        <div class="pfy-sidebar-contact-info sidebar-style">
                            <?php dynamic_sidebar( 'sidebar-nav' );?>
                        </div>
                        <?php endif;?>
                        <div class="pfy-sidebar-contact-info sidebar-style">

                            <?php if(!empty($side_address)):?>
                                <p><?php echo esc_html($side_address);?></p>
                            <?php endif;?>

                            <?php if(!empty($side_phone)):?>
                                <p><?php echo esc_html($side_phone);?></p>
                            <?php endif;?>

                            <?php if(!empty($side_email)):?>
                                <p><?php echo esc_html($side_email);?></p>
                            <?php endif;?>
                            <!-- Sidebar Social Info -->
                            <?php if(!empty($sidebar_social_opt)):?>
                            <div class="sidebar-social-info">
                                <?php foreach($sidebar_social_opt as $item):?>
                                <a href="<?php echo esc_url($item['link']);?>"><i class="<?php echo esc_attr($item['icon']);?>"></i></a>
                                <?php endforeach;?>
                            </div>
                            <?php endif;?>
                        </div>
                        
                    </div>
                </div>
                
            </div>
        </div>
    </div>
</div>
<?php endif;?>