diff --git a/README.md b/README.md index f440ce19..6fb624d1 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ To report bugs use [engelsystem/issues](https://github.com/engelsystem/engelsyst * Recommended: Directory Listing should be disabled. * There must a be MySQL database created with a user who has full rights to that database. * If necessary, create a ```config/config.php``` to override values from ```config/config.default.php```. - * To remove values from the `available_themes`, `locales` or `tshirt_sizes` lists the config file has to be renamed. + * To remove values from the `footer_items`, `available_themes`, `locales` or `tshirt_sizes` lists the config file has to be renamed. * To import the database the ```bin/migrate``` script has to be called. * In the browser, login with credentials ```admin```:```asdfasdf``` and change the password. diff --git a/config/config.default.php b/config/config.default.php index f53cb185..56ac6e6a 100644 --- a/config/config.default.php +++ b/config/config.default.php @@ -20,11 +20,14 @@ return [ // Set to development to enable debugging messages 'environment' => env('ENVIRONMENT', 'production'), - // URL to the angel faq and job description - 'faq_url' => env('FAQ_URL', 'https://events.ccc.de/congress/2013/wiki/Static:Volunteers'), + // Footer links + 'footer_items' => [ + // URL to the angel faq and job description + 'FAQ' => env('FAQ_URL', 'https://events.ccc.de/congress/2013/wiki/Static:Volunteers'), - // Contact email address, linked on every page - 'contact_email' => env('CONTACT_EMAIL', 'mailto:ticket@c3heaven.de'), + // Contact email address, linked on every page + 'Contact' => env('CONTACT_EMAIL', 'mailto:ticket@c3heaven.de'), + ], // Email config 'email' => [ diff --git a/resources/views/layouts/parts/footer.twig b/resources/views/layouts/parts/footer.twig index e986963a..85d87473 100644 --- a/resources/views/layouts/parts/footer.twig +++ b/resources/views/layouts/parts/footer.twig @@ -25,11 +25,13 @@ {% endif %} {% endblock %} - {{ __('FAQ') }} - · - {{ __('Contact') }} - - · {{ __('Bugs / Features') }} + {% for name,url in config('footer_items') %} + + {% if '@' in url %}{% endif %} + {{ __(name) }} + · + {% endfor %} + {{ __('Bugs / Features') }} · {{ __('Development Platform') }} · {{ __('Credits') }}