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
0dd1fa9b
Commit
0dd1fa9b
authored
May 30, 2025
by
rajshah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widget added
parent
78825e64
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
9 deletions
+23
-9
welcome-banner.php
blocks/welcome-banner.php
+23
-9
No files found.
blocks/welcome-banner.php
View file @
0dd1fa9b
<?php
if
(
get_field
(
'enable_welcome_banner_section'
))
:
?>
<section
class=
"bg-secondary background-dark py-80 HOME TOP-BANNER-SECTION"
>
<section
class=
"bg-secondary background-dark py-80 HOME TOP-BANNER-SECTION"
>
<div
class=
"container"
>
<div
class=
"row align-items-center"
>
<div
class=
"col-lg-5 col-md-5 col-12 mx-auto left-text"
>
...
...
@@ -11,17 +11,30 @@
<a
href=
"
<?php
echo
get_field
(
'wb_button_link'
)
?>
"
class=
"btn btn-start-project btn-primary"
>
<?php
echo
get_field
(
'wb_button_text'
)
?>
</a>
</div>
<?php
$review_widget
=
get_field
(
'review_widget'
)
?:
[];
if
(
isset
(
$review_widget
)
&&
is_array
(
$review_widget
)
&&
!
empty
(
$review_widget
))
:
$enable_review_widget
=
$review_widget
[
'enable_review_widget'
]
?:
''
;
if
(
!
empty
(
$enable_review_widget
)
&&
isset
(
$enable_review_widget
)
&&
$enable_review_widget
)
:
$review_items
=
$review_widget
[
'widget_items'
]
?:
''
;
if
(
isset
(
$review_items
)
&&
is_array
(
$review_items
)
&&
!
empty
(
$review_items
))
:
?>
<div
class=
"review-block d-flex"
>
<?php
foreach
(
$review_items
as
$i
=>
$item
)
:
$widget
=
$item
[
'widget'
]
??
''
;
if
(
empty
(
$widget
))
continue
;
if
(
$i
===
1
)
{
$widget
=
do_shortcode
(
$widget
);
};
?>
<div
class=
"review bg-white rounded-2"
>
<div
class=
"clutch-widget"
data-url=
"https://widget.clutch.co"
data-widget-type=
"2"
data-height=
"45"
data-nofollow=
"true"
data-expandifr=
"true"
data-scale=
"100"
data-clutchcompany-id=
"2395284"
></div>
</div>
<div
class=
"review"
>
<img
src=
"
<?php
echo
get_parent_theme_file_uri
()
?>
/assets/img/banner-image-02.png"
alt=
""
class=
"img-fluid"
>
<?php
echo
$widget
;
?>
</div>
<?php
endforeach
;
?>
</div>
<?php
endif
;
endif
;
endif
;
?>
</div>
<div
class=
"col-lg-6 col-md-6 col-12 mx-auto"
>
<?php
...
...
@@ -33,7 +46,7 @@
</div>
</div>
</div>
</section>
</section>
<?php
endif
;
?>
<script
type=
"text/javascript"
src=
"https://widget.clutch.co/static/js/widget.js"
></script>
\ 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