<?php

$admin_sql = mysqli_query($dbcon, "select * from admin_details");
$admin_res = mysqli_fetch_array($admin_sql);
$homepage = mysqli_query($dbcon, "select * from static_pages where pageID='2' and status='Y'");
$home_res = mysqli_fetch_array($homepage);
$query = "Select catID,catName, displayName from category_tbl where parentID='1' and status='Y' limit 0,6";
$sqlMain = mysqli_query($dbcon, $query);
?>
<footer class="web-pulse-india">
	<div class="container">
		<div class="row">
			<div class="col-sm-12 col-lg-3 col-md-3 col-xl-3 col-xxl-3 wow fadeInDown" data-wow-delay=".5s">
				<div class="title5">About <span>Mangla Plastic Industries</span></div>
				<?php echo html_entity_decode($home_res['pageDesc1']); ?>
				<div class="clearfix"></div>
				<a class="read_more_btn" href="<?= SITE_URL_PATH; ?>/about.htm" title="Read More"><span>Read More</span></a>
			</div>
			<div class="col-sm-12 col-lg-3 col-md-3 col-xl-3 col-xxl-3  wow fadeInDown" data-wow-delay=".3s">
				<div class="title5">Important <span>Links</span></div>
				<ul class="footer-links">
					<li><a href="<?= SITE_URL_PATH; ?>" title="Home"> Home</a></li>
					<li><a href="<?= SITE_URL_PATH; ?>/about.htm" title="Company Profile"> Company Profile</a></li>
					<li><a href="<?= SITE_URL_PATH; ?>/our-certification.htm" title="Our Certification">Our Certification</a></li>
					<li><a href="<?= SITE_URL_PATH; ?>/photo-gallery.htm" title="Photo Gallery">Photo Gallery</a></li>
					<li><a href="<?= SITE_URL_PATH; ?>/blog.htm" title="Blog"> Blog</a></li>
					<li><a href="<?= SITE_URL_PATH; ?>/contact.htm" title="Contact Us"> Contact Us</a></li>
					<!--					<li><a href="<?= SITE_URL_PATH; ?>/faq.htm" title="Market Area">Faq</a></li>-->
					<li><a href="<?= SITE_URL_PATH; ?>/sitemap.htm" title="Sitemap"> Sitemap</a></li>
					<li><a href="<?= SITE_URL_PATH; ?>/market-area.htm" title="Market Area"> Market Area</a></li>

				</ul>
			</div>
			<div class="col-sm-12 col-lg-3 col-md-3 col-xl-3 col-xxl-3 wow fadeInDown" data-wow-delay=".4s">
				<div class="title5">Our <span>Products</span></div>
				<ul class="footer-links">
					<?php while ($res_foot = mysqli_fetch_array($sqlMain)) { ?>
						<li><a href="<?= SITE_URL_PATH; ?>/<?= getValidFileName($ca_nam1); ?>/<?= getValidFileName($res_foot['catName']); ?>.htm" title="<?php echo  $res_foot['catName']; ?>"><?php echo  $res_foot['catName']; ?></a></li>
					<?php } ?>
					<!--<li><a  href="<?= SITE_URL_PATH; ?>/our-products.htm" title="View All">View All</a></li>-->
				</ul>
			</div>
			<div class="col-sm-12 col-lg-3 col-md-3 col-xl-3 col-xxl-3 wow fadeInDown" data-wow-delay=".7s">
				<div class="title5">Contact <span>us</span></div>
				<address>
					<div class="address_group">
						<strong>Headquarters:</strong>
					 <?= html_entity_decode($admin_res['address']); ?> 
					</div>
					<div class="address_group">
						<strong>Phone:</strong>
						<p><a href="tel:<?= $admin_res['phone']; ?>"><?= $admin_res['phone']; ?></a></p>
						<p><a href="tel:<?= $admin_res['mobile']; ?>"><?= $admin_res['mobile']; ?></a></p>
					</div>
				</address>
				<div class="title5">Follow <span>us at:</span></div>
				<ul class="social-icons">
					<li><a class="facebook" href="<?= $admin_res['facebook_link']; ?>" target="_blank"><i class="fa-brands fa-facebook-f"></i></a></li>
					<li><a class="twitter" href="<?= $admin_res['twitter_link']; ?>" target="_blank">
							<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-twitter-x" viewBox="0 0 16 16">
								<path d="M12.6.75h2.454l-5.36 6.142L16 15.25h-4.937l-3.867-5.07-4.425 5.07H.316l5.733-6.57L0 .75h5.063l3.495 4.633L12.601.75Zm-.86 13.028h1.36L4.323 2.145H2.865z" />
							</svg>
						</a></li>
					<li><a class="instagram" href="<?= $admin_res['instagram_link']; ?>" target="_blank"><i class="fa-brands fa-instagram"></i></a></li>
					<li><a class="youtube" href="<?= $admin_res['youtube_link']; ?>" target="_blank"><i class="fa-brands fa-youtube"></i></a></li>
				</ul>
			</div>
		</div>
	</div>
</footer>
<div class="wps_copy">
	<div class="container">
		<div class="row">
			<div class="col-sm-12 col-lg-5 col-md-5 col-xl-5 col-xxl-5">&copy; <?php echo Date('Y'); ?> Mangla Plastic Industries. All Rights Reserved.</div>
			<div class="col-sm-12 col-lg-7 col-md-7 col-xl-7 col-xxl-7 text-right">Crafted with <i class="fa-solid fa-heart"></i> by Webpulse - <a href="https://www.webpulseindia.com/web-designing" target="_blank" title="Web Designing" style="display:inline;font-size:13px">Web Designing,</a> <a href="https://www.webpulseindia.com/digital-marketing" target="_blank" title="Digital Marketing" style="display:inline;font-size:13px">Digital Marketing &</a> <a href="https://www.webpulseindia.com/branding" target="_blank" title="Branding Company" style="display:inline;font-size:13px">Branding Company </a> </div>
		</div>
	</div>
</div>