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,14 @@
<?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
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd">
<menu>
<update id="Plumrocket_CookieConsent::pr_menu" title="Cookie Consent Pro"/>
<update id="Plumrocket_CookieConsent::pr_group_icon_customer" title="Cookie Consent Pro"/>
</menu>
</config>
@@ -0,0 +1,52 @@
<?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
*/
-->
<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">
<label>Cookie Consent Pro</label>
<group id="toolbox" >
<field id="version">
<attribute type="pr_extension_name">CookieConsentPro</attribute>
</field>
</group>
<group id="general">
<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">CookieConsentPro</attribute>
</field>
</group>
<include path="Plumrocket_CookieConsentPro::system/integrations.xml"/>
</section>
<section id="pr_gpc">
<group id="cookie_consent_management">
<field id="behavior" translate="label comment" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Cookie Consent Behavior on GPC Signal</label>
<source_model>Plumrocket\CookieConsentPro\Model\Config\Source\GlobalPrivacyControl\CookieConsentBehavior</source_model>
<comment>Choose the default behavior when GPC is detected.</comment>
</field>
<field id="categories_to_decline" translate="label comment" type="multiselect" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Categories to Decline</label>
<source_model>Plumrocket\CookieConsentPro\Model\Config\Source\CookieCategories</source_model>
<frontend_model>Plumrocket\CookieConsentPro\Block\Adminhtml\System\Config\Form\GlobalPrivacyControl\CookieCategoriesToDecline</frontend_model>
<backend_model>Plumrocket\CookieConsentPro\Model\Config\Backend\GlobalPrivacyControl\CookieCategoriesToDecline</backend_model>
<comment>Select which categories of cookies to decline automatically when GPC is enabled. Please note: essential cookies cannot be selected to be automatically declined, as they are required for the core functionality of the website.</comment>
<depends>
<field id="behavior">decline_specific</field>
</depends>
</field>
<field id="addon_required_notice" showInDefault="0" showInWebsite="0" showInStore="0"/>
</group>
</section>
</system>
</config>
@@ -0,0 +1,65 @@
<?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
*/
-->
<include xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_include.xsd">
<group id="integrations">
<group id="pr_gpc" sortOrder="10">
<label>Global Privacy Control (GPC)</label>
<attribute type="expanded">1</attribute>
<field id="open_settings" type="button" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<frontend_model>Plumrocket\CookieConsentPro\Block\Adminhtml\System\Config\Form\GlobalPrivacyControl\OpenSettingsButton</frontend_model>
</field>
<field id="upgrade_to_pro_notice" showInDefault="0" showInWebsite="0" showInStore="0"/>
</group>
<group id="gtm" sortOrder="20"/>
<group id="no_cookie_youtube" sortOrder="30"/>
<group id="microsoft_ads" sortOrder="40">
<label>Microsoft Ads (UET Consent Mode)</label>
<field id="upgrade_to_pro_notice" showInDefault="0" showInWebsite="0" showInStore="0"/>
<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>
</field>
<field id="consent_types" translate="label" sortOrder="20" 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>
</depends>
<comment><![CDATA[Define the cookie category and default consent status for Microsoft Ads tracking. This setting determines how the UET tag behaves if the user has not yet accepted or denied cookies. Refer to the <a href="https://help.ads.microsoft.com/apex/index/3/en/60119" target="_blank">official Microsoft guide</a> if you need to validate the consent mode implementation.]]></comment>
</field>
</group>
<group id="microsoft_clarity" sortOrder="50">
<label>Microsoft Clarity</label>
<field id="upgrade_to_pro_notice" showInDefault="0" showInWebsite="0" showInStore="0"/>
<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>
</field>
<field id="consent_types" translate="label" sortOrder="20" 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>
</depends>
<comment><![CDATA[To learn more about consent types, please check official <a href="https://learn.microsoft.com/en-us/clarity/setup-and-installation/clarity-consent-api-v2" target="_blank">consent configuration article</a>.]]></comment>
</field>
</group>
<group id="adobe_commerce_data_collection" sortOrder="60"/>
</group>
</include>
@@ -0,0 +1,46 @@
<?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
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
<default>
<pr_cookie>
<integrations>
<microsoft_ads>
<enabled>0</enabled>
<consent_types>
<item1>
<consent_type>ad_storage</consent_type>
<status>denied</status>
<cookie_category>marketing</cookie_category>
</item1>
</consent_types>
</microsoft_ads>
<microsoft_clarity>
<enabled>0</enabled>
<consent_types>
<item1>
<consent_type>ad_Storage</consent_type>
<status>denied</status>
<cookie_category>marketing</cookie_category>
</item1>
<item2>
<consent_type>analytics_Storage</consent_type>
<status>denied</status>
<cookie_category>statistics</cookie_category>
</item2>
</consent_types>
</microsoft_clarity>
</integrations>
</pr_cookie>
<pr_gpc>
<cookie_consent_management>
<behavior>decline_all</behavior>
</cookie_consent_management>
</pr_gpc>
</default>
</config>
@@ -0,0 +1,20 @@
<?xml version="1.0"?>
<!--
* @package Plumrocket_CookieConsentPro
* @copyright Copyright (c) 2025 Plumrocket Inc. (https://plumrocket.com)
* @license https://plumrocket.com/license End-user License Agreement
-->
<csp_whitelist xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Csp:etc/csp_whitelist.xsd">
<policies>
<policy id="script-src">
<values>
<value id="clarity.ms" type="host">*.clarity.ms</value>
</values>
</policy>
<policy id="connect-src">
<values>
<value id="clarity.ms" type="host">*.clarity.ms</value>
</values>
</policy>
</policies>
</csp_whitelist>
@@ -0,0 +1,14 @@
<?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
*/
-->
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
<table name="pr_cookie_consent_log">
<column xsi:type="varchar" name="initiated_by" nullable="true" length="32" comment="Initiated By"/>
</table>
</schema>
@@ -0,0 +1,7 @@
{
"pr_cookie_consent_log": {
"column": {
"initiated_by": true
}
}
}
@@ -0,0 +1,13 @@
<?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
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<preference for="Plumrocket\CookieConsent\Model\Consent\Log" type="Plumrocket\CookieConsentPro\Model\Consent\Log"/>
<preference for="Plumrocket\CookieConsent\Model\Consent\Logger" type="Plumrocket\CookieConsentPro\Model\Consent\Logger"/>
</config>
@@ -0,0 +1,17 @@
<?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
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Plumrocket_CookieConsentPro" setup_version="1.0.0">
<sequence>
<module name="Plumrocket_CookieConsent"/>
<module name="Plumrocket_GlobalPrivacyControl"/>
</sequence>
</module>
</config>
@@ -0,0 +1,29 @@
<?xml version="1.0"?>
<!--
* @package Plumrocket_CookieConsentPro
* @copyright Copyright (c) 2025 Plumrocket Inc. (https://plumrocket.com)
* @license https://plumrocket.com/license End-user License Agreement
-->
<cookies xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Plumrocket_CookieConsent:etc/pr-cookies.xsd">
<cookie name="_clck" category="statistics">
<duration xsi:type="const">Plumrocket\CookieConsent\Model\Cookie\Duration::SESSION</duration>
<description>Persists the Microsoft Clarity User ID and preferences, unique to that site is attributed to the same user ID.</description>
</cookie>
<cookie name="_clsk" category="statistics">
<duration xsi:type="const">Plumrocket\CookieConsent\Model\Cookie\Duration::SESSION</duration>
<description>Connects multiple page views by a user into a single Microsoft Clarity session recording.</description>
</cookie>
<cookie name="CLID" category="statistics" type="third">
<duration xsi:type="const">Plumrocket\CookieConsent\Model\Cookie\Duration::ONE_YEAR</duration>
<description>Identifies the first time Microsoft Clarity saw the current user on any site using the service</description>
</cookie>
<cookie name="MR" category="marketing" type="third">
<duration xsi:type="const">Plumrocket\CookieConsent\Model\Cookie\Duration::ONE_YEAR</duration>
<description>Used by Microsoft to track users for analytics purposes.</description>
</cookie>
<cookie name="MUID" category="marketing" type="third">
<duration xsi:type="const">Plumrocket\CookieConsent\Model\Cookie\Duration::ONE_YEAR</duration>
<description>Identifies unique web browsers visiting Microsoft sites. These cookies are used for advertising, site analytics, and other operational purposes.</description>
</cookie>
</cookies>
@@ -0,0 +1,19 @@
<?xml version="1.0"?>
<!--
* @package Plumrocket_CookieConsentPro
* @copyright Copyright (c) 2025 Plumrocket Inc. (https://plumrocket.com)
* @license https://plumrocket.com/license End-user License Agreement
-->
<extensions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Plumrocket_Base:etc/pr_extensions.xsd">
<extension name="CookieConsentPro"
title="Cookie Consent Pro"
config_section="pr_cookie"
is_enabled_path="pr_cookie/general/enabled"
documentation="https://plumrocket.com/docs/magento-cookie-consent-pro/v1"
url="https://plumrocket.com/magento-cookie-consent"
marketplace_url="https://marketplace.magento.com/plumrocket-cookie-consent-pro.html"
>
<customer key="18771d78aa85ca47851fca7fdf3dd545bad4a02358"/>
</extension>
</extensions>