Commit 4c72fe35 by rajshah

done for icon box

parent 80543b07
<section class="SERVICE-LISTING pt-80"> <!-- Seo - Icon Box Section -->
<?php
$ibs = get_field('ibs') ?: [];
if (isset($ibs) && is_array($ibs) && !empty($ibs)):
$enable_ibs = $ibs['enable_ibs'] ?: false;
if ($enable_ibs):
$ibs_title = $ibs['ibs_title'] ?: '';
$ibs_desc = $ibs['ibs_desc'] ?: '';
$ibs_items = $ibs['ibs_items'] ?: [];
if (isset($ibs_items) && is_array($ibs_items) && !empty($ibs_items)):
?>
<section class="SERVICE-LISTING pt-80">
<div class="container"> <div class="container">
<div class="top-title section-title"> <div class="top-title section-title">
<h2>Services we provide in Content Marketing</h2> <?php if (!empty($ibs_title)): ?>
<p>Our swift-paced team is capable of handling design projects on anywhere and anytime. We’re ready to deliver <h1><?php echo $ibs_title; ?></h1><?php endif;
your best product wherever you are!</p> echo $ibs_desc ?: '';
?>
</div> </div>
<div class="row"> <div class="row">
<?php <?php
$services = array_fill(0, 4, []); foreach ($ibs_items as $ibsi) {
foreach ($services as $service) { $ibsi_icon = $ibsi['ibsi_icon'] ?: '';
$ibsi_title = $ibsi['ibsi_title'] ?: '';
$ibsi_desc = $ibsi['ibsi_desc'] ?: '';
?> ?>
<div class="col-md-6 col-xl-3"> <div class="col-md-6 col-xl-3">
<div class="service-item"> <div class="service-item">
<?php if (!empty($ibsi_icon)): ?>
<div class="si-icon"> <div class="si-icon">
<img src="<?php echo get_parent_theme_file_uri() ?>/assets/img/service-detail-01.svg" alt=""> <img src="<?php echo esc_url($ibsi_icon); ?>" alt="<?php echo esc_attr($ibsi_title); ?>">
</div> </div><?php endif; ?>
<div class="si-content"> <div class="si-content">
<strong>Strategy Development</strong> <?php if (!empty($ibsi_title)): ?><strong><?php echo $ibsi_title; ?></strong>
<p>We design a custom content strategy that aligns with your business objectives, target audience, and <?php endif;
industry trends.</p> echo $ibsi_desc ?: ''; ?>
</div> </div>
</div> </div>
</div> </div>
...@@ -28,4 +43,6 @@ ...@@ -28,4 +43,6 @@
?> ?>
</div> </div>
</div> </div>
</section> </section>
\ No newline at end of file <?php endif; endif; endif; ?>
<!-- !Seo - Icon Box Section -->
\ No newline at end of file
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