Commit f73d30cf by rajshah

registered block for resources

parent f74e723f
<?php if (get_field('enable_section')): ?>
<!--
if(absolute image){
$(section).addClass(".inner-banner-absolute-image)
}
-->
<section class="background-dark pb-60 ABOUT TOP-BANNER-SECTION inner-banner-absolute-image">
<section class="background-dark pb-60 ABOUT TOP-BANNER-SECTION">
<div class="container">
<div class="inner-banner-wrapper">
<div class="row align-items-center justify-content-between">
<div class="col-lg-6 col-12">
<div class="position-relative left-text-wrapper">
<?php the_field('description'); ?>
<a href="#"
class="btn btn-primary btn-padding hover-up btn-start-project font-14 fw-500 btn-padding btn-submit">Download
Now [PDF]</a>
</div>
</div>
<div class="col-lg-5 col-md-5 mx-auto col-12 text-center right-image">
<div class="image-wrapper">
<div class="image">
<!--<?php if ($image = get_field('image')):
echo wp_get_attachment_image($image); endif; ?>-->
<?php
$image = get_field('image');
$size = 'full';
......
......@@ -755,5 +755,21 @@ function my_acf_init_block_types()
],
],
));
// Resources - Resources Listing Block
acf_register_block_type(array(
'name' => 'Resources - Resources Listing Block',
'title' => __('Competitive Analysis Form Block'),
'description' => __('Resources - Resources Listing Block for SEO Pages'),
'render_template' => 'blocks/resources/resource-listing.php',
'category' => 'formatting',
'icon' => file_get_contents(get_template_directory() . '/assets/img/makura.svg'),
'keywords' => array('Resources - Resources Listing Block'),
'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