Commit 8083b18d by rajshah

done case study banner

parent c17e6f39
......@@ -22,22 +22,28 @@
</a>
<?php endif; ?>
</div>
<div class="col-lg-4 col-xl-3">
<div class="banner-counter">
<div class="counter-item">
<h2><span class="counter" data-reach="78">78</span>%</h2>
<p>increased in organic traffic</p>
</div>
<div class="counter-item">
<h2><span class="counter" data-reach="80">80</span>+</h2>
<p>keywords ranked under top 20 globally</p>
</div>
<div class="counter-item">
<h2><span class="counter" data-reach="96">96</span>%</h2>
<p>reduction on bounce rate</p>
<?php
$outcome = get_field('outcome') ?: [];
if (isset($outcome) && is_array($outcome) && !empty($outcome)):
?>
<div class="col-lg-4 col-xl-3">
<div class="banner-counter">
<?php foreach ($outcome as $i => $outcome_item):
$outcome_title = $outcome_item['outcome_title'] ?? '';
$outcome_value = $outcome_item['outcome_desc'] ?? '';
?>
<div class="counter-item">
<?php if (!empty($outcome_title)): ?>
<h2><span class=""><?php echo $outcome_title; ?></span></h2>
<?php endif; ?>
<?php if (!empty($outcome_value)): ?>
<p><?php echo $outcome_value; ?></p>
<?php endif; ?>
</div>
<?php endforeach; ?>
</div>
</div>
</div>
<?php endif; ?>
</div>
<?php if ($link = get_field('link')):
$link_target = $link['target'] ? $link['target'] : '_self'; ?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment