Commit 5367ccd3 by Arjun Jhukal

updated the to and forth slider

parent a1ca2eee
......@@ -274,25 +274,38 @@
});
//customer-feedback-course-detail
$(".client-carouselwrapper").owlCarousel({
loop: false,
autoplay: true,
margin: 20,
nav: false,
dots: false,
responsive: {
0: {
items: 3,
$(".client-carouselwrapper").each(function (index) {
const isSecond = index === 1;
$(this).owlCarousel({
loop: true,
margin: 20,
nav: false,
dots: false,
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").owlCarousel({
loop: false,
......
<?php if (get_field('enable_partners_carousel_section')) : ?>
<section class="py-80 container-fluid HOME TOP-CAROUSEL-SECTION reversed">
<div class="container">
<div class="row mb-60 pb-60 border-bottom">
<div class="mb-3 text-center title-wrapper">
<h5><?php echo get_field('pc_title'); ?></h5>
<section class="py-80 container-fluid HOME TOP-CAROUSEL-SECTION reversed">
<div class="container">
<div class="row mb-60 pb-60 border-bottom">
<div class="mb-3 text-center title-wrapper">
<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 class="col-lg-10 mx-auto">
<div class="client-carouselwrapper owl-carousel owl-theme">
<?php
<div class="client-carouselwrapper owl-carousel owl-theme">
<?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
<!--<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;
<!--</a>-->
<?php endwhile;
endif; ?>
</div>
</div>
</div>
</div>
</section>
</div>
</section>
<?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