File: /var/www/stg-everycred.com/wp-content/themes/everycred/templates/page-contact-us.php
<?php /* Template name: Contact */
get_header();
echo do_shortcode('[inner_page_banner]');
$address = get_field('address');
$phone = get_field('phone');
$phone_2 = get_field('phone_2');
$email_1 = get_field('email_1');
$email_2 = get_field('email_2');
?>
<section class="contact-content py-120">
<div class="container">
<div class="row">
<div class="col-12 col-lg-5 mt-4 mt-lg-0">
<div class="contact-detail">
<div class="text-white font-32 text-medium">
Get in touch with us
</div>
<div class="font-18 text-white contact-description mt-3">
Simplify credential verification with us. Our team is always here to contact with you.
</div>
<div class="mt-5">
<?php if ($phone) { ?>
<div class="font-16 text-white mt-4 d-flex">
<div class="icon me-2">
<img src="<?php echo get_template_directory_uri(); ?>/assets/images/mobile.svg"
alt="phone-icon" />
</div>
<?php $mobile = str_replace(['(', ')', '-', ' '], '', $phone); ?>
<strong>IND: </strong> <a href="tel:<?php echo $mobile; ?>"><?php echo $phone; ?></a>
</div>
<?php }
if ($phone_2) { ?>
<div class="font-16 text-white mt-4 d-flex">
<div class="icon me-2">
<img src="<?php echo get_template_directory_uri(); ?>/assets/images/mobile.svg"
alt="phone-icon" />
</div>
<?php $mobile2 = str_replace(['(', ')', '-', ' '], '', $phone_2); ?>
<a href="tel:<?php echo $mobile2; ?>"><?php echo $phone_2; ?></a>
</div>
<?php }
if ($email_1) { ?>
<div class="font-16 text-white mt-4 d-flex">
<div class="icon me-2">
<img src="<?php echo get_template_directory_uri(); ?>/assets/images/mail-border.svg"
alt="mail-icon" />
</div>
<a href="mailto:<?php echo $email_1; ?>"><?php echo $email_1; ?></a>
</div>
<?php }
if ($email_2) { ?>
<div class="font-16 text-white mt-4 d-flex">
<div class="icon me-2">
<img src="<?php echo get_template_directory_uri(); ?>/assets/images/web.svg" alt="web-icon" />
</div>
<a href="mailto:<?php echo $email_2; ?>"><?php echo $email_2; ?></a>
</div>
<?php } ?>
</div>
</div>
<div class="mt-4">
<div class="font-20 text-semi text-black">
Address
</div>
<?php if ($address) { ?>
<div class="font-18 text-medium text-black mt-2">
<?php echo $address; ?>
</div>
<?php } ?>
</div>
</div>
<div class="col-12 col-lg-1"></div>
<div class="col-12 col-lg-6 mt-4 mt-lg-0">
<?php echo do_shortcode('[contact-form-7 html_id="contact_page_id" html_class="contact_page" id="65aa207" title="Contact form 1"]'); ?>
</div>
</div>
</section>
<?php get_footer(); ?>