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
f9ddb829
Commit
f9ddb829
authored
Jun 11, 2025
by
Arjun Jhukal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated the minor changes
parent
40f6538e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
45 deletions
+47
-45
partners-carousel.php
blocks/partners-carousel.php
+14
-13
welcome-banner.php
blocks/welcome-banner.php
+33
-32
No files found.
blocks/partners-carousel.php
View file @
f9ddb829
...
@@ -24,20 +24,21 @@
...
@@ -24,20 +24,21 @@
</div>
</div>
<div
class=
"client-carouselwrapper owl-carousel owl-theme"
>
<div
class=
"client-carouselwrapper owl-carousel owl-theme"
>
<?php
<?php
if
(
have_rows
(
'pc_partners_list'
))
:
$partners
=
get_field
(
'pc_partners_list'
);
// Get entire repeater as array
while
(
have_rows
(
'pc_partners_list'
))
:
the_row
();
?>
if
(
$partners
)
{
<!--<a target="_blank" href="
<?php
echo
get_sub_field
(
'link'
);
?>
" class="item">-->
$partners
=
array_reverse
(
$partners
);
// Reverse the order
<!--<a href="" onclick="return false;" class="item">-->
<?php
foreach
(
$partners
as
$partner
)
{
$image
=
get_sub_field
(
'logo'
)
;
$image
=
$partner
[
'logo'
]
;
$size
=
'full'
;
// (thumbnail, medium, large, full or custom size)
$size
=
'full'
;
// thumbnail, medium, large, full or custom size
if
(
$image
)
{
if
(
$image
)
{
echo
wp_get_attachment_image
(
$image
,
$size
);
echo
wp_get_attachment_image
(
$image
,
$size
);
}
?>
}
<!--</a>-->
}
<?php
endwhile
;
}
endif
;
?>
?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
blocks/welcome-banner.php
View file @
f9ddb829
<?php
if
(
get_field
(
'enable_welcome_banner_section'
))
:
?>
<?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=
"container"
>
<div
class=
"row align-items-center"
>
<div
class=
"row align-items-center"
>
<div
class=
"col-lg-6 col-md-6 col-12 mx-auto order-md-2"
>
<div
class=
"col-lg-6 col-md-6 col-12 mx-auto order-md-2"
>
<?php
$enable_interactive_spider
=
get_field
(
'enable_interactive_spider'
)
?:
''
;
<?php
$enable_interactive_spider
=
get_field
(
'enable_interactive_spider'
)
?:
''
;
if
(
isset
(
$enable_interactive_spider
)
&&
$enable_interactive_spider
)
:
if
(
isset
(
$enable_interactive_spider
)
&&
$enable_interactive_spider
)
:
if
(
wp_is_mobile
()){
if
(
wp_is_mobile
()){
$spiderInlineCss
=
'style="width: 375px; height: 400px;"'
;
$spiderInlineCss
=
'style="width: 375px; height: 400px;"'
;
...
@@ -11,8 +11,8 @@
...
@@ -11,8 +11,8 @@
$spiderInlineCss
=
'style="width: 500px; height: 400px;"'
;
$spiderInlineCss
=
'style="width: 500px; height: 400px;"'
;
}
}
?>
?>
<canvas
id=
"scratch"
<?php
echo
$spiderInlineCss
;
?>
></canvas>
<canvas
id=
"scratch"
<?php
echo
$spiderInlineCss
;
?>
></canvas>
<?php
else
:
<?php
else
:
$image
=
get_field
(
'banner_image'
);
$image
=
get_field
(
'banner_image'
);
$size
=
'full'
;
$size
=
'full'
;
if
(
$image
)
{
if
(
$image
)
{
...
@@ -20,22 +20,22 @@
...
@@ -20,22 +20,22 @@
}
}
endif
;
endif
;
?>
?>
</div>
<div
class=
"col-lg-5 col-md-5 col-12 mx-auto left-text order-md-1"
>
<div
class=
"position-relative left-text-wrapper"
>
<h1>
<?php
echo
get_field
(
'wb_title'
)
?>
</h1>
<p>
<?php
echo
get_field
(
'wb_subtitle'
)
?>
</p>
</div>
</div>
<div
class=
"col-lg-5 col-md-5 col-12 mx-auto left-text order-md-1"
>
<div
class=
"button-wrapper"
>
<div
class=
"position-relative left-text-wrapper"
>
<a
href=
"
<?php
echo
get_field
(
'wb_button_link'
)
?>
"
<h1>
<?php
echo
get_field
(
'wb_title'
)
?>
</h1>
class=
"btn btn-start-project btn-primary"
>
<?php
echo
get_field
(
'wb_button_text'
)
?>
<svg
<p>
<?php
echo
get_field
(
'wb_subtitle'
)
?>
</p>
width=
"24"
height=
"24"
viewBox=
"0 0 24 24"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
>
</div>
<path
fill-rule=
"evenodd"
clip-rule=
"evenodd"
<div
class=
"button-wrapper"
>
d=
"M4 13L16.17 13L10.58 18.59L12 20L20 12L12 4L10.59 5.41L16.17 11L4 11L4 13Z"
<a
href=
"
<?php
echo
get_field
(
'wb_button_link'
)
?>
"
fill=
"white"
></path>
class=
"btn btn-start-project btn-primary"
>
<?php
echo
get_field
(
'wb_button_text'
)
?>
<svg
</svg></a>
width=
"24"
height=
"24"
viewBox=
"0 0 24 24"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
>
</div>
<path
fill-rule=
"evenodd"
clip-rule=
"evenodd"
<?php
d=
"M4 13L16.17 13L10.58 18.59L12 20L20 12L12 4L10.59 5.41L16.17 11L4 11L4 13Z"
fill=
"white"
></path>
</svg></a>
</div>
<?php
$review_widget
=
get_field
(
'review_widget'
)
?:
[];
$review_widget
=
get_field
(
'review_widget'
)
?:
[];
if
(
isset
(
$review_widget
)
&&
is_array
(
$review_widget
)
&&
!
empty
(
$review_widget
))
:
if
(
isset
(
$review_widget
)
&&
is_array
(
$review_widget
)
&&
!
empty
(
$review_widget
))
:
$enable_review_widget
=
$review_widget
[
'enable_review_widget'
]
?:
''
;
$enable_review_widget
=
$review_widget
[
'enable_review_widget'
]
?:
''
;
...
@@ -43,26 +43,26 @@
...
@@ -43,26 +43,26 @@
$review_items
=
$review_widget
[
'widget_items'
]
?:
''
;
$review_items
=
$review_widget
[
'widget_items'
]
?:
''
;
if
(
isset
(
$review_items
)
&&
is_array
(
$review_items
)
&&
!
empty
(
$review_items
))
:
if
(
isset
(
$review_items
)
&&
is_array
(
$review_items
)
&&
!
empty
(
$review_items
))
:
?>
?>
<div
class=
"review-block d-flex
"
>
<div
class=
"review-block d-flex gap-2 flex-wrap
"
>
<?php
foreach
(
$review_items
as
$i
=>
$item
)
:
<?php
foreach
(
$review_items
as
$i
=>
$item
)
:
$widget
=
$item
[
'widget'
]
??
''
;
$widget
=
$item
[
'widget'
]
??
''
;
if
(
empty
(
$widget
))
continue
;
if
(
empty
(
$widget
))
continue
;
if
(
$i
===
1
)
{
if
(
$i
===
1
)
{
$widget
=
do_shortcode
(
$widget
);
$widget
=
do_shortcode
(
$widget
);
};
};
?>
?>
<div
class=
"review d-flex align-items-center bg-white rounded-2"
>
<div
class=
"review d-flex align-items-center bg-white rounded-2"
>
<?php
echo
$widget
;
?>
<?php
echo
$widget
;
?>
</div>
</div>
<?php
endforeach
;
?>
<?php
endforeach
;
?>
</div>
</div>
<?php
endif
;
<?php
endif
;
endif
;
endif
;
endif
;
?>
endif
;
?>
</div>
</div>
</div>
</div>
</div>
</section>
</div>
</section>
<?php
endif
;
?>
<?php
endif
;
?>
<script
type=
"text/javascript"
src=
"https://widget.clutch.co/static/js/widget.js"
></script>
<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