mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 19:19:19 +02:00
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:
@@ -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 "&")
|
||||
*
|
||||
* 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 d’architecture, d’ingénierie architecturale, d’urbanisme (BAIU) :',
|
||||
'email' => 'laurent.leprince@uclouvain.be',
|
||||
],
|
||||
[
|
||||
'name' => 'Xavier Gorgol',
|
||||
'role' => 'Responsable des mémoires de l’ERG :',
|
||||
'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',
|
||||
],
|
||||
],
|
||||
];
|
||||
Reference in New Issue
Block a user