Files

33 lines
1.7 KiB
XML

<?xml version="1.0"?>
<!--
/**
* @package Plumrocket_GlobalPrivacyControl
* @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">
<head>
<css src="Plumrocket_GlobalPrivacyControl::css/gpc.css"/>
</head>
<body>
<referenceBlock name="head.additional">
<block class="Plumrocket\GlobalPrivacyControl\Block\ComponentInit" name="pr.gpc.init" after="pr.cookie.cookie_service">
<arguments>
<argument name="template" xsi:type="string">Plumrocket_GlobalPrivacyControl::init.phtml</argument>
<argument name="cspNonceViewModel" xsi:type="object">Plumrocket\Base\ViewModel\CspNonce</argument>
</arguments>
</block>
</referenceBlock>
<referenceContainer name="before.body.end">
<block class="Magento\Framework\View\Element\Template" name="pr.gpc.opt_out_notification" ifconfig="pr_gpc/general/enabled">
<arguments>
<argument name="template" xsi:type="string">Plumrocket_GlobalPrivacyControl::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>