Skip to content

Commit

Permalink
Managed default value for null configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
marcogermani87 committed May 13, 2024
1 parent 9fc880b commit 374eb63
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions resources/views/dialogContents.blade.php
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
<div class="js-cookie-consent cookie-consent {{ $pluginConfig['position'] === 'end' ? 'fixed bottom-0 left-0' : 'sticky left-0 top-0' }} z-50 w-full p-4 bg-white border-t border-gray-200 shadow md:p-6 dark:bg-gray-800 dark:border-gray-600">
<div class="js-cookie-consent cookie-consent {{ $pluginConfig['position'] === 'start' ? 'sticky left-0 top-0' : 'fixed bottom-0 left-0' }} z-50 w-full p-4 bg-white border-t border-gray-200 shadow md:p-6 dark:bg-gray-800 dark:border-gray-600">
<div class="flex justify-center flex-row">
<div class="basis-3/4 max-w-7xl">
{!! trans('cookie-consent::texts.message') !!}
</div>
<div class="basis-1/4 mx-3">
<x-filament::button
size="{{ $pluginConfig['consent_button']['size'] }}"
color="{{ $pluginConfig['consent_button']['color'] }}"
size="{{ $pluginConfig['consent_button']['size'] ?? 'sm' }}"
color="{{ $pluginConfig['consent_button']['color'] ?? 'warning' }}"
class="js-cookie-consent-agree cookie-consent__agree"
>
{{ trans('cookie-consent::texts.agree') }}
</x-filament::button>
@if($pluginConfig['privacy_policy_button']['enabled'])
<x-filament::button
size="{{ $pluginConfig['privacy_policy_button']['size'] }}"
href="{{ url($pluginConfig['privacy_policy_button']['href']) }}"
target="{{ $pluginConfig['privacy_policy_button']['target'] }}"
size="{{ $pluginConfig['privacy_policy_button']['size'] ?? 'sm' }}"
href="{{ url($pluginConfig['privacy_policy_button']['href']) ?? '/privacy-policy' }}"
target="{{ $pluginConfig['privacy_policy_button']['target'] ?? '_blank' }}"
tag="a"
color="{{ $pluginConfig['privacy_policy_button']['color'] }}"
color="{{ $pluginConfig['privacy_policy_button']['color'] ?? 'gray' }}"
>
{{ trans('filament-cookie-consent::filament-cookie-consent.privacy_policy_button') }}
</x-filament::button>
Expand Down

0 comments on commit 374eb63

Please sign in to comment.