Commit 80543b07 by rajshah

acf block registered for icon box

parent 2003c827
<section class="SERVICE-LISTING pt-80">
<div class="container">
<div class="top-title section-title">
<h2>Services we provide in Content Marketing</h2>
<p>Our swift-paced team is capable of handling design projects on anywhere and anytime. We’re ready to deliver
your best product wherever you are!</p>
</div>
<div class="row">
<?php
$services = array_fill(0, 4, []);
foreach ($services as $service) {
?>
<div class="col-md-6 col-xl-3">
<div class="service-item">
<div class="si-icon">
<img src="<?php echo get_parent_theme_file_uri() ?>/assets/img/service-detail-01.svg" alt="">
</div>
<div class="si-content">
<strong>Strategy Development</strong>
<p>We design a custom content strategy that aligns with your business objectives, target audience, and
industry trends.</p>
</div>
</div>
</div>
<?php
}
?>
</div>
</div>
</section>
\ No newline at end of file
......@@ -707,5 +707,21 @@ function my_acf_init_block_types()
],
],
));
// SEO - Icon Box Section
acf_register_block_type(array(
'name' => 'SEO - Icon Box Section',
'title' => __('SEO - Icon Box Section'),
'description' => __('SEO - Icon Box Section for SEO Pages'),
'render_template' => 'blocks/seo/icon-box.php',
'category' => 'formatting',
'icon' => file_get_contents(get_template_directory() . '/assets/img/makura.svg'),
'keywords' => array('SEO - Icon Box Section'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => [],
],
],
));
}
}
\ 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