Initial commit

This commit is contained in:
Porawit Dongwang
2026-09-16 23:20:08 +07:00
commit 0041668dbb
32577 changed files with 3687927 additions and 0 deletions
@@ -0,0 +1,37 @@
<?php
// components/layout_footer.php
require_once(__DIR__."/../core/settings.php");
$app_settings = get_app_settings();
$changelogs = get_changelogs();
$latest_version = !empty($changelogs) ? $changelogs[0]['version'] : '';
$current_page = basename($_SERVER['PHP_SELF']);
$is_settings_page = ($current_page === 'admin_settings.php');
$t = function($class_str) use ($is_settings_page) {
if ($is_settings_page) {
$class_str = str_replace('emerald', 'blue', $class_str);
$class_str = str_replace('teal', 'indigo', $class_str);
}
return $class_str;
};
?>
<!-- Spacer to prevent content from being hidden behind fixed footer -->
<div class="h-12 w-full shrink-0"></div>
<footer class="fixed bottom-0 w-full lg:w-[calc(100%-16rem)] lg:right-0 bg-white/90 backdrop-blur-md border-t border-slate-200 px-6 py-2.5 flex justify-between items-center text-xs text-slate-500 z-30 shrink-0">
<div class="flex items-center gap-3 font-medium">
<span><?php
$footer_html = str_replace('{YEAR}', date('Y'), $app_settings['footer_text']);
echo $footer_html;
?></span>
<?php if (!empty($latest_version)): ?>
<span class="px-2 py-0.5 bg-slate-100 text-slate-600 rounded-md border border-slate-200 font-semibold shadow-sm text-[10px] tracking-wider">
<?php echo htmlspecialchars($latest_version); ?>
</span>
<?php endif; ?>
</div>
<div class="flex items-center gap-1.5 font-medium">
Powered By <span class="<?php echo $t('text-emerald-600'); ?> font-bold tracking-wide">น้องมะลิ</span>
<svg class="w-3.5 h-3.5 text-rose-500 inline-block animate-pulse" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M3.172 5.172a4 4 0 015.656 0L10 6.343l1.172-1.171a4 4 0 115.656 5.656L10 17.657l-6.828-6.829a4 4 0 010-5.656z" clip-rule="evenodd"></path></svg>
</div>
</footer>