Footer: Add additional links to the footer

Closes #435 (Support for additional footer links)
main
Igor Scheller 6 years ago
parent 4f04924e29
commit 2aad181798

@ -45,7 +45,7 @@ To report bugs use [engelsystem/issues](https://github.com/engelsystem/engelsyst
* Recommended: Directory Listing should be disabled. * Recommended: Directory Listing should be disabled.
* There must a be MySQL database created with a user who has full rights to that database. * 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```. * 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. * To import the database the ```bin/migrate``` script has to be called.
* In the browser, login with credentials ```admin```:```asdfasdf``` and change the password. * In the browser, login with credentials ```admin```:```asdfasdf``` and change the password.

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

@ -25,11 +25,13 @@
{% endif %} {% endif %}
{% endblock %} {% endblock %}
<a href="{{ config('faq_url') }}">{{ __('FAQ') }}</a> {% for name,url in config('footer_items') %}
· <a href="{{ config('contact_email') }}"> <a href="{{ url }}">
<span class="glyphicon glyphicon-envelope"></span> {{ __('Contact') }} {% if '@' in url %}<span class="glyphicon glyphicon-envelope"></span>{% endif %}
</a> {{ __(name) }}
· <a href="https://github.com/engelsystem/engelsystem/issues">{{ __('Bugs / Features') }}</a> </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="https://github.com/engelsystem/engelsystem/">{{ __('Development Platform') }}</a>
· <a href="{{ url('credits') }}">{{ __('Credits') }}</a> · <a href="{{ url('credits') }}">{{ __('Credits') }}</a>
</div> </div>

Loading…
Cancel
Save