mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-30 23:52:40 +01:00
44c41e9e4d
Made so footer link ordering, names and urls can be set. Cleaned up some of the setting-service and added support for array setting types, which are cleaned on entry and stored as json with a new type indicator column on the settings table for auto-decode. Also added testing to cover this feature. Related to #1973 and #854
7 lines
316 B
PHP
7 lines
316 B
PHP
@if(count(setting('app-footer-links', [])) > 0)
|
|
<footer>
|
|
@foreach(setting('app-footer-links', []) as $link)
|
|
<a href="{{ $link['url'] }}" target="_blank">{{ strpos($link['label'], 'trans::') === 0 ? trans(str_replace('trans::', '', $link['label'])) : $link['label'] }}</a>
|
|
@endforeach
|
|
</footer>
|
|
@endif |