Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
makura-2025
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Raj Shah
makura-2025
Commits
80543b07
Commit
80543b07
authored
Jan 02, 2025
by
rajshah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
acf block registered for icon box
parent
2003c827
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
0 deletions
+49
-0
icon-box.php
blocks/seo/icon-box.php
+32
-0
blocks.php
includes/gutenberg/blocks.php
+17
-0
No files found.
blocks/seo/icon-box.php
0 → 100644
View file @
80543b07
<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
includes/gutenberg/blocks.php
View file @
80543b07
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment