-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcarousel.php
66 lines (63 loc) · 2.49 KB
/
carousel.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<!-- Stylesheets -->
<link rel="stylesheet" href="https://themodernattire.com/stylesheet/carousel.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.carousel.min.css" integrity="sha512-tS3S5qG0BlhnQROyJXvNjeEM4UpMXHrQfTGmbQ1gKmelCxlSEBUaxhRBj/EFTzpbP4RVSrpEikbmdJobCvhE3g==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<!-- Scripts -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/owl.carousel.min.js" integrity="sha512-bPs7Ae6pVvhOSiIcyUClR7/q2OAsRiovw4vAkX+zJbw3ShAeeqezq50RIIcIURq7Oa20rW2n2q+fyXBNcU9lrw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<!-- Carousel Slider -->
<div class="wrapper">
<div class="carousel owl-carousel">
<?php for($i=1; $i < $totalProd; $i++)
{
?>
<?php
if($response[$i][7] == "Unstitched"){
$pg = "salwaar";
}
else{
$pg = "dresses";
}
// $initials = str_replace(" ", "-", $response[$i][1]);
// $encpid = str_replace("/", "-", $response[$i][0]);
$subcat = $response[$i][3];
$subcat = str_replace(array(' ', '%'), '', $subcat);
$uri = "window.location='https://themodernattire.com/$pg?filter=$subcat';";
?>
<div class="card" onclick="<?php echo $uri ?>">
<!-- <div class="card"
onclick="window.location='singleprod.php?key=<?php echo $i ?>&pg=<?php echo $response[0][26] ?>&prcode=<?php echo ($response[$i][0])?>';"> -->
<img src="<?php echo ($response[$i][11]); ?>" alt="<?php echo ($response[$i][1]); ?>"><h5><?php echo ($response[$i][1]); ?></h5>
</div>
<?php
}
?>
</div>
</div>
<!-- Carousel Script -->
<script>
$(".carousel").owlCarousel({
margin: 0,
loop: true,
autoplay: true,
autoplayTimeout: 2000,
autoplayHoverPause: true,
responsive: {
0:{
items: 1,
nav: false
},
600:{
items: 3,
nav: false
},
1000:{
items: 5,
nav: false
},
1400:{
items: 6,
nav: false
}
}
});
</script>