Merge branch 'footer-links' of git://github.com/james-geiger/BookStack into james-geiger-footer-links

This commit is contained in:
Dan Brown
2021-01-30 22:03:16 +00:00
8 changed files with 58 additions and 1 deletions

View File

@ -35,6 +35,8 @@
@yield('content')
</div>
@include('common.footer')
<div back-to-top class="primary-background print-hidden">
<div class="inner">
@icon('chevron-up') <span>{{ trans('common.back_to_top') }}</span>

View File

@ -0,0 +1,10 @@
@if(setting('app-privacy-policy') | setting('app-terms-of-service'))
<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
</footer>
@endif

View File

@ -179,6 +179,21 @@
</div>
</div>
<div>
<label for="setting-app-privacy-link" class="setting-list-label">{{ trans('settings.app_footer_links') }}</label>
<p class="small">{{ trans('settings.app_footer_links_desc') }}</p>
<div class="grid half pt-m">
<div>
<label for="setting-app-privacy-policy" class="text-dark">{{ trans('settings.app_privacy_policy') }}</label>
<input type="text" value="{{ setting('app-privacy-policy', '') }}" name="setting-app-privacy-policy" id="setting-app-privacy-policy">
</div>
<div>
<label for="setting-app-terms-of-service" class="text-dark">{{ trans('settings.app_terms_of_service') }}</label>
<input type="text" value="{{ setting('app-terms-of-service', '') }}" name="setting-app-terms-of-service" id="setting-app-terms-of-service">
</div>
</div>
</div>
<div>
<label for="setting-app-custom-head" class="setting-list-label">{{ trans('settings.app_custom_html') }}</label>