ltsecurityinc安防产品在线商城代码
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
* @package Plumrocket_CookieConsent
|
||||
* @copyright Copyright (c) 2020 Plumrocket Inc. (https://plumrocket.com)
|
||||
* @license https://plumrocket.com/license End-user License Agreement
|
||||
-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
|
||||
<type name="Magento\Cookie\Helper\Cookie">
|
||||
<plugin name="pr-cookie-restriction-mode"
|
||||
type="Plumrocket\CookieConsent\Plugin\Cookie\RestrictionMode" sortOrder="10"/>
|
||||
</type>
|
||||
<type name="Magento\Framework\Stdlib\CookieManagerInterface">
|
||||
<plugin name="pr-cookie-filter"
|
||||
type="Plumrocket\CookieConsent\Plugin\CookieManagerPlugin" sortOrder="10"/>
|
||||
</type>
|
||||
<type name="Magento\Framework\View\Result\Page">
|
||||
<plugin name="pr-youtube-no-cookie-plugin"
|
||||
type="Plumrocket\CookieConsent\Plugin\YouTubeNoCookiePlugin" sortOrder="-10"/>
|
||||
</type>
|
||||
<type name="Magento\Framework\App\Response\Http">
|
||||
<plugin name="pr-cookie-update-head-scripts-tags"
|
||||
type="\Plumrocket\CookieConsent\Plugin\Html\HeadScripts"/>
|
||||
</type>
|
||||
</config>
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
* @package Plumrocket_CookieConsent
|
||||
* @copyright Copyright (c) 2020 Plumrocket Inc. (https://plumrocket.com)
|
||||
* @license https://plumrocket.com/license End-user License Agreement
|
||||
-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
|
||||
<event name="layout_load_before">
|
||||
<observer name="pr_cookie_remove_magento_notice" instance="Plumrocket\CookieConsent\Observer\RemoveMagentoNotice"/>
|
||||
</event>
|
||||
<event name="pr_cookie_consent_update">
|
||||
<observer name="pr_cookie_log_consent" instance="Plumrocket\CookieConsent\Observer\LogConsent"/>
|
||||
<observer name="pr_cookie_clear_rejected_cookie" instance="Plumrocket\CookieConsent\Observer\ClearRejectedCookie"/>
|
||||
</event>
|
||||
</config>
|
||||
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
* @package Plumrocket_CookieConsent
|
||||
* @copyright Copyright (c) 2020 Plumrocket Inc. (https://plumrocket.com)
|
||||
* @license https://plumrocket.com/license End-user License Agreement
|
||||
-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
|
||||
<router id="standard">
|
||||
<route id="pr_cookie" frontName="pr-cookie-consent">
|
||||
<module name="Plumrocket_CookieConsent" />
|
||||
</route>
|
||||
</router>
|
||||
</config>
|
||||
Reference in New Issue
Block a user