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
944e317f
Commit
944e317f
authored
May 30, 2025
by
rajshah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
registered banner block
parent
1ba9cc0c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
91 additions
and
78 deletions
+91
-78
case-study-banner.php
blocks/case-study/case-study-banner.php
+55
-0
portfolio-banner.php
blocks/portfolio-banner.php
+2
-60
blocks.php
includes/gutenberg/blocks.php
+34
-18
No files found.
blocks/case-study/case-study-banner.php
0 → 100644
View file @
944e317f
<section
class=
"bg-primary pb-60 PD-TOP-SECTION makura-new case-study-banner"
>
<div
class=
"container"
>
<div
class=
"row justify-content-between align-items-center"
>
<div
class=
"col-lg-7 title-wrapper"
>
<div
class=
"client-logo-wrapper d-none d-lg-block"
>
<?php
if
(
$image
=
get_field
(
'client_logo'
))
:
echo
wp_get_attachment_image
(
$image
,
'full'
);
endif
;
?>
</div>
<div
class=
"portfolio-detail-content-box pb-40"
>
<?php
the_field
(
'description'
);
?>
</div>
<?php
if
(
$link
=
get_field
(
'link'
))
:
$link_target
=
$link
[
'target'
]
?
$link
[
'target'
]
:
'_self'
;
?>
<a
href=
"
<?php
echo
$link
[
'url'
];
?>
"
target=
"_blank"
class=
"open-in-new-tab d-none d-lg-inline-block"
>
<?php
echo
$link
[
'title'
];
?>
<svg
width=
"17"
height=
"17"
viewBox=
"0 0 17 17"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
>
<path
d=
"M14.3379 4.552L2.8619 16.028L0.976562 14.1427L12.4512 2.66667H2.3379V0H17.0046V14.6667H14.3379V4.552Z"
fill=
"#005AFF"
/>
</svg>
</a>
<?php
endif
;
?>
</div>
<div
class=
"col-lg-4 col-xl-3"
>
<div
class=
"banner-counter"
>
<div
class=
"counter-item"
>
<h2><span
class=
"counter"
data-reach=
"78"
>
78
</span>
%
</h2>
<p>
increased in organic traffic
</p>
</div>
<div
class=
"counter-item"
>
<h2><span
class=
"counter"
data-reach=
"80"
>
80
</span>
+
</h2>
<p>
keywords ranked under top 20 globally
</p>
</div>
<div
class=
"counter-item"
>
<h2><span
class=
"counter"
data-reach=
"96"
>
96
</span>
%
</h2>
<p>
reduction on bounce rate
</p>
</div>
</div>
</div>
</div>
<?php
if
(
$link
=
get_field
(
'link'
))
:
$link_target
=
$link
[
'target'
]
?
$link
[
'target'
]
:
'_self'
;
?>
<a
href=
"
<?php
echo
$link
[
'url'
];
?>
"
target=
"_blank"
class=
"open-in-new-tab d-lg-none"
>
<?php
echo
$link
[
'title'
];
?>
<svg
width=
"17"
height=
"17"
viewBox=
"0 0 17 17"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
>
<path
d=
"M14.3379 4.552L2.8619 16.028L0.976562 14.1427L12.4512 2.66667H2.3379V0H17.0046V14.6667H14.3379V4.552Z"
fill=
"#005AFF"
/>
</svg>
</a>
<?php
endif
;
?>
</div>
</section>
\ No newline at end of file
blocks/portfolio-banner.php
View file @
944e317f
<?php
if
(
is_page
(
"case-study-single"
))
:?>
<
section
class
="
bg
-
primary
pb
-
60
PD
-
TOP
-
SECTION
makura
-
new
case
-
study
-
banner
">
<div class="
container
">
<div class="
row
justify
-
content
-
between
align
-
items
-
center
">
<div class="
col
-
lg
-
7
title
-
wrapper
">
<div class="
client
-
logo
-
wrapper
d
-
none
d
-
lg
-
block
">
<?php if (
$image
= get_field('client_logo')):
echo wp_get_attachment_image(
$image
, 'full');
endif; ?>
</div>
<div class="
portfolio
-
detail
-
content
-
box
pb
-
40
">
<?php the_field('description'); ?>
</div>
<?php if (
$link
= get_field('link')):
$link_target
=
$link['target']
?
$link['target']
: '_self'; ?>
<a href="
<?
php
echo
$link
[
'url'
];
?>
" target="_blank" class="open-in-new-tab d-none d-lg-inline-block">
<?php
echo
$link
[
'title'
];
?>
<svg
width=
"17"
height=
"17"
viewBox=
"0 0 17 17"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
>
<path
d=
"M14.3379 4.552L2.8619 16.028L0.976562 14.1427L12.4512 2.66667H2.3379V0H17.0046V14.6667H14.3379V4.552Z"
fill=
"#005AFF"
/>
</svg>
</a>
<?php
endif
;
?>
</div>
<div
class=
"col-lg-4 col-xl-3"
>
<div
class=
"banner-counter"
>
<div
class=
"counter-item"
>
<h2><span
class=
"counter"
data-reach=
"78"
>
78
</span>
%
</h2>
<p>
increased in organic traffic
</p>
</div>
<div
class=
"counter-item"
>
<h2><span
class=
"counter"
data-reach=
"80"
>
80
</span>
+
</h2>
<p>
keywords ranked under top 20 globally
</p>
</div>
<div
class=
"counter-item"
>
<h2><span
class=
"counter"
data-reach=
"96"
>
96
</span>
%
</h2>
<p>
reduction on bounce rate
</p>
</div>
</div>
</div>
</div>
<?php
if
(
$link
=
get_field
(
'link'
))
:
$link_target
=
$link
[
'target'
]
?
$link
[
'target'
]
:
'_self'
;
?>
<a
href=
"
<?php
echo
$link
[
'url'
];
?>
"
target=
"_blank"
class=
"open-in-new-tab d-lg-none"
>
<?php
echo
$link
[
'title'
];
?>
<svg
width=
"17"
height=
"17"
viewBox=
"0 0 17 17"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
>
<path
d=
"M14.3379 4.552L2.8619 16.028L0.976562 14.1427L12.4512 2.66667H2.3379V0H17.0046V14.6667H14.3379V4.552Z"
fill=
"#005AFF"
/>
</svg>
</a>
<?php
endif
;
?>
</div>
</section>
<?php
else
:?>
<section
class=
"bg-primary pb-60 PD-TOP-SECTION makura-new"
>
<section
class=
"bg-primary pb-60 PD-TOP-SECTION makura-new"
>
<div
class=
"container"
>
<div
class=
"container"
>
<div
class=
"row justify-content-between"
>
<div
class=
"row justify-content-between"
>
...
@@ -80,7 +24,7 @@
...
@@ -80,7 +24,7 @@
endif
;
?>
endif
;
?>
</div>
</div>
<?php
<?php
$sof_title
=
get_field
(
'sof_title'
)
?:
'Scope of Work'
;
$sof_title
=
get_field
(
'sof_title'
)
?:
'Scope of Work'
;
if
(
$scope
=
get_field
(
'scope_of_work'
))
:
?>
if
(
$scope
=
get_field
(
'scope_of_work'
))
:
?>
<div
class=
"scope-work-wrapper"
>
<div
class=
"scope-work-wrapper"
>
<?php
if
(
!
empty
(
$sof_title
))
:
?>
<span
<?php
if
(
!
empty
(
$sof_title
))
:
?>
<span
...
@@ -105,5 +49,3 @@
...
@@ -105,5 +49,3 @@
<?php
endif
;
?>
<?php
endif
;
?>
</div>
</div>
</section>
</section>
\ No newline at end of file
<?php
endif
;
?>
\ No newline at end of file
includes/gutenberg/blocks.php
View file @
944e317f
...
@@ -494,7 +494,7 @@ function my_acf_init_block_types()
...
@@ -494,7 +494,7 @@ function my_acf_init_block_types()
'render_template'
=>
'blocks/about-us/employe-feel.php'
,
'render_template'
=>
'blocks/about-us/employe-feel.php'
,
'category'
=>
'formatting'
,
'category'
=>
'formatting'
,
'icon'
=>
'admin-comments'
,
'icon'
=>
'admin-comments'
,
'keywords'
=>
array
(
'Employe Feel Section'
),
'keywords'
=>
array
(
'Employe Feel Section'
,
'makura'
),
'example'
=>
[
'example'
=>
[
'attributes'
=>
[
'attributes'
=>
[
'mode'
=>
'preview'
,
'mode'
=>
'preview'
,
...
@@ -510,7 +510,7 @@ function my_acf_init_block_types()
...
@@ -510,7 +510,7 @@ function my_acf_init_block_types()
'render_template'
=>
'blocks/vacancy-listing.php'
,
'render_template'
=>
'blocks/vacancy-listing.php'
,
'category'
=>
'formatting'
,
'category'
=>
'formatting'
,
'icon'
=>
'admin-comments'
,
'icon'
=>
'admin-comments'
,
'keywords'
=>
array
(
'Vacancy Listing'
),
'keywords'
=>
array
(
'Vacancy Listing'
,
'makura'
),
'example'
=>
[
'example'
=>
[
'attributes'
=>
[
'attributes'
=>
[
'mode'
=>
'preview'
,
'mode'
=>
'preview'
,
...
@@ -526,7 +526,7 @@ function my_acf_init_block_types()
...
@@ -526,7 +526,7 @@ function my_acf_init_block_types()
'render_template'
=>
'blocks/contact-us/contact-details.php'
,
'render_template'
=>
'blocks/contact-us/contact-details.php'
,
'category'
=>
'formatting'
,
'category'
=>
'formatting'
,
'icon'
=>
'admin-comments'
,
'icon'
=>
'admin-comments'
,
'keywords'
=>
array
(
'Contact Details Section'
),
'keywords'
=>
array
(
'Contact Details Section'
,
'makura'
),
'example'
=>
[
'example'
=>
[
'attributes'
=>
[
'attributes'
=>
[
'mode'
=>
'preview'
,
'mode'
=>
'preview'
,
...
@@ -541,7 +541,7 @@ function my_acf_init_block_types()
...
@@ -541,7 +541,7 @@ function my_acf_init_block_types()
'render_template'
=>
'blocks/contact-us/contact-form.php'
,
'render_template'
=>
'blocks/contact-us/contact-form.php'
,
'category'
=>
'formatting'
,
'category'
=>
'formatting'
,
'icon'
=>
'admin-comments'
,
'icon'
=>
'admin-comments'
,
'keywords'
=>
array
(
'Contact Form Section'
),
'keywords'
=>
array
(
'Contact Form Section'
,
'form'
,
'makura'
),
'example'
=>
[
'example'
=>
[
'attributes'
=>
[
'attributes'
=>
[
'mode'
=>
'preview'
,
'mode'
=>
'preview'
,
...
@@ -557,7 +557,7 @@ function my_acf_init_block_types()
...
@@ -557,7 +557,7 @@ function my_acf_init_block_types()
'render_template'
=>
'blocks/contact-us/map-section.php'
,
'render_template'
=>
'blocks/contact-us/map-section.php'
,
'category'
=>
'formatting'
,
'category'
=>
'formatting'
,
'icon'
=>
'admin-comments'
,
'icon'
=>
'admin-comments'
,
'keywords'
=>
array
(
'Map Section'
),
'keywords'
=>
array
(
'Map Section'
,
'map'
,
'contact'
,
'makura'
),
'example'
=>
[
'example'
=>
[
'attributes'
=>
[
'attributes'
=>
[
'mode'
=>
'preview'
,
'mode'
=>
'preview'
,
...
@@ -573,7 +573,7 @@ function my_acf_init_block_types()
...
@@ -573,7 +573,7 @@ function my_acf_init_block_types()
'render_template'
=>
'blocks/portfolio-listing-section.php'
,
'render_template'
=>
'blocks/portfolio-listing-section.php'
,
'category'
=>
'formatting'
,
'category'
=>
'formatting'
,
'icon'
=>
'admin-comments'
,
'icon'
=>
'admin-comments'
,
'keywords'
=>
array
(
'Portfolio Listing Section'
),
'keywords'
=>
array
(
'Portfolio Listing Section'
,
'makura'
),
'example'
=>
[
'example'
=>
[
'attributes'
=>
[
'attributes'
=>
[
'mode'
=>
'preview'
,
'mode'
=>
'preview'
,
...
@@ -589,7 +589,7 @@ function my_acf_init_block_types()
...
@@ -589,7 +589,7 @@ function my_acf_init_block_types()
'render_template'
=>
'blocks/about-us/stat-section.php'
,
'render_template'
=>
'blocks/about-us/stat-section.php'
,
'category'
=>
'formatting'
,
'category'
=>
'formatting'
,
'icon'
=>
'admin-comments'
,
'icon'
=>
'admin-comments'
,
'keywords'
=>
array
(
'About Us Stat Section'
),
'keywords'
=>
array
(
'About Us Stat Section'
,
'makura'
),
'example'
=>
[
'example'
=>
[
'attributes'
=>
[
'attributes'
=>
[
'mode'
=>
'preview'
,
'mode'
=>
'preview'
,
...
@@ -605,7 +605,7 @@ function my_acf_init_block_types()
...
@@ -605,7 +605,7 @@ function my_acf_init_block_types()
'render_template'
=>
'blocks/service-list-section.php'
,
'render_template'
=>
'blocks/service-list-section.php'
,
'category'
=>
'formatting'
,
'category'
=>
'formatting'
,
'icon'
=>
'admin-comments'
,
'icon'
=>
'admin-comments'
,
'keywords'
=>
array
(
'Service List Section'
),
'keywords'
=>
array
(
'Service List Section'
,
'makura'
),
'example'
=>
[
'example'
=>
[
'attributes'
=>
[
'attributes'
=>
[
'mode'
=>
'preview'
,
'mode'
=>
'preview'
,
...
@@ -621,7 +621,7 @@ function my_acf_init_block_types()
...
@@ -621,7 +621,7 @@ function my_acf_init_block_types()
'render_template'
=>
'blocks/service-content-list-section.php'
,
'render_template'
=>
'blocks/service-content-list-section.php'
,
'category'
=>
'formatting'
,
'category'
=>
'formatting'
,
'icon'
=>
'admin-comments'
,
'icon'
=>
'admin-comments'
,
'keywords'
=>
array
(
'Service Content List Section'
),
'keywords'
=>
array
(
'Service Content List Section'
,
'makura'
),
'example'
=>
[
'example'
=>
[
'attributes'
=>
[
'attributes'
=>
[
'mode'
=>
'preview'
,
'mode'
=>
'preview'
,
...
@@ -637,7 +637,7 @@ function my_acf_init_block_types()
...
@@ -637,7 +637,7 @@ function my_acf_init_block_types()
'render_template'
=>
'blocks/new-service-content-list-section.php'
,
'render_template'
=>
'blocks/new-service-content-list-section.php'
,
'category'
=>
'formatting'
,
'category'
=>
'formatting'
,
'icon'
=>
'admin-comments'
,
'icon'
=>
'admin-comments'
,
'keywords'
=>
array
(
'New Service Content List Section'
),
'keywords'
=>
array
(
'New Service Content List Section'
,
'makura'
),
'example'
=>
[
'example'
=>
[
'attributes'
=>
[
'attributes'
=>
[
'mode'
=>
'preview'
,
'mode'
=>
'preview'
,
...
@@ -653,7 +653,7 @@ function my_acf_init_block_types()
...
@@ -653,7 +653,7 @@ function my_acf_init_block_types()
'render_template'
=>
'blocks/service-work-process-section.php'
,
'render_template'
=>
'blocks/service-work-process-section.php'
,
'category'
=>
'formatting'
,
'category'
=>
'formatting'
,
'icon'
=>
'admin-comments'
,
'icon'
=>
'admin-comments'
,
'keywords'
=>
array
(
'Service Work Process Section'
),
'keywords'
=>
array
(
'Service Work Process Section'
,
'makura'
),
'example'
=>
[
'example'
=>
[
'attributes'
=>
[
'attributes'
=>
[
'mode'
=>
'preview'
,
'mode'
=>
'preview'
,
...
@@ -668,7 +668,7 @@ function my_acf_init_block_types()
...
@@ -668,7 +668,7 @@ function my_acf_init_block_types()
'render_template'
=>
'blocks/service-portfolio-list-section.php'
,
'render_template'
=>
'blocks/service-portfolio-list-section.php'
,
'category'
=>
'formatting'
,
'category'
=>
'formatting'
,
'icon'
=>
'admin-comments'
,
'icon'
=>
'admin-comments'
,
'keywords'
=>
array
(
'Service Portfolio List Section'
),
'keywords'
=>
array
(
'Service Portfolio List Section'
,
'makura'
),
'example'
=>
[
'example'
=>
[
'attributes'
=>
[
'attributes'
=>
[
'mode'
=>
'preview'
,
'mode'
=>
'preview'
,
...
@@ -683,7 +683,7 @@ function my_acf_init_block_types()
...
@@ -683,7 +683,7 @@ function my_acf_init_block_types()
'render_template'
=>
'blocks/contact-us/contact-breadcrumb.php'
,
'render_template'
=>
'blocks/contact-us/contact-breadcrumb.php'
,
'category'
=>
'formatting'
,
'category'
=>
'formatting'
,
'icon'
=>
'admin-comments'
,
'icon'
=>
'admin-comments'
,
'keywords'
=>
array
(
'Contact Us Breadcrumb'
),
'keywords'
=>
array
(
'Contact Us Breadcrumb'
,
'makura'
),
'example'
=>
[
'example'
=>
[
'attributes'
=>
[
'attributes'
=>
[
'mode'
=>
'preview'
,
'mode'
=>
'preview'
,
...
@@ -699,7 +699,7 @@ function my_acf_init_block_types()
...
@@ -699,7 +699,7 @@ function my_acf_init_block_types()
'render_template'
=>
'blocks/seo/hero.php'
,
'render_template'
=>
'blocks/seo/hero.php'
,
'category'
=>
'formatting'
,
'category'
=>
'formatting'
,
'icon'
=>
file_get_contents
(
get_template_directory
()
.
'/assets/img/makura.svg'
),
'icon'
=>
file_get_contents
(
get_template_directory
()
.
'/assets/img/makura.svg'
),
'keywords'
=>
array
(
'Hero Section'
),
'keywords'
=>
array
(
'Hero Section'
,
'makura'
),
'example'
=>
[
'example'
=>
[
'attributes'
=>
[
'attributes'
=>
[
'mode'
=>
'preview'
,
'mode'
=>
'preview'
,
...
@@ -715,7 +715,7 @@ function my_acf_init_block_types()
...
@@ -715,7 +715,7 @@ function my_acf_init_block_types()
'render_template'
=>
'blocks/seo/icon-box.php'
,
'render_template'
=>
'blocks/seo/icon-box.php'
,
'category'
=>
'formatting'
,
'category'
=>
'formatting'
,
'icon'
=>
file_get_contents
(
get_template_directory
()
.
'/assets/img/makura.svg'
),
'icon'
=>
file_get_contents
(
get_template_directory
()
.
'/assets/img/makura.svg'
),
'keywords'
=>
array
(
'SEO - Icon Box Section'
),
'keywords'
=>
array
(
'SEO - Icon Box Section'
,
'icon'
,
'box'
,
'makura'
),
'example'
=>
[
'example'
=>
[
'attributes'
=>
[
'attributes'
=>
[
'mode'
=>
'preview'
,
'mode'
=>
'preview'
,
...
@@ -731,7 +731,7 @@ function my_acf_init_block_types()
...
@@ -731,7 +731,7 @@ function my_acf_init_block_types()
'render_template'
=>
'blocks/seo/quote.php'
,
'render_template'
=>
'blocks/seo/quote.php'
,
'category'
=>
'formatting'
,
'category'
=>
'formatting'
,
'icon'
=>
file_get_contents
(
get_template_directory
()
.
'/assets/img/makura.svg'
),
'icon'
=>
file_get_contents
(
get_template_directory
()
.
'/assets/img/makura.svg'
),
'keywords'
=>
array
(
'SEO - Quote Section'
),
'keywords'
=>
array
(
'SEO - Quote Section'
,
'quote'
,
'makura'
),
'example'
=>
[
'example'
=>
[
'attributes'
=>
[
'attributes'
=>
[
'mode'
=>
'preview'
,
'mode'
=>
'preview'
,
...
@@ -747,7 +747,7 @@ function my_acf_init_block_types()
...
@@ -747,7 +747,7 @@ function my_acf_init_block_types()
'render_template'
=>
'blocks/seo/compare.php'
,
'render_template'
=>
'blocks/seo/compare.php'
,
'category'
=>
'formatting'
,
'category'
=>
'formatting'
,
'icon'
=>
file_get_contents
(
get_template_directory
()
.
'/assets/img/makura.svg'
),
'icon'
=>
file_get_contents
(
get_template_directory
()
.
'/assets/img/makura.svg'
),
'keywords'
=>
array
(
'SEO - Competitive Analysis Form Block'
),
'keywords'
=>
array
(
'SEO - Competitive Analysis Form Block'
,
'competitive analysis'
,
'form'
,
'makura'
),
'example'
=>
[
'example'
=>
[
'attributes'
=>
[
'attributes'
=>
[
'mode'
=>
'preview'
,
'mode'
=>
'preview'
,
...
@@ -763,7 +763,23 @@ function my_acf_init_block_types()
...
@@ -763,7 +763,23 @@ function my_acf_init_block_types()
'render_template'
=>
'blocks/resources/resource-listing.php'
,
'render_template'
=>
'blocks/resources/resource-listing.php'
,
'category'
=>
'formatting'
,
'category'
=>
'formatting'
,
'icon'
=>
file_get_contents
(
get_template_directory
()
.
'/assets/img/makura.svg'
),
'icon'
=>
file_get_contents
(
get_template_directory
()
.
'/assets/img/makura.svg'
),
'keywords'
=>
array
(
'Resources - Resources Listing Block'
),
'keywords'
=>
array
(
'Resources - Resources Listing Block'
,
'resources'
,
'listing'
,
'makura'
),
'example'
=>
[
'attributes'
=>
[
'mode'
=>
'preview'
,
'data'
=>
[],
],
],
));
// Case Study - Banner Block
acf_register_block_type
(
array
(
'name'
=>
'Case Study Banner Block'
,
'title'
=>
__
(
'Case Study Banner Block'
),
'description'
=>
__
(
'Case Study - Banner Block for SEO Pages'
),
'render_template'
=>
'blocks/case-study/case-study-banner.php'
,
'category'
=>
'formatting'
,
'icon'
=>
file_get_contents
(
get_template_directory
()
.
'/assets/img/makura.svg'
),
'keywords'
=>
array
(
'Case Study - Banner Block'
,
'case study'
,
'banner'
,
'hero'
,
'makura'
),
'example'
=>
[
'example'
=>
[
'attributes'
=>
[
'attributes'
=>
[
'mode'
=>
'preview'
,
'mode'
=>
'preview'
,
...
...
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