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
f524ed46
Commit
f524ed46
authored
Jun 02, 2025
by
rajshah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testimonial fixed
parent
a3f8db7b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
39 deletions
+43
-39
testimonial-block.php
blocks/testimonial-block.php
+43
-39
No files found.
blocks/testimonial-block.php
View file @
f524ed46
<?php
if
(
get_field
(
'enable_section'
))
:?>
<
section
class
="
container
-
fluid
background
-
dark
py
-
80
HOME
OUR
-
CUSTOMERS
-
SAY
-
SECTION
<?
php
if
(
is_singular
(
'portfolio'
))
:
?>
single-what-customers-say
<?php
endif
;
?>
">
<div
class=
"container"
>
<div
class=
"row top-title pb-60 justify-content-between"
>
<div
class=
"col-lg-5 col-md-6 col-12"
>
<h2>
<?php
the_field
(
'title'
);
?>
</h2>
</div>
<div
class=
"col-lg-5 col-md-5 col-12"
>
<?php
the_field
(
'description'
);
?>
<?php
if
(
get_field
(
'enable_section'
))
:
?>
<section
class=
"container-fluid background-dark py-80 HOME OUR-CUSTOMERS-SAY-SECTION
<?php
echo
is_singular
(
'portfolio'
)
?
' single-what-customers-say'
:
''
;
?>
"
>
<div
class=
"container"
>
<div
class=
"row top-title pb-60 justify-content-between"
>
<div
class=
"col-lg-5 col-md-6 col-12"
>
<h2>
<?php
the_field
(
'title'
);
?>
</h2>
</div>
<div
class=
"col-lg-5 col-md-5 col-12"
>
<?php
the_field
(
'description'
);
?>
</div>
</div>
</div>
<?php
$testimonials
=
get_field
(
'testimonials'
);
if
(
$testimonials
)
:
$carousle_type
=
get_field
(
'carousel_type'
);
?>
<div
class=
"row"
>
<div
class=
"
<?php
if
(
$carousle_type
==
3
)
:
echo
'customer-feedback'
;
elseif
(
$carousle_type
==
2
)
:
echo
''
;
else
:
echo
'customer-feedback-portfolio'
;
endif
;
?>
owl-carousel owl-theme"
>
<?php
foreach
(
$testimonials
as
$testimonial
)
:?>
<
div
class
="
item
feedback
-
wrapper
p
-
40
">
<svg width="
29
" height="
25
" viewBox="
0
0
29
25
" fill="
none
" xmlns="
http
://
www
.
w3
.
org
/
2000
/
svg
">
<path
d="
M28
.
6018
0.0012207
V5
.
52334
H26
.
9027
C25
.
5339
5.52334
24.4484
5.73573
23.646
6.16051
C22
.
8437
6.58529
22.2537
7.31685
21.8761
8.3552
C21
.
4985
9.34635
21.3097
10.6915
21.3097
12.3906
V17
.
6295
L19
.
2566
13.6649
C19
.
587
13.4289
20.059
13.2402
20.6726
13.0986
C21
.
2861
12.9098
21.9233
12.8154
22.5841
12.8154
C24
.
1416
12.8154
25.4395
13.311
26.4779
14.3021
C27
.
5162
15.2461
28.0354
16.5676
28.0354
18.2667
C28
.
0354
19.8714
27.5398
21.2402
26.5487
22.3729
C25
.
5575
23.4584
24.1416
24.0012
22.3009
24.0012
C21
.
1209
24.0012
20.0118
23.7416
18.9735
23.2225
C17
.
9823
22.6561
17.1799
21.7121
16.5664
20.3906
C15
.
9528
19.0219
15.646
17.1576
15.646
14.7977
V13
.
5941
C15
.
646
10.2431
16.0944
7.57644
16.9912
5.59414
C17
.
9351
3.61184
19.2802
2.19591
21.0265
1.34635
C22
.
7729
0.449598
24.8968
0.0012207
27.3982
0.0012207
H28
.
6018
ZM12
.
9558
0.0012207
V5
.
52334
H11
.
2566
C9
.
88791
5.52334
8.80236
5.73573
8
6.16051
C7
.
19764
6.58529
6.60767
7.31685
6.23009
8.3552
C5
.
85251
9.34635
5.66372
10.6915
5.66372
12.3906
V17
.
6295
L3
.
61062
13.6649
C3
.
941
13.4289
4.41298
13.2402
5.02655
13.0986
C5
.
64012
12.9098
6.27729
12.8154
6.93805
12.8154
C8
.
49558
12.8154
9.79351
13.311
10.8319
14.3021
C11
.
8702
15.2461
12.3894
16.5676
12.3894
18.2667
C12
.
3894
19.8714
11.8938
21.2402
10.9027
22.3729
C9
.
91151
23.4584
8.49558
24.0012
6.65487
24.0012
C5
.
47493
24.0012
4.36578
23.7416
3.32743
23.2225
C2
.
33628
22.6561
1.53392
21.7121
0.920354
20.3906
C0
.
306785
19.0219
0
17.1576
0
14.7977
V13
.
5941
C0
10.2431
0.448378
7.57644
1.34513
5.59414
C2
.
28909
3.61184
3.63422
2.19591
5.38053
1.34635
C7
.
12684
0.449598
9.25074
0.0012207
11.7522
0.0012207
H12
.
9558
Z
"
fill="
#005AFF" />
</
svg
>
<?
php
echo
get_the_content
(
null
,
false
,
$testimonial
);
?>
<hr>
<div
class=
"author-info d-flex align-items-center"
>
<?php
echo
get_the_post_thumbnail
(
$testimonial
);
?>
<div
class=
"detail"
>
<div>
<?php
the_field
(
'name'
,
$testimonial
);
?>
</div>
<span>
<?php
the_field
(
'profession'
,
$testimonial
);
?>
</span>
<?php
$testimonials
=
get_field
(
'testimonials'
);
if
(
$testimonials
)
:
$carousle_type
=
get_field
(
'carousel_type'
);
?>
<div
class=
"row"
>
<div
class=
"
<?php
if
(
$carousle_type
==
3
)
:
echo
'customer-feedback'
;
elseif
(
$carousle_type
==
2
)
:
echo
''
;
else
:
echo
'customer-feedback-portfolio'
;
endif
;
?>
owl-carousel owl-theme"
>
<?php
foreach
(
$testimonials
as
$testimonial
)
:
?>
<div
class=
"item feedback-wrapper p-40"
>
<svg
width=
"29"
height=
"25"
viewBox=
"0 0 29 25"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
>
<path
d=
"M28.6018 0.0012207V5.52334H26.9027C25.5339 5.52334 24.4484 5.73573 23.646 6.16051C22.8437 6.58529 22.2537 7.31685 21.8761 8.3552C21.4985 9.34635 21.3097 10.6915 21.3097 12.3906V17.6295L19.2566 13.6649C19.587 13.4289 20.059 13.2402 20.6726 13.0986C21.2861 12.9098 21.9233 12.8154 22.5841 12.8154C24.1416 12.8154 25.4395 13.311 26.4779 14.3021C27.5162 15.2461 28.0354 16.5676 28.0354 18.2667C28.0354 19.8714 27.5398 21.2402 26.5487 22.3729C25.5575 23.4584 24.1416 24.0012 22.3009 24.0012C21.1209 24.0012 20.0118 23.7416 18.9735 23.2225C17.9823 22.6561 17.1799 21.7121 16.5664 20.3906C15.9528 19.0219 15.646 17.1576 15.646 14.7977V13.5941C15.646 10.2431 16.0944 7.57644 16.9912 5.59414C17.9351 3.61184 19.2802 2.19591 21.0265 1.34635C22.7729 0.449598 24.8968 0.0012207 27.3982 0.0012207H28.6018ZM12.9558 0.0012207V5.52334H11.2566C9.88791 5.52334 8.80236 5.73573 8 6.16051C7.19764 6.58529 6.60767 7.31685 6.23009 8.3552C5.85251 9.34635 5.66372 10.6915 5.66372 12.3906V17.6295L3.61062 13.6649C3.941 13.4289 4.41298 13.2402 5.02655 13.0986C5.64012 12.9098 6.27729 12.8154 6.93805 12.8154C8.49558 12.8154 9.79351 13.311 10.8319 14.3021C11.8702 15.2461 12.3894 16.5676 12.3894 18.2667C12.3894 19.8714 11.8938 21.2402 10.9027 22.3729C9.91151 23.4584 8.49558 24.0012 6.65487 24.0012C5.47493 24.0012 4.36578 23.7416 3.32743 23.2225C2.33628 22.6561 1.53392 21.7121 0.920354 20.3906C0.306785 19.0219 0 17.1576 0 14.7977V13.5941C0 10.2431 0.448378 7.57644 1.34513 5.59414C2.28909 3.61184 3.63422 2.19591 5.38053 1.34635C7.12684 0.449598 9.25074 0.0012207 11.7522 0.0012207H12.9558Z"
fill=
"#005AFF"
/>
</svg>
<?php
echo
get_the_content
(
null
,
false
,
$testimonial
);
?>
<hr>
<div
class=
"author-info d-flex align-items-center"
>
<?php
echo
get_the_post_thumbnail
(
$testimonial
);
?>
<div
class=
"detail"
>
<div>
<?php
the_field
(
'name'
,
$testimonial
);
?>
</div>
<span>
<?php
the_field
(
'profession'
,
$testimonial
);
?>
</span>
</div>
</div>
</div>
<
/div
>
<
?php
endforeach
;
?
>
</div>
</div>
<?php
endforeach
;
?>
</div>
<?php
endif
;
?>
</div>
<?php
endif
;
?>
</div>
</section>
<?php
endif
;
?>
\ No newline at end of file
</section>
<?php
endif
;
?>
\ 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