ltsecurityinc安防产品在线商城代码

This commit is contained in:
2026-09-14 17:47:10 +08:00
parent 57d8444c15
commit 6a3c9c5bd8
14539 changed files with 1775310 additions and 0 deletions
@@ -0,0 +1,98 @@
<?xml version="1.0"?>
<!--
/**
* Plumrocket Inc.
*
* NOTICE OF LICENSE
*
* This source file is subject to the End-user License Agreement
* that is available through the world-wide-web at this URL:
* http://wiki.plumrocket.net/wiki/EULA
* If you are unable to obtain it through the world-wide-web, please
* send an email to support@plumrocket.com so we can send you a copy immediately.
*
* @package Plumrocket_CookieConsent
* @copyright Copyright (c) 2020 Plumrocket Inc. (http://www.plumrocket.com)
* @license http://wiki.plumrocket.net/wiki/EULA End-user License Agreement
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<preference for="Plumrocket\CookieConsent\Ui\Locator\CategoryLocatorInterface" type="Plumrocket\CookieConsent\Ui\Locator\CategoryContainerLocator" />
<preference for="Plumrocket\CookieConsent\Ui\Locator\CookieLocatorInterface" type="Plumrocket\CookieConsent\Ui\Locator\CookieContainerLocator" />
<type name="Plumrocket\CookieConsent\Ui\DataProvider\Cookie\Category\Form\Modifier\Eav">
<arguments>
<argument name="locator" xsi:type="object">Plumrocket\CookieConsent\Ui\Locator\CategoryLocatorInterface</argument>
</arguments>
</type>
<type name="Plumrocket\CookieConsent\Ui\DataProvider\Cookie\Category\Form\Modifier\System">
<arguments>
<argument name="locator" xsi:type="object">Plumrocket\CookieConsent\Ui\Locator\CategoryLocatorInterface</argument>
</arguments>
</type>
<type name="Plumrocket\CookieConsent\Ui\DataProvider\Cookie\Item\Form\Modifier\Eav">
<arguments>
<argument name="locator" xsi:type="object">Plumrocket\CookieConsent\Ui\Locator\CookieLocatorInterface</argument>
</arguments>
</type>
<type name="Plumrocket\CookieConsent\Ui\DataProvider\Cookie\Item\Form\Modifier\System">
<arguments>
<argument name="locator" xsi:type="object">Plumrocket\CookieConsent\Ui\Locator\CookieLocatorInterface</argument>
</arguments>
</type>
<type name="Plumrocket\CookieConsent\Ui\DataProvider\Cookie\Item\Form\Modifier\Duration">
<arguments>
<argument name="locator" xsi:type="object">Plumrocket\CookieConsent\Ui\Locator\CookieLocatorInterface</argument>
</arguments>
</type>
<virtualType name="CookieCategoryFormModifierPool" type="Magento\Ui\DataProvider\Modifier\Pool">
<arguments>
<argument name="modifiers" xsi:type="array">
<item name="eav" xsi:type="array">
<item name="class" xsi:type="string">Plumrocket\CookieConsent\Ui\DataProvider\Cookie\Category\Form\Modifier\Eav</item>
<item name="sortOrder" xsi:type="number">100</item>
</item>
<item name="system" xsi:type="array">
<item name="class" xsi:type="string">Plumrocket\CookieConsent\Ui\DataProvider\Cookie\Category\Form\Modifier\System</item>
<item name="sortOrder" xsi:type="number">200</item>
</item>
<item name="key" xsi:type="array">
<item name="class" xsi:type="string">Plumrocket\CookieConsent\Ui\DataProvider\Cookie\Category\Form\Modifier\Key</item>
<item name="sortOrder" xsi:type="number">300</item>
</item>
</argument>
</arguments>
</virtualType>
<type name="Plumrocket\CookieConsent\Ui\DataProvider\Cookie\Category\Form\DataProvider">
<arguments>
<argument name="pool" xsi:type="object">CookieCategoryFormModifierPool</argument>
</arguments>
</type>
<virtualType name="CookieFormModifierPool" type="Magento\Ui\DataProvider\Modifier\Pool">
<arguments>
<argument name="modifiers" xsi:type="array">
<item name="eav" xsi:type="array">
<item name="class" xsi:type="string">Plumrocket\CookieConsent\Ui\DataProvider\Cookie\Item\Form\Modifier\Eav</item>
<item name="sortOrder" xsi:type="number">100</item>
</item>
<item name="system" xsi:type="array">
<item name="class" xsi:type="string">Plumrocket\CookieConsent\Ui\DataProvider\Cookie\Item\Form\Modifier\System</item>
<item name="sortOrder" xsi:type="number">200</item>
</item>
<item name="duration" xsi:type="array">
<item name="class" xsi:type="string">Plumrocket\CookieConsent\Ui\DataProvider\Cookie\Item\Form\Modifier\Duration</item>
<item name="sortOrder" xsi:type="number">300</item>
</item>
</argument>
</arguments>
</virtualType>
<type name="Plumrocket\CookieConsent\Ui\DataProvider\Cookie\Item\Form\DataProvider">
<arguments>
<argument name="pool" xsi:type="object">CookieFormModifierPool</argument>
</arguments>
</type>
</config>
@@ -0,0 +1,32 @@
<?xml version="1.0"?>
<!--
/**
* Plumrocket Inc.
*
* NOTICE OF LICENSE
*
* This source file is subject to the End-user License Agreement
* that is available through the world-wide-web at this URL:
* http://wiki.plumrocket.net/wiki/EULA
* If you are unable to obtain it through the world-wide-web, please
* send an email to support@plumrocket.com so we can send you a copy immediately.
*
* @package Plumrocket_CookieConsent
* @copyright Copyright (c) 2020 Plumrocket Inc. (http://www.plumrocket.com)
* @license http://wiki.plumrocket.net/wiki/EULA End-user License Agreement
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd">
<menu>
<add module="Plumrocket_CookieConsent" parent="Plumrocket_Base::elements" id="Plumrocket_CookieConsent::pr_menu" resource="Plumrocket_CookieConsent::pr_menu" title="Cookie Consent" translate="title" sortOrder="1547904"/>
<add module="Plumrocket_CookieConsent" parent="Plumrocket_CookieConsent::pr_menu" id="Plumrocket_CookieConsent::cookie_categories" resource="Plumrocket_CookieConsent::cookie_categories" action="pr_cookie/category/index" title="Cookie Categories" translate="title" sortOrder="10"/>
<add module="Plumrocket_CookieConsent" parent="Plumrocket_CookieConsent::pr_menu" id="Plumrocket_CookieConsent::cookies" resource="Plumrocket_CookieConsent::cookies" action="pr_cookie/item/index" title="Cookies" translate="title" sortOrder="20"/>
<add module="Plumrocket_CookieConsent" parent="Plumrocket_CookieConsent::pr_menu" id="Plumrocket_CookieConsent::consent_log" resource="Plumrocket_CookieConsent::consent_log" action="pr_cookie/consent_log/index" title="Cookie Consent Log" translate="title" sortOrder="30"/>
<add module="Plumrocket_CookieConsent" parent="Plumrocket_CookieConsent::pr_menu" id="Plumrocket_CookieConsent::configuration" resource="Plumrocket_CookieConsent::configuration" action="adminhtml/system_config/edit/section/pr_cookie" title="Configuration" translate="title" sortOrder="60"/>
<add module="Plumrocket_CookieConsent" parent="Magento_Customer::customer" id="Plumrocket_CookieConsent::pr_group_icon_customer" resource="Plumrocket_CookieConsent::pr_menu" title="Cookie Consent" translate="title" sortOrder="1547904"/>
<add module="Plumrocket_CookieConsent" parent="Plumrocket_CookieConsent::pr_group_icon_customer" id="Plumrocket_CookieConsent::customer__cookie_categories" resource="Plumrocket_CookieConsent::cookie_categories" action="pr_cookie/category/index" title="Cookie Categories" translate="title" sortOrder="10"/>
<add module="Plumrocket_CookieConsent" parent="Plumrocket_CookieConsent::pr_group_icon_customer" id="Plumrocket_CookieConsent::customer__cookies" resource="Plumrocket_CookieConsent::cookies" action="pr_cookie/item/index" title="Cookies" translate="title" sortOrder="20"/>
<add module="Plumrocket_CookieConsent" parent="Plumrocket_CookieConsent::pr_group_icon_customer" id="Plumrocket_CookieConsent::customer__consent_log" resource="Plumrocket_CookieConsent::consent_log" action="pr_cookie/consent_log/index" title="Cookie Consent Log" translate="title" sortOrder="30"/>
</menu>
</config>
@@ -0,0 +1,26 @@
<?xml version="1.0"?>
<!--
* Plumrocket Inc.
*
* NOTICE OF LICENSE
*
* This source file is subject to the End-user License Agreement
* that is available through the world-wide-web at this URL:
* http://wiki.plumrocket.net/wiki/EULA
* If you are unable to obtain it through the world-wide-web, please
* send an email to support@plumrocket.com so we can send you a copy immediately.
*
* @package Plumrocket_CookieConsent
* @copyright Copyright (c) 2020 Plumrocket Inc. (http://www.plumrocket.com)
* @license http://wiki.plumrocket.net/wiki/EULA 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="admin">
<route id="pr_cookie" frontName="prcookie">
<module name="Plumrocket_CookieConsent" />
</route>
</router>
</config>
@@ -0,0 +1,421 @@
<?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:module:Magento_Config:etc/system_file.xsd">
<system>
<section id="pr_cookie" translate="label" type="text" sortOrder="1547904" showInDefault="1" showInWebsite="1" showInStore="1">
<class>separator-top</class>
<label>Cookie Consent</label>
<tab>plumrocket</tab>
<resource>Plumrocket_CookieConsent::configuration</resource>
<group id="toolbox" translate="label" type="text" sortOrder="0" showInDefault="1" showInWebsite="1" showInStore="1">
<frontend_model>Plumrocket\Base\Block\Adminhtml\System\Config\Form\ToolbarFieldset</frontend_model>
<field id="version" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<frontend_model>Plumrocket\Base\Block\Adminhtml\System\Config\Form\Version</frontend_model>
<attribute type="pr_extension_name">CookieConsent</attribute>
</field>
</group>
<group id="general" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>General</label>
<attribute type="expanded">1</attribute>
<field id="enabled" translate="label" type="select" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Enable Extension</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="serial" translate="label comment" type="text" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="0">
<frontend_model>Plumrocket\Base\Block\Adminhtml\System\Config\Form\Serial</frontend_model>
<label>Serial Key</label>
<attribute type="pr_extension_name">CookieConsent</attribute>
</field>
</group>
<group id="main_settings" translate="label" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Main Settings</label>
<field id="use_cookie_before_opt_in" translate="label" type="select" sortOrder="400" showInDefault="1" showInWebsite="1" showInStore="0">
<label>Enable Cookies Before Customer Opt-In</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<comment>Enable all cookies until the customer accepts or declines them. We recommend enabling this feature for CCPA law where consent is not required for collecting personal data.</comment>
</field>
<field id="consent_expiry" translate="label" type="text" sortOrder="500" showInDefault="1" showInWebsite="1" showInStore="0">
<label>Consent Expiration (days)</label>
<comment>Set number of days when the consent cookies are set to expire.</comment>
</field>
<field id="block_unknown_cookie" translate="label" type="select" sortOrder="600" showInDefault="1" showInWebsite="1" showInStore="0">
<label>Block Unknown Cookies</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<comment>Block all cookies that are not listed in the "Manage Cookies" grid until a visitor clicks on the "Accept All Cookies" button.</comment>
</field>
<field id="reload_after_accept" translate="label" type="select" sortOrder="700" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Reload Page After Accept Button Click</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<comment>Reloading a page after "Accept Cookies Button" is clicked helps to enable certain javascripts and third-party cookies. We recommend setting this option to "Yes" if "Enable Cookies Before Customer Opt-In" option above is set to "No".</comment>
</field>
<field id="reload_after_decline" translate="label" type="select" sortOrder="800" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Reload Page After Decline Button Click</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<comment>Reloading a page after "Decline Cookies Button" is clicked helps to disable certain javascripts and third-party cookies. We recommend setting this option to "Yes" if "Enable Cookies Before Customer Opt-In" option above is set to "Yes".</comment>
</field>
</group>
<group id="cookie_notice" translate="label" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Cookie Consent Banner</label>
<field id="display_style" translate="label" type="Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\Element\ImageRadioButtons" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Display Style</label>
<source_model>Plumrocket\CookieConsent\Model\Config\Source\BannerDisplayStyle</source_model>
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\CustomisableField</frontend_model>
<comment>Select the design of the cookie notice. Please note, the option “Full-Screen Cookie Wall”, unlike other options, prevents visitors from using the website until they agree to enable cookies.</comment>
</field>
<field id="hide_on_urls" type="textarea" sortOrder="30" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Hide On Urls</label>
<comment>You can disable cookie consent banner on specific pages. Enter each URL in new line. Both the absolute or relative path is allowed.</comment>
</field>
<field id="title" type="text" sortOrder="55" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Title</label>
<depends>
<field id="display_style" separator=",">wall,popup</field>
</depends>
</field>
<field id="text" translate="label" type="editor" sortOrder="60" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Notice Text</label>
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\Editor</frontend_model>
<attribute type="pr_editor_height">200px</attribute>
</field>
<field id="title_color" translate="label" type="text" sortOrder="65" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Title Color</label>
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
<depends>
<field id="display_style" separator=",">wall,popup</field>
</depends>
</field>
<field id="text_color" translate="label" type="text" sortOrder="70" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Text Color</label>
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
</field>
<field id="background_color" translate="label" type="text" sortOrder="80" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Background Color</label>
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
</field>
<field id="overlay_background_color" translate="label" type="text" sortOrder="85" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Overlay Background Color</label>
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
<depends>
<field id="display_style" separator=",">wall,popup</field>
</depends>
</field>
<field id="overlay_blur" translate="label" type="select" sortOrder="87" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Overlay Background Blur</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<depends>
<field id="display_style" separator=",">wall,popup</field>
</depends>
</field>
<group id="accept_button" translate="label" sortOrder="90" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Accept Button</label>
<field id="label" type="text" sortOrder="10" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Label</label>
<comment><![CDATA[Enter here "Allow Cookies", "Accept", etc.]]></comment>
</field>
<field id="text_color" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Text Color</label>
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
</field>
<field id="text_color_on_hover" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Text Color On Hover</label>
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
</field>
<field id="background_color" translate="label" type="text" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Background Color</label>
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
</field>
<field id="background_color_on_hover" translate="label" type="text" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Background Color On Hover</label>
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
</field>
</group>
<group id="decline_button" translate="label" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Decline Button</label>
<field id="enabled" type="select" sortOrder="5" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Show</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="label" type="text" sortOrder="10" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Label</label>
<depends>
<field id="enabled">1</field>
</depends>
</field>
<field id="text_color" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Text Color</label>
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
<depends>
<field id="enabled">1</field>
</depends>
</field>
<field id="text_color_on_hover" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Text Color On Hover</label>
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
<depends>
<field id="enabled">1</field>
</depends>
</field>
<field id="background_color" translate="label" type="text" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Background Color</label>
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
<depends>
<field id="enabled">1</field>
</depends>
</field>
<field id="background_color_on_hover" translate="label" type="text" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Background Color On Hover</label>
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
<depends>
<field id="enabled">1</field>
</depends>
</field>
</group>
<group id="settings_button" translate="label" sortOrder="110" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Settings Button</label>
<field id="enabled" type="select" sortOrder="10" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Show</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="label" type="text" sortOrder="20" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Label</label>
<depends>
<field id="enabled">1</field>
</depends>
</field>
<field id="type" type="select" sortOrder="30" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Type</label>
<source_model>Plumrocket\CookieConsent\Model\Config\Source\SettingsButtonType</source_model>
<depends>
<field id="enabled">1</field>
</depends>
</field>
<field id="text_color" translate="label" type="text" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Text Color</label>
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
<depends>
<field id="type">button</field>
<field id="enabled">1</field>
</depends>
</field>
<field id="text_color_on_hover" translate="label" type="text" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Text Color On Hover</label>
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
<depends>
<field id="type">button</field>
<field id="enabled">1</field>
</depends>
</field>
<field id="background_color" translate="label" type="text" sortOrder="60" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Background Color</label>
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
<depends>
<field id="type">button</field>
<field id="enabled">1</field>
</depends>
</field>
<field id="background_color_on_hover" translate="label" type="text" sortOrder="70" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Background Color On Hover</label>
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
<depends>
<field id="type">button</field>
<field id="enabled">1</field>
</depends>
</field>
<field id="link_color" translate="label" type="text" sortOrder="80" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Link Color</label>
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
<depends>
<field id="type">link</field>
<field id="enabled">1</field>
</depends>
</field>
<field id="link_color_on_hover" translate="label" type="text" sortOrder="90" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Link Color On Hover</label>
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
<depends>
<field id="type">link</field>
<field id="enabled">1</field>
</depends>
</field>
</group>
</group>
<group id="settings_bar" translate="label" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Cookie Settings Panel</label>
<field id="display_style" translate="label" type="Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\Element\ImageRadioButtons" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Display Style</label>
<source_model>Plumrocket\CookieConsent\Model\Config\Source\SettingsPanelDisplayStyle</source_model>
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\CustomisableField</frontend_model>
</field>
<field id="overview_title" translate="label" type="text" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Title</label>
</field>
<field id="overview_text" translate="label" type="editor" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Overview</label>
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\Editor</frontend_model>
<attribute type="pr_editor_height">200px</attribute>
</field>
<field id="text_color" translate="label" type="text" sortOrder="60" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Text Color</label>
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
</field>
<field id="background_color" translate="label" type="text" sortOrder="70" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Background Color</label>
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
</field>
<group id="consent_preferences" translate="label" sortOrder="80" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Consent Preferences</label>
<field id="header" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Header</label>
<config_path>pr_cookie/settings_bar/header</config_path>
</field>
<field id="essential_category_status" translate="label" type="text" sortOrder="20" showInWebsite="1" showInDefault="1" showInStore="1">
<label>Essential Category Status</label>
<config_path>pr_cookie/settings_bar/essential_category_status</config_path>
</field>
<field id="show_details" type="select" sortOrder="30" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Show Information About Each Cookie</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<comment>Show info about a cookie (domain, type, duration, description, etc.) listed in "Manage Cookies" grid.</comment>
<config_path>pr_cookie/settings_bar/show_details</config_path>
</field>
<field id="cookie_details_link" translate="label" type="text" sortOrder="35" showInStore="1" showInDefault="1" showInWebsite="1">
<label>Cookie Details Link</label>
<depends>
<field id="show_details">1</field>
</depends>
<config_path>pr_cookie/settings_bar/cookie_details_link</config_path>
</field>
</group>
<group id="accept_button" translate="label" sortOrder="80" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Accept Button</label>
<field id="label" type="text" sortOrder="10" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Label</label>
<comment><![CDATA[Enter here "Allow Cookies", "Accept", etc.]]></comment>
</field>
<field id="text_color" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Text Color</label>
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
</field>
<field id="text_color_on_hover" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Text Color On Hover</label>
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
</field>
<field id="background_color" translate="label" type="text" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Background Color</label>
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
</field>
<field id="background_color_on_hover" translate="label" type="text" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Background Color On Hover</label>
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
</field>
</group>
<group id="decline_button" translate="label" sortOrder="90" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Decline Button</label>
<field id="enabled" type="select" sortOrder="5" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Show</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="label" type="text" sortOrder="10" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Label</label>
<depends>
<field id="enabled">1</field>
</depends>
</field>
<field id="text_color" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Text Color</label>
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
<depends>
<field id="enabled">1</field>
</depends>
</field>
<field id="text_color_on_hover" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Text Color On Hover</label>
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
<depends>
<field id="enabled">1</field>
</depends>
</field>
<field id="background_color" translate="label" type="text" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Background Color</label>
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
<depends>
<field id="enabled">1</field>
</depends>
</field>
<field id="background_color_on_hover" translate="label" type="text" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Background Color On Hover</label>
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
<depends>
<field id="enabled">1</field>
</depends>
</field>
</group>
<group id="confirm_button" translate="label" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Confirm Button</label>
<field id="label" type="text" sortOrder="10" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Label</label>
<depends>
<field id="enabled">1</field>
</depends>
</field>
<field id="text_color" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Text Color</label>
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
<depends>
<field id="enabled">1</field>
</depends>
</field>
<field id="text_color_on_hover" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Text Color On Hover</label>
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
</field>
<field id="background_color" translate="label" type="text" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Background Color</label>
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
<depends>
<field id="enabled">1</field>
</depends>
</field>
<field id="background_color_on_hover" translate="label" type="text" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Background Color On Hover</label>
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
<depends>
<field id="enabled">1</field>
</depends>
</field>
</group>
</group>
<group id="settings_link" translate="label" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Cookie Settings Link</label>
<field id="show_footer_link" type="select" sortOrder="10" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Add Footer Link</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<comment>Automatically add the "Cookie Settings" link in the website footer. By clicking on this link your customers and guest visitors can manage their cookie settings at any time. If you want to add this link manually, please use the widget code below.</comment>
</field>
<field id="widget_code" translate="label" type="textarea" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Widget Code</label>
<frontend_model>Plumrocket\CookieConsent\Block\Adminhtml\System\Config\Form\WidgetCode</frontend_model>
<comment>Use this Magento widget to insert the "Cookie Settings" link anywhere across your store. Widgets are useful when you need to manually display the cookie settings button in the website footer, Privacy Policy or Cookie Policy page, etc.</comment>
</field>
</group>
<include path="Plumrocket_CookieConsent::system/integrations.xml"/>
</section>
</system>
</config>
@@ -0,0 +1,137 @@
<?xml version="1.0" ?>
<!--
/**
* @package Plumrocket_CookieConsent
* @copyright Copyright (c) 2025 Plumrocket Inc. (https://www.plumrocket.com)
* @license https://www.plumrocket.com/license/ End-user License Agreement
*/
-->
<include xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_include.xsd">
<group id="integrations" translate="label" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Integrations</label>
<attribute type="expanded">1</attribute>
<group id="pr_gpc" translate="label" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Global Privacy Control (GPC) – Available in Pro Version</label>
<attribute type="expanded">0</attribute>
<field id="upgrade_to_pro_notice" type="label" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<frontend_model>Plumrocket\CookieConsent\Block\Adminhtml\System\Config\Form\UpgradeToProVersionNotice</frontend_model>
<attribute type="notice_intro">
<![CDATA[This configuration is available in the Cookie Consent Pro version. Upgrade today to automatically detect users’ browser-level consent preferences and stay compliant with the latest data privacy regulations.]]>
</attribute>
</field>
</group>
<group id="gtm" translate="label" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Google Tag Manager</label>
<field id="enabled" type="select" sortOrder="10" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Enable</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<config_path>prgdpr/gtm/enabled</config_path>
</field>
<field id="container_id" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Container Id</label>
<depends>
<field id="*/*/*/enabled">1</field>
</depends>
<config_path>prgdpr/gtm/container_id</config_path>
<comment>Enter your container ID formatted as "GTM-XXXXXX".</comment>
</field>
<field id="server_side_tagging" translate="label" type="select" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Use Server-Side Tagging</label>
<depends>
<field id="*/*/*/enabled">1</field>
</depends>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<config_path>pr_cookie/gtm/server_side_tagging</config_path>
<comment><![CDATA[Enable server-side tagging to serve the Google Tag Manager script from your own infrastructure, as recommended by Google for advanced configurations to serve data within a first-party context. See the <a href="https://developers.google.com/tag-platform/tag-manager/server-side/dependency-serving?tag=gtm" target="_blank">server-side tagging documentation</a> for details on script dependency serving.]]></comment>
</field>
<field id="server_url" translate="label" type="text" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Server Container URL</label>
<depends>
<field id="*/*/*/enabled">1</field>
<field id="*/*/*/server_side_tagging">1</field>
</depends>
<config_path>pr_cookie/gtm/server_url</config_path>
</field>
<field id="consent_mode" type="select" sortOrder="50" translate="label" showInDefault="1"
showInWebsite="1" showInStore="1">
<label>Enable Consent Mode</label>
<options>
<option label="Yes">1</option>
<option label="No (Deprecated)">0</option>
</options>
<depends>
<field id="*/*/*/enabled">1</field>
</depends>
<config_path>pr_cookie/gtm/consent_mode</config_path>
<comment><![CDATA[Consent mode is a <a href="https://support.google.com/analytics/answer/9976101" target="_blank">GTM build-in feature</a>, allowing to control Google Tags based on user consent in Magento.]]></comment>
</field>
<field id="consent_types" translate="label" sortOrder="60" showInDefault="1" showInWebsite="1"
showInStore="1">
<label>Consent Types</label>
<frontend_model>Plumrocket\CookieConsent\Block\Adminhtml\System\Config\Form\ConsentTypes\MappingTable</frontend_model>
<backend_model>Plumrocket\CookieConsent\Model\Config\Backend\ConsentTypes</backend_model>
<depends>
<field id="*/*/*/enabled">1</field>
<field id="*/*/*/consent_mode">1</field>
</depends>
<config_path>pr_cookie/gtm/consent_types</config_path>
<comment><![CDATA[To learn more about consent types, please check official <a href="https://support.google.com/tagmanager/answer/10718549" target="_blank">consent configuration article</a>.]]></comment>
</field>
<field id="category" type="select" sortOrder="70" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Associated Cookie Category</label>
<source_model>Plumrocket\CookieConsent\Model\Cookie\Attribute\Source\CategoryKey</source_model>
<depends>
<field id="*/*/*/enabled">1</field>
<field id="*/*/*/consent_mode">0</field>
</depends>
<config_path>pr_cookie/gtm/category</config_path>
<comment>Assign Google Tag Manager Script to a specific cookie category. This allows enabling/disabling Google Tag Manager when a visitor enables/disables the corresponding cookie category.</comment>
</field>
</group>
<group id="no_cookie_youtube" translate="label" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
<label>YouTube</label>
<field id="category" type="select" sortOrder="10" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Associated Cookie Category</label>
<source_model>Plumrocket\CookieConsent\Model\Cookie\Attribute\Source\CategoryKey</source_model>
<config_path>pr_cookie/no_cookie_youtube/category</config_path>
<comment><![CDATA[Assign YouTube script to a specific cookie category. This allows enabling/disabling the YouTube <a href="https://support.google.com/youtube/answer/171780" target="_blank">privacy-enhanced mode</a> when the visitor enables/disables the corresponding cookie category.]]></comment>
</field>
</group>
<group id="adobe_commerce_data_collection" translate="label" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Adobe Commerce Data Collection</label>
<field id="category" type="select" sortOrder="10" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Associated Cookie Category</label>
<source_model>Plumrocket\CookieConsent\Model\Cookie\Attribute\Source\CategoryKey</source_model>
<comment><![CDATA[Specify a cookie category for the Data Collection service, which directly influences the accuracy of <a href="https://experienceleague.adobe.com/en/docs/commerce-merchant-services/product-recommendations/guide-overview" target="_blank">Product Recommendations</a>. Event tracking operates in accordance with the extension's main settings.]]></comment>
</field>
</group>
<group id="microsoft_ads" translate="label" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Microsoft Ads (UET Consent Mode) – Available in Pro Version</label>
<attribute type="expanded">0</attribute>
<field id="upgrade_to_pro_notice" type="label" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<frontend_model>Plumrocket\CookieConsent\Block\Adminhtml\System\Config\Form\UpgradeToProVersionNotice</frontend_model>
<attribute type="notice_intro">
<![CDATA[This configuration is available in the Cookie Consent Pro version. Upgrade today to stay compliant with data privacy regulations and ensure your Microsoft Ads tracking respects user consent choices.]]>
</attribute>
</field>
</group>
<group id="microsoft_clarity" translate="label" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Microsoft Clarity – Available in Pro Version</label>
<attribute type="expanded">0</attribute>
<field id="upgrade_to_pro_notice" type="label" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<frontend_model>Plumrocket\CookieConsent\Block\Adminhtml\System\Config\Form\UpgradeToProVersionNotice</frontend_model>
<attribute type="notice_intro">
<![CDATA[This configuration is available in the Cookie Consent Pro version. Upgrade today to stay compliant with data privacy regulations and ensure your Microsoft Clarity tracking respects user consent choices.]]>
</attribute>
</field>
</group>
</group>
</include>