Skip to content

Commit

Permalink
(feat) Add cookie banner
Browse files Browse the repository at this point in the history
  • Loading branch information
nitriques committed Sep 17, 2024
1 parent 40788f4 commit 6595776
Show file tree
Hide file tree
Showing 4 changed files with 164 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
color: null
fieldLayouts:
facc811a-bc5c-46bf-8f4f-5ff0260457ca:
tabs:
-
elementCondition: null
elements:
-
autocapitalize: true
autocomplete: false
autocorrect: true
class: null
dateAdded: '2024-09-17T20:02:15+00:00'
disabled: false
elementCondition: null
id: null
includeInCards: false
inputType: null
instructions: null
label: null
max: null
min: null
name: null
orientation: null
placeholder: null
providesThumbs: false
readonly: false
requirable: false
size: null
step: null
tip: null
title: null
type: craft\fieldlayoutelements\entries\EntryTitleField
uid: c9379224-1fa3-4a82-9230-b8496c3d1d10
userCondition: null
warning: null
width: 100
-
dateAdded: '2024-09-17T20:05:19+00:00'
elementCondition: null
fieldUid: 3ce9ecc2-8c9b-4d1f-962c-eca70eee7033 # Title
handle: null
includeInCards: false
instructions: null
label: null
providesThumbs: false
required: false
tip: null
type: craft\fieldlayoutelements\CustomField
uid: d7125a1e-ed52-436a-95fb-a556e3fbf216
userCondition: null
warning: null
width: 50
-
dateAdded: '2024-09-17T20:05:19+00:00'
elementCondition: null
fieldUid: 24fcc82a-e774-4756-8f1e-62edb2119633 # Rich text - Inline
handle: null
includeInCards: false
instructions: null
label: Text
providesThumbs: false
required: false
tip: null
type: craft\fieldlayoutelements\CustomField
uid: 84f4ceef-6491-4f16-a633-3e4dc592e893
userCondition: null
warning: null
width: 50
-
dateAdded: '2024-09-17T20:05:19+00:00'
elementCondition: null
fieldUid: 6abc4a11-ddf3-44c7-b156-42847f10eae2 # Enable cookie banner
handle: null
includeInCards: false
instructions: null
label: null
providesThumbs: false
required: false
tip: null
type: craft\fieldlayoutelements\CustomField
uid: c35bb048-8606-4b62-9b23-44374f43a2a5
userCondition: null
warning: null
width: 50
-
dateAdded: '2024-09-17T20:05:19+00:00'
elementCondition: null
fieldUid: e8a9774e-14c6-4ae6-b673-a9740e5af59b # Plain text - Non-translatable
handle: gtmConsentEvent
includeInCards: false
instructions: null
label: 'GTM consent event'
providesThumbs: false
required: false
tip: null
type: craft\fieldlayoutelements\CustomField
uid: f253520a-d5b3-4250-b951-2285ea39bb6e
userCondition: null
warning: null
width: 50
name: Content
uid: 75c5ff41-2949-4404-a2a3-623ec06c90c1
userCondition: null
handle: cookieBanner
hasTitleField: false
icon: cookie-bite
name: 'Cookie Banner'
showSlugField: false
showStatusField: false
slugTranslationKeyFormat: ''
slugTranslationMethod: site
titleFormat: ''
titleTranslationKeyFormat: ''
titleTranslationMethod: site
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
columnSuffix: null
handle: enableCookieBanner
instructions: null
name: 'Enable cookie banner'
searchable: false
settings:
default: false
offLabel: null
onLabel: null
translationKeyFormat: null
translationMethod: none
type: craft\fields\Lightswitch
6 changes: 5 additions & 1 deletion project/project.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dateModified: 1726602792
dateModified: 1726603564
elementSources:
craft\elements\Asset:
-
Expand Down Expand Up @@ -71,6 +71,7 @@ elementSources:
- 6a42e96b-9b9a-42b8-8dab-2e39ffbeb7cc # Site configuration
- ff4e6d75-2bed-40aa-8718-1e77a25a37d7 # Site footer
- 800d763b-bbca-482a-9345-81b70bf730b2 # Site header
- 55239922-65f1-4558-96b1-71848e51a9bc # Cookie Banner
elementType: craft\elements\Entry
fieldContext: global
defaultSort:
Expand Down Expand Up @@ -237,7 +238,9 @@ meta:
4a4ac845-5be1-4d2d-bb12-617c872d2ee5: Contact # Contact
4c508769-fc04-4e88-9cfd-85313caaf2b4: Script # Script
4dabd377-5b99-4269-90ab-1129bab3dea0: 'Plain text - Multiline' # Plain text - Multiline
5b29e282-f0ce-4929-834a-4953ec2b7dd3: 'Cookie Banner' # Cookie Banner
6a42e96b-9b9a-42b8-8dab-2e39ffbeb7cc: 'Site configuration' # Site configuration
6abc4a11-ddf3-44c7-b156-42847f10eae2: 'Enable cookie banner' # Enable cookie banner
6c86c074-7558-42ed-9fbc-8c4fbc736b95: Blog # Blog
7c06f121-409c-4ebe-a6ce-aa78ea61ce4d: Assets # Assets
7c46388e-1ad1-466a-a30f-c138c9477b0f: Modules # Modules
Expand Down Expand Up @@ -281,6 +284,7 @@ meta:
0145468f-d01a-4e00-bdf3-d734c3e52a72: Inline # Inline
374406b8-233f-4e1b-ae1e-f779112eaca6: Article # Article
2556508a-1412-450e-8cad-0369ef9cced4: Url # Url
55239922-65f1-4558-96b1-71848e51a9bc: 'Cookie Banner' # Cookie Banner
85050609-12b8-4783-b9c6-5f753f3fe36b: Full # Full
a0a65bff-fadd-4bb4-ae89-c3f15c01bbbc: Carousel # Carousel
a03206c2-0f1f-4ac9-affe-b6a82de9bf75: 'Site configuration' # Site configuration
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
defaultPlacement: end
enableVersioning: true
entryTypes:
- 5b29e282-f0ce-4929-834a-4953ec2b7dd3 # Cookie Banner
handle: cookieBanner
maxAuthors: 1
name: 'Cookie Banner'
previewTargets:
-
__assoc__:
-
- label
- 'Primary entry page'
-
- urlFormat
- '{url}'
-
- refresh
- '1'
propagationMethod: all
siteSettings:
af77db16-7383-4e3b-ae49-71b93d94b959: # FR
enabledByDefault: true
hasUrls: false
template: null
uriFormat: null
c5bc89a7-34ff-4d1e-b2ed-9be8d9e044da: # EN
enabledByDefault: true
hasUrls: false
template: null
uriFormat: null
type: single

0 comments on commit 6595776

Please sign in to comment.