mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 19:19:19 +02:00
Remove dead template/asset files; fix licence.php full-width layout
- Delete templates/header.php and templates/head.php — both were legacy partials from a previous design iteration (lang="en", broken nav markup) that were never included anywhere in the current codebase. - Delete public/assets/icons.svg — the full TrumboWYG icon sprite (~15 KB) referenced nowhere; the only active WYSIWYG editor (EasyMDE in pages-edit.php) loads its own assets from CDN. - Fix licence.php layout: the page was borrowing the two-column .apropos-layout grid but leaving the right column always empty, wasting ~40% of the viewport. Removed the grid wrapper and the empty .apropos-right div. Added .apropos-single utility class to apropos.css (max-width: 720px) so licence content now spans the full available width with a readable line length.
This commit is contained in:
@@ -1,32 +0,0 @@
|
||||
<!-- head.php - Shared HTML head section -->
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="author" content="">
|
||||
<meta name="description" content="">
|
||||
<title><?= isset($pageTitle) ? htmlspecialchars($pageTitle) . ' - Posterg' : 'Posterg' ?></title>
|
||||
<link rel="icon" type="image/svg+xml" href="/assets/admin_favicon.svg">
|
||||
<link rel="stylesheet" href="assets/modern-normalize.min.css">
|
||||
<link rel="stylesheet" href="assets/common.css">
|
||||
<?php if (isset($additionalCSS)): ?>
|
||||
<?php foreach ((array)$additionalCSS as $css): ?>
|
||||
<link rel="stylesheet" href="<?= htmlspecialchars($css) ?>">
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
<?php if (php_sapi_name() === 'cli-server'): ?>
|
||||
<!-- Live reload for development -->
|
||||
<script>
|
||||
(function poll() {
|
||||
fetch('/live-reload.php')
|
||||
.then(r => r.json())
|
||||
.then(d => {
|
||||
if (d.changed) location.reload();
|
||||
else setTimeout(poll, 1000);
|
||||
})
|
||||
.catch(() => setTimeout(poll, 2000));
|
||||
})();
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
</head>
|
||||
Reference in New Issue
Block a user