🤩 File Manager - Mr.X
PHP:
8.3.33
Server:
Apache
OS:
Linux 5.14.0-611.49.1.el9_7.x86_64
User:
websparkit
Navigate
Upload:
Upload
New File
New Folder
Editing:public_footer.php
<?php // includes/public_footer.php — Shared Premium Footer Layout // Fetch admin settings as a fallback if not already loaded in the parent page context if (!isset($settings) && isset($pdo)) { $settings = get_admin_settings($pdo); } // Resolve relative path conflicts when included from subfolders (like orders/) $footer_prefix = file_exists('assets/images/logo.jpg') ? '' : '../'; ?> <footer class="premium-footer py-5 text-white-50 mt-auto" style="background-color: #0A2540 !important;"> <div class="container"> <div class="row g-4 mb-5"> <!-- Col 1: Brand & Logo Highlights --> <div class="col-lg-4 col-md-6"> <div class="d-flex align-items-center gap-3 mb-3"> <img src="<?php echo $footer_prefix; ?>assets/images/logo.jpg" alt="Royal Curtain Logo" class="rounded-circle border border-warning border-2" style="height: 72px; width: 72px; object-fit: cover;"> <div> <h4 class="brand-font text-warning mb-0 fs-4">Royal Curtain</h4> <small class="text-white-50 text-uppercase tracking-wider" style="font-size: 0.75rem;">Decorators & Drapes</small> </div> </div> <p class="small lh-lg mb-4 text-white-50"> Transforming window dynamics, upgrading room aesthetics, and crafting bespoke drapery solutions. We provide high-quality materials and motorized tracking for your homes and offices. </p> <div class="footer-socials d-flex gap-2"> <a href="#" class="social-link" title="Facebook"><i class="fa-brands fa-facebook-f"></i></a> <a href="#" class="social-link" title="Instagram"><i class="fa-brands fa-instagram"></i></a> <a href="#" class="social-link" title="Pinterest"><i class="fa-brands fa-pinterest-p"></i></a> <?php if (!empty($settings['admin_whatsapp'])): ?> <a href="https://wa.me/<?php echo clean_phone_number($settings['admin_whatsapp']); ?>" target="_blank" class="social-link" title="WhatsApp"><i class="fa-brands fa-whatsapp"></i></a> <?php endif; ?> </div> </div> <!-- Col 2: Navigation Links --> <div class="col-lg-2 col-md-6 col-6"> <h6 class="text-white fw-bold mb-3 text-uppercase font-monospace text-gold">Explore</h6> <ul class="list-unstyled footer-links mb-0"> <li><a href="<?php echo $footer_prefix; ?>index.php"><i class="fas fa-chevron-right me-1 small"></i> Home</a></li> <li><a href="<?php echo $footer_prefix; ?>orders/"><i class="fas fa-chevron-right me-1 small"></i> Order Now</a></li> <li><a href="<?php echo $footer_prefix; ?>about.php"><i class="fas fa-chevron-right me-1 small"></i> About Us</a></li> <li><a href="<?php echo $footer_prefix; ?>gallery.php"><i class="fas fa-chevron-right me-1 small"></i> Fabric Gallery</a></li> <li><a href="<?php echo $footer_prefix; ?>contact.php"><i class="fas fa-chevron-right me-1 small"></i> Contact Us</a></li> </ul> </div> <!-- Col 3: Features Showcase --> <div class="col-lg-2 col-md-6 col-6"> <h6 class="text-white fw-bold mb-3 text-uppercase font-monospace text-gold">Services</h6> <ul class="list-unstyled footer-links mb-0"> <li><a href="<?php echo $footer_prefix; ?>orders/"><i class="fas fa-sliders-h me-1 small"></i> Pleat Customizer</a></li> <li><a href="<?php echo $footer_prefix; ?>about.php#materials"><i class="fas fa-swatchbook me-1 small"></i> Material Chips</a></li> <li><a href="<?php echo $footer_prefix; ?>about.php#why"><i class="fas fa-award me-1 small"></i> Core Promises</a></li> <li><a href="<?php echo $footer_prefix; ?>gallery.php"><i class="fas fa-images me-1 small"></i> Real Samples</a></li> <li><a href="<?php echo $footer_prefix; ?>admin/"><i class="fas fa-user-shield me-1 small"></i> Staff Console</a></li> </ul> </div> <!-- Col 4: Contact details --> <div class="col-lg-4 col-md-6"> <h6 class="text-white fw-bold mb-3 text-uppercase font-monospace text-gold">Showroom Details</h6> <ul class="list-unstyled footer-contact mb-0 text-white-50"> <li class="mb-3 d-flex align-items-start gap-2"> <i class="fa-solid fa-location-dot mt-1 text-warning"></i> <span><?php echo htmlspecialchars($settings['admin_address'] ?? 'No. 45, Galle Road, Colombo, Sri Lanka'); ?></span> </li> <li class="mb-2 d-flex align-items-center gap-2"> <i class="fa-solid fa-envelope text-warning"></i> <a href="mailto:<?php echo htmlspecialchars($settings['admin_email'] ?? 'sales@royalcurtain.com'); ?>" class="text-white-50 text-decoration-none"> <?php echo htmlspecialchars($settings['admin_email'] ?? 'sales@royalcurtain.com'); ?> </a> </li> <li class="mb-2 d-flex align-items-center gap-2"> <i class="fa-brands fa-whatsapp text-success"></i> <a href="https://wa.me/<?php echo !empty($settings['admin_whatsapp']) ? clean_phone_number($settings['admin_whatsapp']) : '94771234567'; ?>" target="_blank" class="text-white-50 text-decoration-none"> +<?php echo htmlspecialchars($settings['admin_whatsapp'] ?? '94771234567'); ?> </a> </li> <li class="d-flex align-items-center gap-2"> <i class="fa-solid fa-clock text-warning"></i> <span>Mon – Sat: 8:30 AM – 6:00 PM</span> </li> </ul> </div> </div> <hr class="border-secondary mb-4 opacity-25"> <div class="text-center text-white-50 small"> <p class="mb-0">© <?php echo date('Y'); ?> Royal Curtain. All Rights Reserved. Designed with Luxury Aesthetics.</p> </div> </div> </footer> <!-- Scroll Reveal Animation JS --> <script src="<?php echo $footer_prefix; ?>assets/js/scroll-animations.js"></script>
Save Changes
Cancel
Create New File
Create New Folder