mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 19:19:19 +02:00
refactor: extract templates from public/
- Created /templates for main site (header.php, footer.php)
- Created /templates/admin for admin section (head.php, footer.php)
- Removed /public/includes and /public/admin/inc
- Updated all references in code and docs
- Tests passing ✅
Cleaner separation: /public only contains web-accessible files (PHP entry points + assets)
This commit is contained in:
@@ -16,7 +16,7 @@ if (!$rateLimit->check()) {
|
||||
$rateLimit->sendHeaders();
|
||||
|
||||
// Display error page
|
||||
include APP_ROOT . '/public/includes/header.php';
|
||||
include APP_ROOT . '/templates/header.php';
|
||||
echo '<section class="section">';
|
||||
echo ' <div class="container">';
|
||||
echo ' <div class="notification is-danger">';
|
||||
@@ -26,7 +26,7 @@ if (!$rateLimit->check()) {
|
||||
echo ' </div>';
|
||||
echo ' </div>';
|
||||
echo '</section>';
|
||||
include APP_ROOT . '/public/includes/footer.php';
|
||||
include APP_ROOT . '/templates/footer.php';
|
||||
exit;
|
||||
}
|
||||
|
||||
@@ -122,7 +122,7 @@ try {
|
||||
$languages = [];
|
||||
}
|
||||
|
||||
include APP_ROOT . '/public/includes/header.php'; ?>
|
||||
include APP_ROOT . '/templates/header.php'; ?>
|
||||
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
@@ -415,4 +415,4 @@ include APP_ROOT . '/public/includes/header.php'; ?>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<?php include APP_ROOT . '/public/includes/footer.php'; ?>
|
||||
<?php include APP_ROOT . '/templates/footer.php'; ?>
|
||||
|
||||
Reference in New Issue
Block a user