File: /home/hzaluminio/www/wp-content/themes/gaze/inc/content-header-top-bar.php
<?php
$sub_header_email = get_option( 'sub_header_email', 'Email' );
$sub_header_telephone = get_option( 'sub_header_telephone', 'Telefone' );
$sub_header_whats = get_option( 'sub_header_whats', 'whatsapp' );
$sub_header_whats_clean = get_option( 'sub_header_whats', 'whatsapp' );
$soNumeros = preg_replace("/[^0-9]/","", $sub_header_whats_clean);
?>
<div class="top-bar hidden-xs">
<div class="container">
<div class="row">
<div class="top-bar-links">
<ul class="col-sm-12">
<?php if( $sub_header_email) : ?>
<li class="top-bar-email">
<i class="fa fa-envelope"></i>
<a href="<?php echo esc_url( $sub_header_email ); ?>"><?php echo esc_html( $sub_header_email ); ?></a>
</li>
<li class="top-bar-phone">
<?php if( $sub_header_whats ) : ?>
| <a href="https://api.whatsapp.com/send?phone=55<?php echo $soNumeros; ?>" target="_blank" title="Whatsapp"> <i class="fa fa-whatsapp"></i><?php echo esc_html( $sub_header_whats ); ?></a> |
<?php endif; ?>
</li>
<li class="top-bar-phone">
<?php if( $sub_header_telephone ) : ?>
<a href="#"><i class="fa fa-phone"></i><?php echo esc_html( $sub_header_telephone ); ?></a>
<?php endif; ?>
</li>
<?php endif; ?>
<li class="social-icons nobase">
<?php
for( $i = 1; $i < 6; $i++ ){
if( $url = get_option( "header_social_url_$i" ) ) {
echo '
| <a href="'. esc_url( $url ) .'" target="_blank">
<i class="fa '. esc_attr( get_option( "header_social_icon_$i" ) ) .'"></i>
</a>
';
}
}
?>
</li>
</ul>
</div>
</div>
</div>
</div>