<?php
/**
 * The template for displaying all pages.
 *
 * This is the template that displays all pages by default.
 * Please note that this is the WordPress construct of pages
 * and that other 'pages' on your WordPress site may use a
 * different template.
 *
 * @link https://codex.wordpress.org/Template_Hierarchy
 *
 * @package Canyon Themes
 * @subpackage Sewa
 */
// retrieving Customizer Value
$section_option = sewa_get_option('sewa_top_header_section');
if ($section_option =='show') {
    $mobile_icon  = sewa_get_option('sewa_top_header_section_phone_number_icon');
    $mobile_value = sewa_get_option('sewa_top_header_phone_no');
    $email_icon   = sewa_get_option('sewa_email_icon');
    $email_value  = sewa_get_option('sewa_top_header_email');
    $social_menu  = sewa_get_option('sewa_social_link_hide_option');
    ?>
    <div class="top-header">
        <div class="container">
            <div class="row justify-content-between ">
                <ul class="contact-detail2 col-md-7 pull-left">
                    <?php
                    if (!empty( $mobile_value ) ) {
                        ?>
                        <li>
                  
                            <a href="<?php echo esc_url('tel:'.$mobile_value) ?>" target="_blank">
                                <i class="fa <?php echo esc_attr($mobile_icon); ?>"></i>
                                <?php
                                 echo esc_html($mobile_value);
                                ?>
                            </a>
                  
                        </li>
                    <?php }
                  
                    if ( !empty( $email_value ) ) {
                        ?>
                        <li>
                            <a href="<?php echo esc_url('mailto:'.$email_value); ?>" target="_blank">
                                <i class="fa <?php echo esc_attr($email_icon); ?>"></i>
                                <?php echo esc_html($email_value); ?>
                            </a>
                        </li>
                    <?php } ?>
                </ul>
                <div class="col-md-3 pull-right d-none d-md-block">
                    
                    <?php
                    if ($social_menu == 1)
                    {
                        ?>
                    
                        <div class="social-links sewa-pro-social-icons">
                            <?php
                            if (has_nav_menu('social-link')) {
                                wp_nav_menu(array('theme_location' => 'social-link', 'menu_class' => 'social-icons d-none d-md-block pull-right '));
                            }
                            ?>
                        </div>
                        <?php
                    }
                    ?>
                </div>
                </div>
        </div>
    </div>
<?php } ?>