You've already forked Atomcms-edit
Add client open mode preference (same tab / new window) to user settings
This commit is contained in:
@@ -12,7 +12,8 @@
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<a data-turbolinks="false" href="{{ route('nitro-client') }}">
|
||||
@php $openMode = auth()->user()->preferences['client_open_mode'] ?? 'same'; @endphp
|
||||
<a data-turbolinks="false" href="{{ route('nitro-client') }}" @if($openMode === 'new_window') target="_blank" rel="noopener" @endif>
|
||||
<button
|
||||
class="cms-button bg-yellow-500 hover:bg-yellow-400 text-yellow-900 font-bold py-2 px-4 rounded-lg shadow-lg transition-all duration-300 hover:scale-105">
|
||||
{{ __('Go to :hotel', ['hotel' => setting('hotel_name')]) }}
|
||||
|
||||
Reference in New Issue
Block a user