<?php
/**
 * Header Top
 * @package Wind Energy
 */

$wind_energy_default = wind_energy_get_default_theme_options();

?>

<div class="site-topbar">
    <div class="wrapper header-wrapper">
        <div class="header-areas-left">
            <?php $wind_energy_header_top_left_location = esc_html( get_theme_mod( 'wind_energy_header_top_left_location',$wind_energy_default['wind_energy_header_top_left_location'] ) );
                if( $wind_energy_header_top_left_location ){ ?>
                <span class="topmain"><svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 384 512"><!--!Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M172.3 501.7C27 291 0 269.4 0 192 0 86 86 0 192 0s192 86 192 192c0 77.4-27 99-172.3 309.7-9.5 13.8-29.9 13.8-39.5 0zM192 272c44.2 0 80-35.8 80-80s-35.8-80-80-80-80 35.8-80 80 35.8 80 80 80z"/></svg><?php echo esc_html( $wind_energy_header_top_left_location ); ?></span>
            <?php } ?>
            <?php $wind_energy_header_top_left_email = esc_html( get_theme_mod( 'wind_energy_header_top_left_email',$wind_energy_default['wind_energy_header_top_left_email'] ) );
                if( $wind_energy_header_top_left_email ){ ?>
                <span class="topmain"><svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 512 512"><!--!Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M176 216h160c8.8 0 16-7.2 16-16v-16c0-8.8-7.2-16-16-16H176c-8.8 0-16 7.2-16 16v16c0 8.8 7.2 16 16 16zm-16 80c0 8.8 7.2 16 16 16h160c8.8 0 16-7.2 16-16v-16c0-8.8-7.2-16-16-16H176c-8.8 0-16 7.2-16 16v16zm96 121.1c-16.4 0-32.8-5.1-46.9-15.2L0 250.9V464c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V250.9L302.9 401.9c-14 10.1-30.4 15.2-46.9 15.2zm237.6-254.2c-8.9-6.9-17.2-13.5-29.6-22.8V96c0-26.5-21.5-48-48-48h-77.6c-3-2.2-5.9-4.3-9-6.6C312.6 29.2 279.2-.4 256 0c-23.2-.4-56.6 29.2-73.4 41.4-3.2 2.3-6 4.4-9 6.6H96c-26.5 0-48 21.5-48 48v44.1c-12.4 9.3-20.8 15.9-29.6 22.8A48 48 0 0 0 0 200.7v10.7l96 69.4V96h320v184.7l96-69.4v-10.7c0-14.7-6.8-28.7-18.4-37.8z"/></svg><a href="mailto:<?php echo esc_attr( $wind_energy_header_top_left_email ); ?>"><?php echo esc_html( $wind_energy_header_top_left_email ); ?></a></span>
            <?php } ?>
            <?php $wind_energy_header_top_left_phone = esc_html( get_theme_mod( 'wind_energy_header_top_left_phone',$wind_energy_default['wind_energy_header_top_left_phone'] ) );
                if( $wind_energy_header_top_left_phone ){ ?>
                <span class="topmain"><svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 512 512"><!--!Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M497.4 361.8l-112-48a24 24 0 0 0 -28 6.9l-49.6 60.6A370.7 370.7 0 0 1 130.6 204.1l60.6-49.6a23.9 23.9 0 0 0 6.9-28l-48-112A24.2 24.2 0 0 0 122.6 .6l-104 24A24 24 0 0 0 0 48c0 256.5 207.9 464 464 464a24 24 0 0 0 23.4-18.6l24-104a24.3 24.3 0 0 0 -14-27.6z"/></svg><a href="tel:<?php echo esc_attr( $wind_energy_header_top_left_phone ); ?>"><?php echo esc_html( $wind_energy_header_top_left_phone ); ?></a></span>
            <?php } ?>
        </div>
        <div class="header-areas-right">
            <?php $wind_energy_header_top_right_timing = esc_html( get_theme_mod( 'wind_energy_header_top_right_timing',$wind_energy_default['wind_energy_header_top_right_timing'] ) );
                if( $wind_energy_header_top_right_timing ){ ?>
                <span class="topmain"><svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 512 512"><!--!Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M256 0a256 256 0 1 1 0 512A256 256 0 1 1 256 0zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"/></svg><?php echo esc_html( $wind_energy_header_top_right_timing ); ?></span>
            <?php } ?>
        </div>
    </div>
</div>