Commit 5367ccd3 by Arjun Jhukal

updated the to and forth slider

parent a1ca2eee
...@@ -274,25 +274,38 @@ ...@@ -274,25 +274,38 @@
}); });
//customer-feedback-course-detail //customer-feedback-course-detail
$(".client-carouselwrapper").owlCarousel({ $(".client-carouselwrapper").each(function (index) {
loop: false, const isSecond = index === 1;
autoplay: true,
margin: 20, $(this).owlCarousel({
nav: false, loop: true,
dots: false, margin: 20,
responsive: { nav: false,
0: { dots: false,
items: 3, autoplay: true,
rtl: isSecond,
slideTransition: "linear",
autoplayTimeout: 2000,
autoplaySpeed: 2000,
autoplayHoverPause: true,
responsive: {
0: {
items: 3,
},
600: {
items: 4,
},
1000: {
items: 5,
},
1200: {
items: 6,
},
}, },
600: { });
items: 4,
},
1000: {
items: 5,
},
},
}); });
//more-course-section //more-course-section
$(".more-course-section").owlCarousel({ $(".more-course-section").owlCarousel({
loop: false, loop: false,
......
<?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 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>
<div class="col-lg-10 mx-auto"> <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')) :
while (have_rows('pc_partners_list')) : the_row(); ?> while (have_rows('pc_partners_list')) : the_row(); ?>
<!--<a target="_blank" href="<?php echo get_sub_field('link'); ?>" class="item">--> <!--<a target="_blank" href="<?php echo get_sub_field('link'); ?>" class="item">-->
<!--<a href="" onclick="return false;" class="item">--> <!--<a href="" onclick="return false;" class="item">-->
<?php <?php
$image = get_sub_field('logo'); $image = get_sub_field('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>--> <!--</a>-->
<?php endwhile; <?php endwhile;
endif; ?> endif; ?>
</div>
</div> </div>
</div> </div>
</div> </div>
</section> </div>
</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