104 lines
6.9 KiB
XML
104 lines
6.9 KiB
XML
<?xml version="1.0"?>
|
|
<!--
|
|
/**
|
|
* @package Plumrocket_CookieConsent
|
|
* @copyright Copyright (c) 2021 Plumrocket Inc. (https://plumrocket.com)
|
|
* @license https://plumrocket.com/license End-user License Agreement
|
|
*/
|
|
-->
|
|
|
|
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
|
<head>
|
|
<css src="Plumrocket_CookieConsent::css/cookie-consent.css"/>
|
|
</head>
|
|
<body>
|
|
<referenceBlock name="head.additional">
|
|
<block class="Plumrocket\CookieConsent\Block\Html\HeadScripts" name="pr.cookie.cookie_service" template="Plumrocket_CookieConsent::cookie_service.phtml" ifconfig="pr_cookie/general/enabled" before="-">
|
|
<arguments>
|
|
<argument name="cspNonceViewModel" xsi:type="object">Plumrocket\Base\ViewModel\CspNonce</argument>
|
|
</arguments>
|
|
</block>
|
|
<block class="Plumrocket\CookieConsent\Block\Gtm" name="google_tag_manager" as="google_tag_manager" template="Plumrocket_CookieConsent::gtm.phtml" ifconfig="pr_cookie/general/enabled" before="-">
|
|
<arguments>
|
|
<argument name="cspNonceViewModel" xsi:type="object">Plumrocket\Base\ViewModel\CspNonce</argument>
|
|
</arguments>
|
|
</block>
|
|
<block class="Plumrocket\CookieConsent\Block\Html\HeadScripts" name="pr.adobe_commerce.data_collection.head_script" template="Plumrocket_CookieConsent::integration/adobe_commerce/data_collection_head_script.phtml" ifconfig="pr_cookie/general/enabled">
|
|
<arguments>
|
|
<argument name="cspNonceViewModel" xsi:type="object">Plumrocket\Base\ViewModel\CspNonce</argument>
|
|
<argument name="dataCollectionViewModel" xsi:type="object">Plumrocket\CookieConsent\ViewModel\Integration\AdobeCommerce\DataCollection</argument>
|
|
</arguments>
|
|
</block>
|
|
</referenceBlock>
|
|
<referenceContainer name="after.body.start">
|
|
<block class="Plumrocket\CookieConsent\Block\RestrictionConfig" name="pr.cookie.restriction.config" before="-" ifconfig="pr_cookie/general/enabled">
|
|
<arguments>
|
|
<argument name="template" xsi:type="string">Plumrocket_CookieConsent::restriction_config.phtml</argument>
|
|
<argument name="cspNonceViewModel" xsi:type="object">Plumrocket\Base\ViewModel\CspNonce</argument>
|
|
</arguments>
|
|
</block>
|
|
<block name="pr.adobe_commerce.data_collection" template="Plumrocket_CookieConsent::integration/adobe_commerce/data_collection.phtml" after="pr.cookie.restriction.config" ifconfig="pr_cookie/general/enabled">
|
|
<arguments>
|
|
<argument name="cspNonceViewModel" xsi:type="object">Plumrocket\Base\ViewModel\CspNonce</argument>
|
|
<argument name="dataCollectionViewModel" xsi:type="object">Plumrocket\CookieConsent\ViewModel\Integration\AdobeCommerce\DataCollection</argument>
|
|
</arguments>
|
|
</block>
|
|
<block class="Plumrocket\CookieConsent\Block\Html\BodyScripts" name="pr_cookie_absolute_header" after="pr.cookie.restriction.config" ifconfig="pr_cookie/general/enabled">
|
|
<arguments>
|
|
<argument name="template" xsi:type="string">Plumrocket_CookieConsent::html/absolute_header.phtml</argument>
|
|
<argument name="cspNonceViewModel" xsi:type="object">Plumrocket\Base\ViewModel\CspNonce</argument>
|
|
</arguments>
|
|
</block>
|
|
<block class="Plumrocket\CookieConsent\Block\CookieNotice" name="pr_cookie_notice" ifconfig="pr_cookie/general/enabled">
|
|
<arguments>
|
|
<argument name="template" xsi:type="string">Plumrocket_CookieConsent::notice.phtml</argument>
|
|
<argument name="jsLayout" xsi:type="array">
|
|
<item name="components" xsi:type="array">
|
|
<item name="pr-cookie-notice" xsi:type="array">
|
|
<item name="component" xsi:type="string">Plumrocket_CookieConsent/js/view/notice</item>
|
|
<item name="template" xsi:type="string">Plumrocket_CookieConsent/notice/default</item>
|
|
</item>
|
|
</item>
|
|
</argument>
|
|
</arguments>
|
|
</block>
|
|
<block class="Plumrocket\CookieConsent\Block\Settings" name="pr-cookie-settings" ifconfig="pr_cookie/general/enabled">
|
|
<arguments>
|
|
<argument name="template" xsi:type="string">Plumrocket_CookieConsent::settings.phtml</argument>
|
|
<argument name="jsLayout" xsi:type="array">
|
|
<item name="components" xsi:type="array">
|
|
<item name="pr-cookie-settings-bar" xsi:type="array">
|
|
<item name="component" xsi:type="string">Plumrocket_CookieConsent/js/view/settings</item>
|
|
<item name="template" xsi:type="helper" helper="Plumrocket\CookieConsent\Helper\Config\SettingsBar::getJsComponentTemplate"/>
|
|
</item>
|
|
</item>
|
|
</argument>
|
|
</arguments>
|
|
</block>
|
|
</referenceContainer>
|
|
<referenceContainer name="before.body.end">
|
|
<block name="pr.youtube.no.cookie" template="Plumrocket_CookieConsent::youtube.phtml" ifconfig="pr_cookie/general/enabled">
|
|
<arguments>
|
|
<argument name="viewModel" xsi:type="object">Plumrocket\CookieConsent\ViewModel\Integration\NoCookieYoutube</argument>
|
|
<argument name="cspNonceViewModel" xsi:type="object">Plumrocket\Base\ViewModel\CspNonce</argument>
|
|
</arguments>
|
|
</block>
|
|
<block class="Plumrocket\CookieConsent\Block\Html\BodyScripts" name="pr_cookie_absolute_footer" after="absolute_footer" ifconfig="pr_cookie/general/enabled">
|
|
<arguments>
|
|
<argument name="template" xsi:type="string">Plumrocket_CookieConsent::html/absolute_footer.phtml</argument>
|
|
<argument name="cspNonceViewModel" xsi:type="object">Plumrocket\Base\ViewModel\CspNonce</argument>
|
|
</arguments>
|
|
</block>
|
|
</referenceContainer>
|
|
<referenceBlock name="footer_links">
|
|
<block name="pr-cookie-settings-link" class="Plumrocket\CookieConsent\Block\Html\CookieSettingsLink" ifconfig="pr_cookie/settings_link/show_footer_link">
|
|
<arguments>
|
|
<argument name="label" xsi:type="string" translate="true">Cookie Settings</argument>
|
|
<argument name="path" xsi:type="string">#</argument>
|
|
<argument name="class" xsi:type="string">pr-open-cookie-settings</argument>
|
|
</arguments>
|
|
</block>
|
|
</referenceBlock>
|
|
</body>
|
|
</page>
|