ltsecurityinc安防产品在线商城代码
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user