Commit 5367ccd3 by Arjun Jhukal

updated the to and forth slider

parent a1ca2eee
...@@ -274,12 +274,20 @@ ...@@ -274,12 +274,20 @@
}); });
//customer-feedback-course-detail //customer-feedback-course-detail
$(".client-carouselwrapper").owlCarousel({ $(".client-carouselwrapper").each(function (index) {
loop: false, const isSecond = index === 1;
autoplay: true,
$(this).owlCarousel({
loop: true,
margin: 20, margin: 20,
nav: false, nav: false,
dots: false, dots: false,
autoplay: true,
rtl: isSecond,
slideTransition: "linear",
autoplayTimeout: 2000,
autoplaySpeed: 2000,
autoplayHoverPause: true,
responsive: { responsive: {
0: { 0: {
items: 3, items: 3,
...@@ -290,8 +298,13 @@ ...@@ -290,8 +298,13 @@
1000: { 1000: {
items: 5, items: 5,
}, },
1200: {
items: 6,
},
}, },
}); });
});
//more-course-section //more-course-section
$(".more-course-section").owlCarousel({ $(".more-course-section").owlCarousel({
......
<?php if (get_field('enable_partners_carousel_section')) : ?> <?php if (get_field('enable_partners_carousel_section')) : ?>
<section class="py-80 container-fluid HOME TOP-CAROUSEL-SECTION reversed"> <section class="py-80 container-fluid HOME TOP-CAROUSEL-SECTION reversed">
<div class="container"> <div class="container">
<div class="row mb-60 pb-60 border-bottom"> <div class="row mb-60 pb-60 border-bottom">
<div class="mb-3 text-center title-wrapper"> <div class="mb-3 text-center title-wrapper">
<h5><?php echo get_field('pc_title'); ?></h5> <h5><?php echo get_field('pc_title'); ?></h5>
</div> </div>
<div class="col-lg-10 mx-auto"> <div class="">
<div class="client-carouselwrapper owl-carousel owl-theme mb-4">
<?php
if (have_rows('pc_partners_list')) :
while (have_rows('pc_partners_list')) : the_row(); ?>
<!--<a target="_blank" href="<?php echo get_sub_field('link'); ?>" class="item">-->
<!--<a href="" onclick="return false;" class="item">-->
<?php
$image = get_sub_field('logo');
$size = 'full'; // (thumbnail, medium, large, full or custom size)
if ($image) {
echo wp_get_attachment_image($image, $size);
} ?>
<!--</a>-->
<?php endwhile;
endif; ?>
</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')) : if (have_rows('pc_partners_list')) :
...@@ -25,5 +41,5 @@ ...@@ -25,5 +41,5 @@
</div> </div>
</div> </div>
</div> </div>
</section> </section>
<?php endif; ?> <?php endif; ?>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment