/
home
/
u775757334
/
domains
/
civicwelllife.com
/
public_html
/
include
/
/home/u775757334/domains/civicwelllife.com/public_html/include
mkdir
upload
Name
Size
Mode
Actions
about1.php
1746
0644
edit
dl
rm
about2.php
3128
0644
edit
dl
rm
blog-section.php
8307
0644
edit
dl
rm
category-list.php
5334
0644
edit
dl
rm
category-wise-product.php
4868
0644
edit
dl
rm
category.php
2107
0644
edit
dl
rm
client-section.php
2156
0644
edit
dl
rm
cta-banner.php
405
0644
edit
dl
rm
cta-section-1.php
1180
0644
edit
dl
rm
cta-section.php
1165
0644
edit
dl
rm
customer-menu.php
382
0644
edit
dl
rm
day-offer.php
13055
0644
edit
dl
rm
doctor-menu.php
1478
0644
edit
dl
rm
footer-file.php
1779
0644
edit
dl
rm
footer-tab.php
1928
0644
edit
dl
rm
footer.php
11953
0644
edit
dl
rm
header-file.php
658
0644
edit
dl
rm
header-top.php
4157
0644
edit
dl
rm
header.php
19312
0644
edit
dl
rm
impact-section.php
2841
0644
edit
dl
rm
mobile-category.php
1292
0644
edit
dl
rm
mobile-menu.php
8536
0644
edit
dl
rm
model.php
49991
0644
edit
dl
rm
offer.php
2821
0644
edit
dl
rm
product-slide.php
7439
0644
edit
dl
rm
related-product.php
11034
0644
edit
dl
rm
shopping-cart.php
1938
0644
edit
dl
rm
slider.php
2252
0644
edit
dl
rm
testimonial.php
2023
0644
edit
dl
rm
trust-section.php
3902
0644
edit
dl
rm
video-section.php
4045
0644
edit
dl
rm
yt-section.php
4945
0644
edit
dl
rm
Edit:
/home/u775757334/domains/civicwelllife.com/public_html/include/trust-section.php
(3902B)
<section class="trust-section"> <div class="container"> <div class="section-header text-center"> <h2 class="trust-title">Trust of 10 K+ Satisfied Families</h2> </div> <div class="swiper trust-swiper" data-preview="6" data-tablet="3" data-mobile="2" data-space-lg="25" data-space-md="20" data-space="15" data-loop="false" data-auto-play="false"> <div class="swiper-wrapper"> <!-- Slide 1 --> <?php $sql = mysqli_query($conn, " SELECT y.*, p.name as product_name, p.sale_price ,p.url FROM tbl_youtube y LEFT JOIN tbl_product p ON p.id = y.product_id where vedio_type = 1 ORDER BY y.id DESC "); while ($row = mysqli_fetch_assoc($sql)) { $video_id = ''; if (strpos($row['link'], 'youtu.be') !== false) { $video_id = basename($row['link']); } elseif (strpos($row['link'], 'watch?v=') !== false) { parse_str(parse_url($row['link'], PHP_URL_QUERY), $params); $video_id = $params['v'] ?? ''; } elseif (strpos($row['link'], 'shorts/') !== false) { $parts = explode('shorts/', $row['link']); $video_id = explode('?', $parts[1])[0]; } $thumbnail = "https://img.youtube.com/vi/$video_id/hqdefault.jpg"; ?> <div class="swiper-slide"> <div class="trust-card"> <!-- VIDEO --> <div class="video-box"> <iframe id="player<?= $row['id'] ?>" src="https://www.youtube.com/embed/<?= $video_id ?>?autoplay=1&mute=1&enablejsapi=1&controls=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen> </iframe> <div class="mute-overlay" onclick="unmuteVideo('player<?= $row['id'] ?>', this)"> 🔇 Tap for sound </div> </div> <!-- PRODUCT INFO --> <div class="product-info"> <h6><?= $row['product_name'] ?></h6> <p>Starting from ₹<?= $row['sale_price'] ?></p> <a href="product-detail.php?url=<?= $row['url'] ?>" class="buy-btn"> BUY NOW </a> </div> </div> </div> <?php } ?> </div> </div> <!-- <div class="text-center mt-4"> <a href="#" class="more-videos-btn">SEE MORE VIDEOS</a> </div> --> </div> </section> <style> /* .video-box { position: relative; height: 300px; border-radius: 12px; overflow: hidden; } */ .video-box iframe { width: 100%; height: 100%; } .mute-overlay { position: absolute; bottom: 10px; left: 10px; background: rgba(0, 0, 0, 0.6); color: #fff; padding: 6px 12px; border-radius: 6px; cursor: pointer; } </style>
Save
cmd:
run