<?php
/**
 * Header Top
 * @package Solar Energy Engine
 */

$solar_energy_engine_default = solar_energy_engine_get_default_theme_options();

?>

<div class="site-topbar">
    <div class="wrapper header-wrapper">
        <div class="header-areas-left">
            <?php $solar_energy_engine_header_top_left_location = esc_html( get_theme_mod( 'solar_energy_engine_header_top_left_location',$solar_energy_engine_default['solar_energy_engine_header_top_left_location'] ) );
                if( $solar_energy_engine_header_top_left_location ){ ?>
                <span class="topmain"><span class="dashicons dashicons-location"></span><?php echo esc_html( $solar_energy_engine_header_top_left_location ); ?></span>
            <?php } ?>
            <?php $solar_energy_engine_header_top_left_email = esc_html( get_theme_mod( 'solar_energy_engine_header_top_left_email',$solar_energy_engine_default['solar_energy_engine_header_top_left_email'] ) );
                if( $solar_energy_engine_header_top_left_email ){ ?>
                <span class="topmain"><span class="dashicons dashicons-email"></span><a href="mailto:<?php echo esc_attr( $solar_energy_engine_header_top_left_email ); ?>"><?php echo esc_html( $solar_energy_engine_header_top_left_email ); ?></a></span>
            <?php } ?>
            <?php $solar_energy_engine_header_top_left_phone = esc_html( get_theme_mod( 'solar_energy_engine_header_top_left_phone',$solar_energy_engine_default['solar_energy_engine_header_top_left_phone'] ) );
                if( $solar_energy_engine_header_top_left_phone ){ ?>
                <span class="topmain"><span class="dashicons dashicons-phone"></span><a href="tel:<?php echo esc_attr( $solar_energy_engine_header_top_left_phone ); ?>"><?php echo esc_html( $solar_energy_engine_header_top_left_phone ); ?></a></span>
            <?php } ?>
        </div>
        <div class="header-areas-right">
            <?php $solar_energy_engine_header_top_right_timing = esc_html( get_theme_mod( 'solar_energy_engine_header_top_right_timing',$solar_energy_engine_default['solar_energy_engine_header_top_right_timing'] ) );
                if( $solar_energy_engine_header_top_right_timing ){ ?>
                <span class="topmain"><span class="dashicons dashicons-clock"></span><?php echo esc_html( $solar_energy_engine_header_top_right_timing ); ?></span>
            <?php } ?>
        </div>
    </div>
</div>