ltsecurityinc安防产品在线商城代码
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?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
|
||||
*/
|
||||
-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd">
|
||||
<acl>
|
||||
<resources>
|
||||
<resource id="Magento_Backend::admin">
|
||||
<resource id="Magento_Backend::stores">
|
||||
<resource id="Magento_Backend::stores_settings">
|
||||
<resource id="Magento_Config::config">
|
||||
<resource id="Plumrocket_GlobalPrivacyControl::configuration" title="Global Privacy Control (GPC) Section" />
|
||||
</resource>
|
||||
</resource>
|
||||
</resource>
|
||||
</resource>
|
||||
</resources>
|
||||
</acl>
|
||||
</config>
|
||||
@@ -0,0 +1,13 @@
|
||||
<?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
|
||||
*/
|
||||
-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
|
||||
<event name="admin_system_config_changed_section_pr_gpc">
|
||||
<observer name="pr_gpc_generate_well_known_file" instance="Plumrocket\GlobalPrivacyControl\Observer\GenerateWellKnownFile"/>
|
||||
</event>
|
||||
</config>
|
||||
@@ -0,0 +1,14 @@
|
||||
<?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
|
||||
*/
|
||||
-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Menu/etc/menu.xsd">
|
||||
<menu>
|
||||
<add module="Plumrocket_GlobalPrivacyControl" parent="Plumrocket_Base::elements" id="Plumrocket_GlobalPrivacyControl::pr_menu" resource="Plumrocket_GlobalPrivacyControl::pr_menu" title="Global Privacy Control (GPC)" translate="title" sortOrder="3940412"/>
|
||||
<add module="Plumrocket_GlobalPrivacyControl" parent="Plumrocket_GlobalPrivacyControl::pr_menu" id="Plumrocket_GlobalPrivacyControl::configuration" resource="Plumrocket_GlobalPrivacyControl::configuration" action="adminhtml/system_config/edit/section/pr_gpc" title="Configuration" translate="title" sortOrder="10"/>
|
||||
</menu>
|
||||
</config>
|
||||
@@ -0,0 +1,107 @@
|
||||
<?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
|
||||
*/
|
||||
-->
|
||||
<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_gpc" translate="label" type="text" sortOrder="3940412" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<class>separator-top</class>
|
||||
<label>Global Privacy Control (GPC)</label>
|
||||
<tab>plumrocket</tab>
|
||||
<resource>Plumrocket_GlobalPrivacyControl::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">GlobalPrivacyControl</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 comment" type="select" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0">
|
||||
<label>Enable Extension</label>
|
||||
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
|
||||
<comment>Enable automatic GPC detection.</comment>
|
||||
</field>
|
||||
<field id="serial" translate="label comment" type="text" sortOrder="20" 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">GlobalPrivacyControl</attribute>
|
||||
</field>
|
||||
<field id="geo_targeting" translate="label comment" type="multiselect" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Geo Targeting</label>
|
||||
<source_model>Plumrocket\GeoIPLookup\Model\System\Config\Source\GeoTargeting</source_model>
|
||||
<frontend_model>Plumrocket\GlobalPrivacyControl\Block\Adminhtml\System\Config\GeoTargetingMultiSelect</frontend_model>
|
||||
<frontend_class>geoip-select-with-chosen prgdpr-coutry</frontend_class>
|
||||
<comment>Limit GPC functionality to visitors from specified regions.</comment>
|
||||
</field>
|
||||
<field id="states_geo_targeting" translate="label comment" type="multiselect" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>U.S. States</label>
|
||||
<source_model>Plumrocket\GeoIPLookup\Model\System\Config\Source\GeoTargetingStates</source_model>
|
||||
<frontend_class>geoip-select-with-chosen prgdpr-ccpa</frontend_class>
|
||||
</field>
|
||||
</group>
|
||||
|
||||
<group id="cookie_consent_management" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Cookie Consent Management</label>
|
||||
<attribute type="expanded">1</attribute>
|
||||
<field id="addon_required_notice" type="label" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\Notice</frontend_model>
|
||||
<attribute type="pr_notice__level">note addon-required-notice</attribute>
|
||||
<attribute type="pr_notice__text">
|
||||
<![CDATA[<b>Cookie Consent Pro Extension Required.</b><br>Please make sure the Cookie Consent Pro extension is installed correctly.]]>
|
||||
</attribute>
|
||||
</field>
|
||||
</group>
|
||||
|
||||
<group id="do_not_sell" translate="label" type="text" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Do Not Sell or Share Request Management</label>
|
||||
<attribute type="expanded">1</attribute>
|
||||
<field id="addon_required_notice" type="label" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\Notice</frontend_model>
|
||||
<attribute type="pr_notice__level">note addon-required-notice</attribute>
|
||||
<attribute type="pr_notice__text">
|
||||
<![CDATA[<div class="pr-gpc-notice-intro"><p><strong>US Privacy Laws Pro Extension Required.</strong> To recognize GPC signals for "Do Not Sell or Share My Personal Information" requests, the US Privacy Laws Pro extension by Plumrocket must be installed. Upgrade today for full compliance – <strong>pay only the difference</strong> with coupon code.</p></div><div class="pr-gpc-coupon-wrapper"><div class="pr-gpc-coupon">USPrivacyUpgrade</div></div><a href="https://plumrocket.com/magento-us-privacy-laws" target="_blank">Get US Privacy Laws Extension →</a>]]>
|
||||
</attribute>
|
||||
</field>
|
||||
</group>
|
||||
|
||||
<group id="opt_out_notification" translate="label" type="text" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>GPC Opt-Out Notification</label>
|
||||
<field id="enabled" translate="label comment" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Enable</label>
|
||||
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
|
||||
<comment>When enabled, a notification will appear to users on their initial visit, confirming that the opt-out preference signal has been honored. This aligns with privacy laws like CPRA and similar regulations in other regions, which recommend honoring user privacy preferences.</comment>
|
||||
</field>
|
||||
<field id="text" translate="label comment" type="editor" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Notification</label>
|
||||
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\Editor</frontend_model>
|
||||
<comment>Enter the notification text to display to your visitors.</comment>
|
||||
</field>
|
||||
</group>
|
||||
|
||||
<group id="well_known" translate="label" type="text" sortOrder="60" showInDefault="1" showInWebsite="0" showInStore="0">
|
||||
<label>GPC .well-known Settings</label>
|
||||
<attribute type="expanded">1</attribute>
|
||||
<field id="last_update" translate="label comment" type="text" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0">
|
||||
<label>Last Update Date</label>
|
||||
<comment>Enter the date of the last update to the GPC settings. Please use the format YYYY-MM-DD. By default, this field is set to the date when the extension was installed.</comment>
|
||||
<validate>required-entry validate-date</validate>
|
||||
</field>
|
||||
<field id="preview" translate="label comment" type="label" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="0">
|
||||
<label>Preview of .well-known/gpc.json File</label>
|
||||
<comment>This is the content of the .well-known/gpc.json file, which informs browsers and other tools that your site supports Global Privacy Control (GPC). The file includes the GPC status and the last update date.</comment>
|
||||
<frontend_model>Plumrocket\GlobalPrivacyControl\Block\Adminhtml\System\Config\WellKnownPreview</frontend_model>
|
||||
</field>
|
||||
</group>
|
||||
</section>
|
||||
</system>
|
||||
</config>
|
||||
@@ -0,0 +1,25 @@
|
||||
<?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
|
||||
*/
|
||||
-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
|
||||
<default>
|
||||
<pr_gpc>
|
||||
<general>
|
||||
<enabled>0</enabled>
|
||||
<geo_targeting>eu,AU,CA,JP,NZ,GB,US</geo_targeting>
|
||||
<states_geo_targeting>California,Colorado,Connecticut,Utah,Virginia</states_geo_targeting>
|
||||
</general>
|
||||
<opt_out_notification>
|
||||
<enabled>1</enabled>
|
||||
<text><![CDATA[<h2>Your Opt-Out Preferences Honored</h2>
|
||||
<p>Your browser's privacy preference (GPC) has been detected.</p>
|
||||
<p class="pr-gpc-text-with-icon"><img src="{{view url='Plumrocket_GlobalPrivacyControl::images/check_circle.png'}}" width="18" height="18" alt="GPC Icon" /> Non-essential cookies have been disabled on our website.</p>]]></text>
|
||||
</opt_out_notification>
|
||||
</pr_gpc>
|
||||
</default>
|
||||
</config>
|
||||
@@ -0,0 +1,13 @@
|
||||
<?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
|
||||
*/
|
||||
-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
|
||||
<preference for="Plumrocket\GlobalPrivacyControl\Api\GeoTargetingInterface" type="Plumrocket\GlobalPrivacyControl\Model\Geotargeting" />
|
||||
<preference for="Plumrocket\GlobalPrivacyControl\Api\IsGpcSignalHandledInterface" type="Plumrocket\GlobalPrivacyControl\Model\IsGpcSignalHandled" />
|
||||
</config>
|
||||
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
* @package Plumrocket_GlobalPrivacyControl
|
||||
* @copyright Copyright (c) 2025 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\Framework\App\Response\Http">
|
||||
<plugin name="pr-gpc-replace-component-init-script-placeholder" type="Plumrocket\GlobalPrivacyControl\Plugin\Html\ReplaceComponentInitScriptPlaceholderPlugin"/>
|
||||
</type>
|
||||
</config>
|
||||
@@ -0,0 +1,12 @@
|
||||
<?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
|
||||
*/
|
||||
-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
|
||||
<module name="Plumrocket_GlobalPrivacyControl"/>
|
||||
</config>
|
||||
@@ -0,0 +1,19 @@
|
||||
<?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
|
||||
*/
|
||||
-->
|
||||
<cookies xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:module:Plumrocket_CookieConsent:etc/pr-cookies.xsd">
|
||||
<cookie name="pr-gpc-notification-shown" category="necessary">
|
||||
<duration xsi:type="const">Plumrocket\CookieConsent\Model\Cookie\Duration::SESSION</duration>
|
||||
<description>Stores whether the GPC opt-out notification was shown to and closed by the user.</description>
|
||||
</cookie>
|
||||
<cookie name="pr-gpc-signal-handled" category="necessary">
|
||||
<duration xsi:type="const">Plumrocket\CookieConsent\Model\Cookie\Duration::SESSION</duration>
|
||||
<description>Stores whether the Global Privacy Control (GPC) signal has been detected on the front end and the associated handling logic has been executed for the current user.</description>
|
||||
</cookie>
|
||||
</cookies>
|
||||
@@ -0,0 +1,19 @@
|
||||
<?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
|
||||
*/
|
||||
-->
|
||||
<extensions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:module:Plumrocket_Base:etc/pr_extensions.xsd">
|
||||
<extension name="GlobalPrivacyControl"
|
||||
title="Global Privacy Control (GPC)"
|
||||
config_section="pr_gpc"
|
||||
is_enabled_path="pr_gpc/general/enabled"
|
||||
documentation="https://plumrocket.com/docs/magento-global-privacy-control/v1"
|
||||
>
|
||||
<customer key="18771d78aa85ca47851fca7fdf3dd545bad4a02358"/>
|
||||
</extension>
|
||||
</extensions>
|
||||
@@ -0,0 +1,16 @@
|
||||
<?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
|
||||
*/
|
||||
-->
|
||||
<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Webapi:etc/webapi.xsd">
|
||||
<route method="POST" url="/V1/pr-global-privacy-control/geo-targeting/is-applicable">
|
||||
<service class="Plumrocket\GlobalPrivacyControl\Api\GeoTargetingInterface" method="isApplicable"/>
|
||||
<resources>
|
||||
<resource ref="anonymous"/>
|
||||
</resources>
|
||||
</route>
|
||||
</routes>
|
||||
Reference in New Issue
Block a user