Show cookie consent banner for anonymous and authenticated users

This commit is contained in:
Tilen Gombac 2022-10-18 13:22:58 +02:00
parent 7e0fd5185d
commit ba53b713cb
7 changed files with 200 additions and 0 deletions

View File

@ -0,0 +1,77 @@
_core:
default_config_hash: EspchZru2hYTTeNNAnTw2uWwT-mjJ46KrM5XEVHJzS0
langcode: sl
uuid: f4845223-8519-4aba-9424-9cad8d35edee
popup_enabled: true
popup_clicking_confirmation: false
popup_scrolling_confirmation: false
eu_only: null
eu_only_js: null
popup_position: false
fixed_top_position: true
popup_info:
value: "<h2>Spletno mesto uporablja piškotke zaradi boljše uporabniške izkušnje.</h2>\r\n\r\n<p>Z uporabo naše spletne strani potrjujete, da se z njihovo uporabo strinjate.</p>\r\n"
format: basic_html
mobile_popup_info:
value: ''
format: filtered_html
popup_info_template: new
popup_agree_button_message: 'Da, strinjam se'
popup_more_info_button_message: 'More info'
mobile_breakpoint: 768
popup_agreed_enabled: false
popup_hide_agreed: false
disagree_button_label: Ne
popup_agreed:
value: "<h2>Thank you for accepting cookies</h2>\r\n\r\n<p>You can now hide this message or find out more about cookies.</p>\r\n"
format: basic_html
popup_find_more_button_message: 'More info'
popup_hide_button_message: Hide
popup_link: /sl/o-1ka/pogoji-uporabe-1ka/politika-piskotkov
popup_link_new_window: true
popup_height: null
popup_width: 100%
popup_delay: 1000
show_more_info: true
popup_bg_hex: 0779bf
popup_text_hex: ffffff
domain: ''
domains_option: 1
domains_list: ''
exclude_paths: "/admin\r\n/admin/*\r\n/batch\r\n/node/add*\r\n/node/*/*\r\n/user/*/*"
exclude_admin_theme: false
cookie_session: 0
set_cookie_session_zero_on_disagree: 0
cookie_lifetime: 100
use_mobile_message: false
use_bare_css: false
disagree_do_not_show_popup: false
reload_page: false
reload_options: 0
reload_routes_list: ''
cookie_name: ''
exclude_uid_1: false
better_support_for_screen_readers: false
method: opt_in
disabled_javascripts: ''
automatic_cookies_removal: true
allowed_cookies: ''
consent_storage_method: do_not_store
withdraw_message:
value: "<h2>Spletno mesto uporablja piškotke zaradi boljše uporabniške izkušnje.</h2>\r\n\r\n<p>Z uporabo naše spletne strani potrjujete, da se z njihovo uporabo strinjate.</p>\r\n"
format: basic_html
withdraw_tab_button_label: 'Privacy settings'
withdraw_action_button_label: 'Withdraw consent'
withdraw_enabled: false
withdraw_button_on_info_popup: false
save_preferences_button_label: 'Save preferences'
accept_all_categories_button_label: 'Accept all cookies'
enable_save_preferences_button: true
domain_all_sites: false
settings_tab_enabled: false
containing_element: body
cookie_policy_version: 1.0.0
cookie_value_disagreed: '0'
cookie_value_agreed_show_thank_you: '1'
cookie_value_agreed: '2'
accessibility_focus: false

View File

@ -0,0 +1,11 @@
popup_agreed:
value: "<h2>Thank you for accepting cookies</h2>\r\n\r\n<p>You can now hide this message or find out more about cookies.</p>\r\n"
popup_agree_button_message: 'Da, strinjam se'
popup_more_info_button_message: 'More info'
popup_find_more_button_message: 'More info'
popup_info:
value: "<h2>Spletno mesto uporablja piškotke zaradi boljše uporabniške izkušnje.</h2>\r\n\r\n<p>Z uporabo naše spletne strani potrjujete, da se z njihovo uporabo strinjate.</p>\r\n"
popup_link: /en/about/terms-of-use/cookie-policy
disagree_button_label: Ne
withdraw_message:
value: "<h2>Spletno mesto uporablja piškotke zaradi boljše uporabniške izkušnje.</h2>\r\n\r\n<p>Z uporabo naše spletne strani potrjujete, da se z njihovo uporabo strinjate.</p>\r\n"

View File

@ -0,0 +1,36 @@
uuid: e50e8ba9-dda1-4e57-95eb-75dbbc45a872
langcode: sl
status: true
dependencies:
config:
- filter.format.filtered_html
module:
- eu_cookie_compliance
- filter
- media
- search
- search_api_page
- system
_core:
default_config_hash: 6WavjUYXIegP9AAg2zXGx54MWIVoomC3SZhNiqe-Dyk
id: anonymous
label: 'Anonimni uporabnik'
weight: 0
is_admin: false
permissions:
- 'access 1ka search_api_page'
- 'access content'
- 'display EU Cookie Compliance popup'
- 'display eu cookie compliance popup'
- 'search article content'
- 'search content'
- 'search osnovna_priporocila content'
- 'search page content'
- 'search pogosto_vprasanje content'
- 'search pomoc content'
- 'search prirocnik content'
- 'search video_vodic content'
- 'use advanced search'
- 'use text format filtered_html'
- 'view media'
- 'view search api pages'

View File

@ -0,0 +1,24 @@
uuid: ef02b8e5-af30-4436-b01e-5414d7bbb649
langcode: sl
status: true
dependencies:
config:
- filter.format.filtered_html
module:
- eu_cookie_compliance
- filter
- media
- system
_core:
default_config_hash: I44QAB4es39lNzMQWiJLq2dfjX7VRSOzT_5KzAcUq_M
id: authenticated
label: 'prijavljen uporabnik'
weight: 1
is_admin: false
permissions:
- 'access 1ka search_api_page'
- 'access content'
- 'display EU Cookie Compliance popup'
- 'display eu cookie compliance popup'
- 'use text format filtered_html'
- 'view media'

View File

@ -0,0 +1,48 @@
uuid: 6e341a03-a89c-4332-9a9c-9682211ecf7e
langcode: sl
status: true
dependencies:
config:
- node.type.article
- node.type.page
- taxonomy.vocabulary.tags
module:
- comment
- contextual
- file
- node
- path
- system
- taxonomy
- toolbar
- tour
_core:
default_config_hash: Wur9kcEOwY1Jal81NssKnz3RhVJxAvBwyWQBGcA_1Go
id: content_editor
label: 'Content editor'
weight: 2
is_admin: false
permissions:
- 'access administration pages'
- 'access content overview'
- 'access contextual links'
- 'access files overview'
- 'access toolbar'
- 'access tour'
- 'administer url aliases'
- 'create article content'
- 'create page content'
- 'create terms in tags'
- 'create url aliases'
- 'delete article revisions'
- 'delete own article content'
- 'delete own page content'
- 'delete page revisions'
- 'edit own article content'
- 'edit own comments'
- 'edit own page content'
- 'edit terms in tags'
- 'revert all revisions'
- 'view all revisions'
- 'view own unpublished content'
- 'view the administration theme'