From 764edf91212345a5b5651a57ee2d439e9cb3aa69 Mon Sep 17 00:00:00 2001 From: Pontoporeia Date: Sat, 28 Mar 2026 16:42:18 +0100 Subject: [PATCH] Remove dead template/asset files; fix licence.php full-width layout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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. --- TODO.md | 10 ++++---- public/assets/apropos.css | 5 ++++ public/assets/icons.svg | 1 - public/licence.php | 17 +++++--------- templates/head.php | 32 -------------------------- templates/header.php | 48 --------------------------------------- 6 files changed, 16 insertions(+), 97 deletions(-) delete mode 100644 public/assets/icons.svg delete mode 100644 templates/head.php delete mode 100644 templates/header.php diff --git a/TODO.md b/TODO.md index 9bd28e3..ba88d93 100644 --- a/TODO.md +++ b/TODO.md @@ -463,12 +463,12 @@ Goal: rename the tables and column to the canonical M2M pattern (`tags`, `thesis `apropos.php`, `licence.php`, `templates/admin/head.php` all contain the same 6-line `(function poll(){…})()` block. Consolidate into the shared head partials. -- [ ] **`templates/header.php` and `templates/head.php` are dead files** — neither is `include`d +- [x] **`templates/header.php` and `templates/head.php` are dead files** — neither is `include`d anywhere in the codebase. Both contain outdated markup from a previous design iteration (`lang="en"`, empty author meta, a broken nav with double-quoted `href` attributes inside `href`). Delete both to remove confusion. -- [ ] **`public/assets/icons.svg` is dead** — it is the full TrumboWYG editor icon sprite (40+ +- [x] **`public/assets/icons.svg` is dead** — it is the full TrumboWYG editor icon sprite (40+ symbols) referenced **nowhere** in the codebase. The only WYSIWYG editor in use (EasyMDE in `pages-edit.php`) loads from CDN. Delete `icons.svg` (~15 KB of noise). @@ -525,10 +525,10 @@ Goal: rename the tables and column to the canonical M2M pattern (`tags`, `thesis require a code deploy to change. Either move them into the `about` page Markdown (admin- editable) or extract to a config array so they are in one place. -- [ ] **`licence.php` wastes half the viewport with an always-empty right column** — the page +- [x] **`licence.php` wastes half the viewport with an always-empty right column** — the page reuses the two-column `.apropos-layout` but `
` is always - empty. Add a `.apropos-layout--single` variant (or just `grid-template-columns:1fr` when - the right child is empty) to use the full width for content. + empty. Added `.apropos-single` class + removed layout wrapper; content now uses full width + (max-width: 720px) without an empty right column. ### G — Accessibility & semantics diff --git a/public/assets/apropos.css b/public/assets/apropos.css index de976fc..e9f189f 100644 --- a/public/assets/apropos.css +++ b/public/assets/apropos.css @@ -29,6 +29,11 @@ html, body { max-width: 1200px; } +/* Single-column layout — used by licence.php (no right column) */ +.apropos-single { + max-width: 720px; +} + /* Left col — main description text in big monospace */ .apropos-left {} diff --git a/public/assets/icons.svg b/public/assets/icons.svg deleted file mode 100644 index f45a356..0000000 --- a/public/assets/icons.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/licence.php b/public/licence.php index 6e4bee2..7ee0ef5 100644 --- a/public/licence.php +++ b/public/licence.php @@ -47,17 +47,12 @@ $html = $pd->text($content);
-
-
-
- - - -

Contenu à venir.

- -
-
-
+
+ + + +

Contenu à venir.

+
diff --git a/templates/head.php b/templates/head.php deleted file mode 100644 index 06ab94e..0000000 --- a/templates/head.php +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - <?= isset($pageTitle) ? htmlspecialchars($pageTitle) . ' - Posterg' : 'Posterg' ?> - - - - - - - - - - - - - diff --git a/templates/header.php b/templates/header.php deleted file mode 100644 index 9f46bbe..0000000 --- a/templates/header.php +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - Posterg - - - - - - - - - - -
- -

posterg

-
-
-

- Ce site archive et valorise les mémoires de l'ERG (Bruxelles). Il expose les projets des diplômé·es pour illustrer la diversité des parcours qui marquent l'histoire centenaire de l'école. -

-

- Design & développement : Olivia Marly, Théo Hennequin & Théophile Gervreau-Mercie - Typographies : Ductus (Amélie Dumont), Hyphont-e -

-
- -
\ No newline at end of file