summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--config/config.default.php11
-rw-r--r--resources/views/layouts/parts/footer.twig12
3 files changed, 15 insertions, 10 deletions
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 %}
- <a href="{{ config('faq_url') }}">{{ __('FAQ') }}</a>
- · <a href="{{ config('contact_email') }}">
- <span class="glyphicon glyphicon-envelope"></span> {{ __('Contact') }}
- </a>
- · <a href="https://github.com/engelsystem/engelsystem/issues">{{ __('Bugs / Features') }}</a>
+ {% for name,url in config('footer_items') %}
+ <a href="{{ url }}">
+ {% if '@' in url %}<span class="glyphicon glyphicon-envelope"></span>{% endif %}
+ {{ __(name) }}
+ </a> ·
+ {% endfor %}
+ <a href="https://github.com/engelsystem/engelsystem/issues">{{ __('Bugs / Features') }}</a>
· <a href="https://github.com/engelsystem/engelsystem/">{{ __('Development Platform') }}</a>
· <a href="{{ url('credits') }}">{{ __('Credits') }}</a>
</div>