
<?php if( is_cs_framework_active() ) :
      $socity_header_top_options = cs_get_option('socity_header_top_options');
      $socity_header_top_enable = cs_get_option('socity_header_top_enable');
      $socity_header_mail_icon = cs_get_option('socity_header_mail_icon');
      $socity_header_email = cs_get_option('socity_header_email');
      $socity_header_phone_icon = cs_get_option('socity_header_phone_icon');
      $socity_header_phne = cs_get_option('socity_header_phne');
      $socity_header_phne_text = cs_get_option('socity_header_phne_text');
?>
<?php if(!empty($socity_header_top_enable)) : ?>
<div class="header-top header-top2">
      <div class="topbar-left">
            <ul>
                  <li>
                        <i class="<?php if(!empty($socity_header_mail_icon)){ echo esc_attr($socity_header_mail_icon); } ?>"></i>
                        <span><?php esc_html_e('Email: ','socity'); ?></span>
                        <a href="mailto:<?php if(!empty($socity_header_email)){ echo esc_attr($socity_header_email); } ?>">
                        <?php if(!empty($socity_header_email)){ echo esc_html($socity_header_email); } ?>
                        </a>
                  </li>
                  <li>
                        <i class="<?php if(!empty($socity_header_phone_icon)){ echo esc_attr($socity_header_phone_icon); } ?>"></i>
                        <a href="tel:<?php if(!empty($socity_header_phne)){ echo esc_attr($socity_header_phne); } ?>">
                        <?php if(!empty($socity_header_phne_text)){ echo esc_html($socity_header_phne_text); } ?>
                        </a>
                  </li>
                  <?php if ( has_nav_menu( 'lang-menu' ) ) : ?>
                  <nav class="navbar navbar-expand-lg">
                        <div class="ml-auto">
                        <?php 
                              wp_nav_menu( array(
                                'container_id'=>'langmenu',
                                'container_class'=>'collapse navbar-collapse',
                                'menu_class'=>'navbar-nav sm sm-simple',
                                'menu_id'=>'lang-menu',
                                'theme_location'=>'lang-menu',
                                'echo'            => true,
                                'fallback_cb'     => false,
                            ));
                        ?>
                        </div>
                  </nav>
                  <?php else : ?>
                  <li class="nav-item dropdown lang-menu">
                      <a class="nav-link dropdown-toggle" href="" id="dropdown09" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><span class="flag-icon flag-icon-us"> </span> English</a>
                      <div class="dropdown-menu" aria-labelledby="dropdown09">
                          <a class="dropdown-item" href="#fr"><span class="flag-icon flag-icon-fr"> </span>  French</a>
                          <a class="dropdown-item" href="#it"><span class="flag-icon flag-icon-it"> </span>  Italian</a>
                          <a class="dropdown-item" href="#ru"><span class="flag-icon flag-icon-ru"> </span>  Russian</a>
                      </div>
                  </li>
                  <?php endif; ?>
            </ul>
      </div>
</div>
<?php endif; endif; ?>