]> BookStack Code Mirror - bookstack/blobdiff - resources/views/common/footer.blade.php
Fixed failing test after drawio default url change
[bookstack] / resources / views / common / footer.blade.php
index a056f6d99ec34e52a59d9e2060d58647f1826d96..dd488dce541a68a7194d113a73fe9ce1a8ea32cb 100644 (file)
@@ -1,10 +1,7 @@
-@if(setting('app-privacy-policy') | setting('app-terms-of-service'))
+@if(count(setting('app-footer-links', [])) > 0)
 <footer>
-    @if(setting('app-privacy-policy'))
-        <a href="{{ setting('app-privacy-policy') }}">{{ trans('settings.app_privacy_policy') }}</a>
-    @endif
-    @if(setting('app-terms-of-service'))
-        <a href="{{ setting('app-terms-of-service') }}">{{ trans('settings.app_terms_of_service') }}</a>
-    @endif
+    @foreach(setting('app-footer-links', []) as $link)
+        <a href="{{ $link['url'] }}" target="_blank" rel="noopener">{{ strpos($link['label'], 'trans::') === 0 ? trans(str_replace('trans::', '', $link['label'])) : $link['label'] }}</a>
+    @endforeach
 </footer>
 @endif
\ No newline at end of file