Files

48 lines
3.3 KiB
XML

<?xml version="1.0"?>
<!--
/**
* @package Plumrocket_CookieConsentPro
* @copyright Copyright (c) 2025 Plumrocket Inc. (https://www.plumrocket.com)
* @license https://www.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">
<body>
<referenceContainer name="head.additional">
<block class="Plumrocket\CookieConsent\Block\Html\HeadScripts" name="pr_cookie.microsoft_ads.head_script" before="-" ifconfig="pr_cookie/general/enabled">
<arguments>
<argument name="template" xsi:type="string">Plumrocket_CookieConsentPro::integration/microsoft_ads.phtml</argument>
<argument name="cspNonceViewModel" xsi:type="object">Plumrocket\Base\ViewModel\CspNonce</argument>
<argument name="microsoftAdsViewModel" xsi:type="object">Plumrocket\CookieConsentPro\ViewModel\Integration\MicrosoftAds</argument>
</arguments>
</block>
<block class="Plumrocket\CookieConsent\Block\Html\HeadScripts" name="pr_cookie.microsoft_clarity.head_script" after="pr.cookie.cookie_service" ifconfig="pr_cookie/general/enabled">
<arguments>
<argument name="template" xsi:type="string">Plumrocket_CookieConsentPro::integration/microsoft_clarity.phtml</argument>
<argument name="cspNonceViewModel" xsi:type="object">Plumrocket\Base\ViewModel\CspNonce</argument>
<argument name="microsoftClarityViewModel" xsi:type="object">Plumrocket\CookieConsentPro\ViewModel\Integration\MicrosoftClarity</argument>
</arguments>
</block>
</referenceContainer>
<referenceContainer name="after.body.start">
<block class="Magento\Framework\View\Element\Template" name="pr_cookie.gpc.head" after="pr.gpc.init" ifconfig="pr_gpc/general/enabled">
<arguments>
<argument name="template" xsi:type="string">Plumrocket_CookieConsentPro::integration/global_privacy_control/head_script.phtml</argument>
<argument name="cspNonceViewModel" xsi:type="object">Plumrocket\Base\ViewModel\CspNonce</argument>
<argument name="globalPrivacyControlViewModel" xsi:type="object">Plumrocket\CookieConsentPro\ViewModel\Integration\GlobalPrivacyControl</argument>
</arguments>
</block>
</referenceContainer>
<referenceContainer name="before.body.end">
<block class="Magento\Framework\View\Element\Template" name="pr_cookie.gpc.opt_out_notification" after="-" ifconfig="pr_gpc/general/enabled">
<arguments>
<argument name="template" xsi:type="string">Plumrocket_CookieConsentPro::integration/global_privacy_control/opt_out_notification.phtml</argument>
<argument name="cspNonceViewModel" xsi:type="object">Plumrocket\Base\ViewModel\CspNonce</argument>
<argument name="optOutNotificationViewModel" xsi:type="object">Plumrocket\GlobalPrivacyControl\ViewModel\OptOutNotification</argument>
</arguments>
</block>
</referenceContainer>
</body>
</page>