migrate apropos data from config/apropos.php to SQLite

- Create apropos_contents table via migration 010
- Add Database methods: getAproposContent(), saveAproposContent(), getAllAproposContents()
- Replace admin/pages.php with admin/contenus.php (renamed header from 'Pages statiques' to 'Contenus')
- Replace admin/pages-edit.php with admin/contenus-edit.php (support editing pages + apropos contents)
- Create admin/actions/apropos.php for saving apropos data (contacts, credits, erg_url)
- Update public/apropos.php to read contacts/credits/erg_url from DB
- Delete config/apropos.php
This commit is contained in:
Pontoporeia
2026-04-16 13:44:06 +02:00
parent 4158c72d08
commit bf30aab0b3
15 changed files with 538 additions and 236 deletions

View File

@@ -1,53 +0,0 @@
<?php
/**
* À propos page — contacts and credits configuration.
*
* Edit this file to update the people listed in the Contacts and Crédits
* sections of the public "À propos" page without touching the template.
*
* contacts[] — each entry:
* 'name' string Full display name
* 'role' string Short description of role (plain text, no HTML)
* 'email' string Email address (used for mailto: link)
*
* credits[] — each entry:
* 'label' string Credit category / title (e.g. "Design & développement")
* 'value' string Free-text value; HTML entities will be escaped, so use
* plain text (ampersands written as "&", not "&amp;")
*
* erg_url — URL for the "Site de l'erg" link in the aside.
*/
return [
'erg_url' => 'https://erg.be',
'contacts' => [
[
'name' => 'Laurent Leprince',
'role' => 'Bibliothèque darchitecture, dingénierie architecturale, durbanisme (BAIU) :',
'email' => 'laurent.leprince@uclouvain.be',
],
[
'name' => 'Xavier Gorgol',
'role' => 'Responsable des mémoires de lERG :',
'email' => 'xavier.gorgol@erg.be',
],
[
'name' => 'Brigitte Ledune',
'role' => 'Cours de suivi de mémoire :',
'email' => 'brigitte.ledune@erg.be',
],
],
'credits' => [
[
'label' => 'Design & développement',
'value' => 'Olivia Marly, Théophile Gerveau-Mercie & Théo Hennequin',
],
[
'label' => 'Typographies',
'value' => 'Ductus (Amélie Dumont) & BBB DM Sans',
],
],
];