Amy-Mir / global-templates / contacts.php
contacts.php
Raw
<?php
/**
 * Hero Cover Setup
 *
 */

// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;

$email = get_field('email', 'options');
$phone = get_field('phone_number', 'options');

?>


<div class="contacts__wrapper">
    <a href="mailto:<?php echo esc_attr($email);?>" class="contacts__email">
        <span class="fas fa-envelope"></span>
        <span><?php echo esc_html($email); ?></span>
    </a>
    <a href="tel:<?php echo esc_attr($phone);?>" class="contacts__phone">
        <span class="fas fa-phone"></span>
        <span><?php echo esc_html($phone); ?></span>
    </a>
</div>