ldc-bien-etre-animal/lang/fr/routes.php

36 lines
1.4 KiB
PHP

<?php
declare(strict_types=1);
$newsCategories = require __DIR__ . '/news_articles_page.php';
$newsSlugs = array_keys($newsCategories);
$communityData = require __DIR__ . '/community_detail_page.php';
$communitySlugs = array_keys($communityData['communities']);
$newsRoutes = [];
foreach ($newsSlugs as $slug) {
$newsRoutes["actualites-{$slug}"] = "actualites/{$slug}";
}
$communityRoutes = [];
foreach ($communitySlugs as $slug) {
$communityRoutes["qui-sommes-nous-{$slug}"] = "qui-sommes-nous/{$slug}";
}
return [
'front' => [
'homepage' => '',
'why-this-approach' => 'why-this-approach',
'animal-welfare' => 'animal-welfare',
'engagements' => 'engagements',
'espace-presse' => 'espace-presse',
'contact' => 'contact',
'rejoindre-le-collectif' => 'rejoindre-le-collectif',
'questions-reponses' => 'questions-reponses',
'mentions-legales' => 'mentions-legales',
'charte-de-confidentialite' => 'charte-de-confidentialite',
'actualites' => 'actualites',
'qui-sommes-nous-gouvernance' => 'qui-sommes-nous/gouvernance',
] + $newsRoutes + $communityRoutes,
];