Merge pull request #4329 from beganovich/v5-should-footer-links-on-condition

(v5) Update showing privacy policy & terms in client portal
This commit is contained in:
Benjamin Beganović 2020-11-18 15:57:34 +01:00 committed by GitHub
commit c55b97d61f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,11 +3,19 @@
<span class="text-xs md:text-sm text-gray-700">{{ ctrans('texts.footer_label', ['year' => date('Y')]) }}</span> <span class="text-xs md:text-sm text-gray-700">{{ ctrans('texts.footer_label', ['year' => date('Y')]) }}</span>
<div class="flex items-center space-x-2"> <div class="flex items-center space-x-2">
<a x-on:click="privacy = true; tos = false" href="#" class="button-link text-sm primary-color flex items-center">{{ __('texts.privacy_policy')}}</a> @if(strlen($client->getSetting('client_portal_privacy_policy')) > 1)
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-minus"> <a x-on:click="privacy = true; tos = false" href="#" class="button-link text-sm primary-color flex items-center">{{ __('texts.privacy_policy')}}</a>
<line x1="5" y1="12" x2="19" y2="12"></line> @endif
</svg>
<a x-on:click="privacy = false; tos = true" href="#" class="button-link text-sm primary-color flex items-center">{{ __('texts.terms')}}</a> @if(strlen($client->getSetting('client_portal_privacy_policy')) > 1 && strlen($client->getSetting('client_portal_terms')) > 1)
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-minus">
<line x1="5" y1="12" x2="19" y2="12"></line>
</svg> <!-- Long dash between items. -->
@endif
@if(strlen($client->getSetting('client_portal_terms')) > 1)
<a x-on:click="privacy = false; tos = true" href="#" class="button-link text-sm primary-color flex items-center">{{ __('texts.terms')}}</a>
@endif
</div> </div>
</section> </section>
@ -17,11 +25,15 @@
</a> </a>
@endif @endif
@component('portal.ninja2020.components.general.pop-up', ['title' => __('texts.privacy_policy') ,'show_property' => 'privacy']) @if(strlen($client->getSetting('client_portal_privacy_policy')) > 1)
{!! $client->getSetting('client_portal_privacy_policy') !!} @component('portal.ninja2020.components.general.pop-up', ['title' => __('texts.privacy_policy') ,'show_property' => 'privacy'])
@endcomponent {!! $client->getSetting('client_portal_privacy_policy') !!}
@endcomponent
@endif
@component('portal.ninja2020.components.general.pop-up', ['title' => __('texts.terms') ,'show_property' => 'tos']) @if(strlen($client->getSetting('client_portal_terms')) > 1)
{!! $client->getSetting('client_portal_terms') !!} @component('portal.ninja2020.components.general.pop-up', ['title' => __('texts.terms') ,'show_property' => 'tos'])
@endcomponent {!! $client->getSetting('client_portal_terms') !!}
@endcomponent
@endif
</footer> </footer>