Footer: Add additional links to the footer

Closes #435 (Support for additional footer links)
This commit is contained in:
Igor Scheller 2018-10-24 14:54:37 +02:00
parent 4f04924e29
commit 2aad181798
3 changed files with 15 additions and 10 deletions

View File

@ -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.

View File

@ -20,11 +20,14 @@ return [
// Set to development to enable debugging messages
'environment' => env('ENVIRONMENT', 'production'),
// Footer links
'footer_items' => [
// URL to the angel faq and job description
'faq_url' => env('FAQ_URL', 'https://events.ccc.de/congress/2013/wiki/Static:Volunteers'),
'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' => env('CONTACT_EMAIL', 'mailto:ticket@c3heaven.de'),
],
// Email config
'email' => [

View File

@ -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>