📁 File Manager
Editing:
/home/wvl7mof7402e/public_html/chem/admin/footer.php
<?php /** * Pure Chemical - Admin Panel * File: /admin/footer.php * * Premium Admin Footer * * Usage: * Include this file at the bottom of every admin page * after the page content. */ declare(strict_types=1); ?> </main> <!-- /.admin-content --> <!-- ========================================================= ADMIN FOOTER ========================================================== --> <footer class="admin-footer"> <div class="admin-footer-left"> <div class="admin-footer-brand"> <span class="admin-footer-dot"></span> <span> Pure Chemical </span> </div> <span class="admin-footer-divider"> / </span> <span class="admin-footer-text"> Admin Console </span> </div> <div class="admin-footer-right"> <span class="admin-footer-version"> v1.0.0 </span> <span class="admin-footer-divider"> • </span> <span class="admin-footer-copyright"> © <?= date('Y'); ?> Pure Chemical </span> </div> </footer> </div> <!-- /.admin-main --> <!-- ========================================================= BACK TO TOP ========================================================== --> <button type="button" class="admin-back-top" id="adminBackTop" aria-label="Back to top" title="Back to top" > <i class="fa-solid fa-arrow-up"></i> </button> <!-- ========================================================= FOOTER CSS ========================================================== --> <style> /* ========================================================= ADMIN FOOTER ========================================================== */ .admin-footer { min-height: 66px; margin-top: 10px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: rgba(255,255,255,.72); border-top: 1px solid rgba(226,232,240,.9); color: #64748b; font-size: 11px; transition: all .25s ease; } /* ========================================================= FOOTER LEFT ========================================================== */ .admin-footer-left { display: flex; align-items: center; gap: 9px; min-width: 0; } .admin-footer-brand { display: inline-flex; align-items: center; gap: 7px; color: #334155; font-size: 11px; font-weight: 800; white-space: nowrap; } .admin-footer-dot { width: 7px; height: 7px; border-radius: 50%; background: linear-gradient( 135deg, #2563eb, #4f46e5 ); box-shadow: 0 0 0 4px rgba(37,99,235,.08); } .admin-footer-text { color: #94a3b8; white-space: nowrap; } .admin-footer-divider { color: #cbd5e1; user-select: none; } /* ========================================================= FOOTER RIGHT ========================================================== */ .admin-footer-right { display: flex; align-items: center; gap: 9px; white-space: nowrap; } .admin-footer-version { padding: 4px 8px; border-radius: 20px; background: #f1f5f9; border: 1px solid #e2e8f0; color: #64748b; font-size: 9px; font-weight: 700; letter-spacing: .3px; } .admin-footer-copyright { color: #94a3b8; } /* ========================================================= BACK TO TOP ========================================================== */ .admin-back-top { position: fixed; right: 25px; bottom: 25px; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.8); border-radius: 12px; background: linear-gradient( 135deg, #2563eb, #4f46e5 ); color: #fff; box-shadow: 0 10px 28px rgba(37,99,235,.25); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px) scale(.92); transition: opacity .25s ease, visibility .25s ease, transform .25s ease, box-shadow .25s ease; z-index: 850; font-size: 13px; } .admin-back-top:hover { transform: translateY(-2px) scale(1); box-shadow: 0 14px 34px rgba(37,99,235,.35); } .admin-back-top.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); } /* ========================================================= RESPONSIVE ========================================================== */ @media (max-width: 991px) { .admin-footer { padding: 0 22px; } } @media (max-width: 640px) { .admin-footer { min-height: auto; padding: 16px; flex-direction: column; align-items: flex-start; gap: 8px; } .admin-footer-right { width: 100%; justify-content: flex-start; flex-wrap: wrap; } .admin-footer-text { display: none; } .admin-back-top { right: 16px; bottom: 16px; width: 40px; height: 40px; border-radius: 11px; } } </style> <!-- ========================================================= FOOTER JAVASCRIPT ========================================================== --> <script> /** * --------------------------------------------------------- * Back To Top * --------------------------------------------------------- */ (function () { const backTop = document.getElementById('adminBackTop'); if (!backTop) { return; } function updateBackTop() { if (window.scrollY > 350) { backTop.classList.add('show'); } else { backTop.classList.remove('show'); } } window.addEventListener( 'scroll', updateBackTop, { passive: true } ); backTop.addEventListener( 'click', function () { window.scrollTo({ top: 0, behavior: 'smooth' }); } ); updateBackTop(); })(); /** * --------------------------------------------------------- * Prevent Double Submit * --------------------------------------------------------- * * Admin forms can add: * * class="prevent-double-submit" * * This prevents accidental duplicate submissions. */ document .querySelectorAll('form.prevent-double-submit') .forEach(function (form) { form.addEventListener( 'submit', function () { const submitButtons = form.querySelectorAll( 'button[type="submit"], input[type="submit"]' ); submitButtons.forEach(function (button) { button.disabled = true; const originalText = button.dataset.originalText || button.innerHTML; button.dataset.originalText = originalText; if (button.tagName === 'BUTTON') { button.innerHTML = '<i class="fa-solid fa-spinner fa-spin"></i> Saving...'; } }); } ); }); /** * --------------------------------------------------------- * Auto Hide Alerts * --------------------------------------------------------- */ document .querySelectorAll( '.admin-alert[data-auto-hide="true"]' ) .forEach(function (alert) { setTimeout(function () { alert.style.opacity = '0'; alert.style.transform = 'translateY(-5px)'; alert.style.transition = 'opacity .3s ease, transform .3s ease'; setTimeout(function () { alert.remove(); }, 300); }, 4500); }); /** * --------------------------------------------------------- * Confirm Delete * --------------------------------------------------------- * * Any delete button/link can use: * * data-confirm-delete="true" */ document .querySelectorAll( '[data-confirm-delete="true"]' ) .forEach(function (element) { element.addEventListener( 'click', function (event) { const message = element.dataset.confirmMessage || 'Are you sure you want to delete this item? This action cannot be undone.'; if (!window.confirm(message)) { event.preventDefault(); } } ); }); /** * --------------------------------------------------------- * External Links * --------------------------------------------------------- */ document .querySelectorAll( 'a[target="_blank"]' ) .forEach(function (link) { link.setAttribute( 'rel', 'noopener noreferrer' ); }); </script> </body> </html>
Save
Cancel