Commit 8083b18d by rajshah

done case study banner

parent c17e6f39
...@@ -22,22 +22,28 @@ ...@@ -22,22 +22,28 @@
</a> </a>
<?php endif; ?> <?php endif; ?>
</div> </div>
<div class="col-lg-4 col-xl-3"> <?php
<div class="banner-counter"> $outcome = get_field('outcome') ?: [];
<div class="counter-item"> if (isset($outcome) && is_array($outcome) && !empty($outcome)):
<h2><span class="counter" data-reach="78">78</span>%</h2> ?>
<p>increased in organic traffic</p> <div class="col-lg-4 col-xl-3">
</div> <div class="banner-counter">
<div class="counter-item"> <?php foreach ($outcome as $i => $outcome_item):
<h2><span class="counter" data-reach="80">80</span>+</h2> $outcome_title = $outcome_item['outcome_title'] ?? '';
<p>keywords ranked under top 20 globally</p> $outcome_value = $outcome_item['outcome_desc'] ?? '';
</div> ?>
<div class="counter-item"> <div class="counter-item">
<h2><span class="counter" data-reach="96">96</span>%</h2> <?php if (!empty($outcome_title)): ?>
<p>reduction on bounce rate</p> <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> </div>
</div> <?php endif; ?>
</div> </div>
<?php if ($link = get_field('link')): <?php if ($link = get_field('link')):
$link_target = $link['target'] ? $link['target'] : '_self'; ?> $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