60 lines
1.9 KiB
PHP
60 lines
1.9 KiB
PHP
<div class="top-bar">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-md-8 col-xs-12 col-sm-12">
|
|
|
|
<p class="phonetext">
|
|
|
|
<?php
|
|
$promo_default = of_get_option('thbusiness_telephone_text', '');
|
|
$promo_custom = get_post_meta(get_the_ID(), 'promo-text', true);
|
|
|
|
if (!empty($promo_custom)) :
|
|
$promo_default = $promo_custom;
|
|
echo $promo_default;
|
|
else:
|
|
echo $promo_default;
|
|
endif;
|
|
?>
|
|
</p>
|
|
|
|
</div>
|
|
<div class="col-md-4 col-xs-12 col-sm-12 phonenumber">
|
|
<div class="existing-customer">Existing Customer<br/><a href="http://medicalalertsupport.com/">Click Here</a>
|
|
</div>
|
|
<?php $tp_num = of_get_option('thbusiness_telephone_num', '');?>
|
|
<p><a href="tel: <?php echo do_shortcode('[op]') ?>"><?php echo do_shortcode('[op]'); ?></a>
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="phonetext-mobile">
|
|
<div class="mobile-text-left">
|
|
|
|
<?php
|
|
$promo_default = of_get_option('thbusiness_telephone_text', '');
|
|
$promo_custom = get_post_meta(get_the_ID(), 'promo-text', true);
|
|
|
|
if (isset($_COOKIE["SESStopoffer"])) {
|
|
echo do_shortcode('[campaign_special]');
|
|
|
|
} elseif (!empty($promo_custom)) {
|
|
$promo_default = $promo_custom;
|
|
|
|
echo $promo_default;
|
|
|
|
} else {
|
|
|
|
echo $promo_default;
|
|
|
|
}
|
|
?>
|
|
</div>
|
|
<div class="mobile-icon-right">
|
|
<a href="tel: <?php echo do_shortcode('[op]') ?>">Call <?php echo do_shortcode('[op]'); ?> for our latest offer.</a>
|
|
</div>
|
|
</div>
|