Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Jeff Balicki
/
st_joseph
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
7185b7c0
authored
2023-03-24 11:31:12 -0400
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
testimonials_items
Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent
c13446e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
17 deletions
wp-content/themes/crlg/blocks/carousel/carousel.php
wp-content/themes/crlg/blocks/carousel/carousel.php
View file @
7185b7c
...
...
@@ -40,24 +40,18 @@ $carousel_style = get_field('carousel_style');
<?php
if
(
have_rows
(
'testimonials_items'
)
)
:
?>
<div
class=
"testimonials-carousel carousel-items
<?php
echo
$size
;
?>
"
><div
class=
'swiper-wrapper'
>
<?php
while
(
the_repeater_field
(
'testimonials_items'
)
)
:
?>
<div
class=
"swiper-slide"
>
<div
id=
"
<?php
echo
esc_attr
(
$id
);
?>
"
class=
" testimonials"
>
<?php
$image
=
get_sub_field
(
'image'
);
?>
<div
class=
"row"
>
<div
class=
"col-lg-4 col-md-1 testimonial-image"
style=
background-image:url(
<?php
echo
$image
[
'url'
];
?>
);
>
</div>
<div
class=
"col-lg-8 col-md-1"
>
<div
class=
"testimonial-text"
><p>
<?php
the_sub_field
(
'text'
);
?>
</p></div></div>
</div>
</div>
<?php
while
(
the_repeater_field
(
'testimonials_items'
)
)
:
?>
<div
class=
"swiper-slide"
>
<div
class=
" testimonials"
>
<?php
$image
=
get_sub_field
(
'image'
);
?>
<div
class=
"row"
>
<div
class=
"col-lg-4 col-md-1 testimonial-image"
style=
background-image:url(
<?php
echo
$image
[
'url'
];
?>
);
></div>
<div
class=
"col-lg-8 col-md-1"
>
<div
class=
"testimonial-text"
>
<?php
the_sub_field
(
'text'
);
?>
</div>
</div>
</div>
</div>
</div>
<?php
endwhile
;
?>
</div>
<div
class=
"swiper-pagination"
></div>
...
...
Please
register
or
sign in
to post a comment