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
+22
View File
@@ -0,0 +1,22 @@
<?xml version="1.0"?>
<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="Nwdthemes_Base::base" title="NWDthemes Extensions">
<resource id="Nwdthemes_Revslider::revslider" title="Slider Revolution" sortOrder="100">
<resource id="Nwdthemes_Revslider::overview" title="Slider Overview" sortOrder="100" />
<resource id="Nwdthemes_Revslider::builder" title="Slider Editor" sortOrder="110" />
</resource>
</resource>
<resource id="Magento_Backend::stores">
<resource id="Magento_Backend::stores_settings">
<resource id="Magento_Config::config">
<resource id="Nwdthemes_Revslider::config" title="Slider Revolution" />
</resource>
</resource>
</resource>
</resource>
</resources>
</acl>
</config>
+31
View File
@@ -0,0 +1,31 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd">
<menu>
<add
id="Nwdthemes_Revslider::revslider"
title="Slider Revolution"
module="Nwdthemes_Revslider"
sortOrder="100"
resource="Nwdthemes_Revslider::revslider"
parent="Nwdthemes_Base::base"
/>
<add
id="Nwdthemes_Revslider::overview"
title="Slider Overview"
module="Nwdthemes_Revslider"
sortOrder="100"
resource="Nwdthemes_Revslider::overview"
parent="Nwdthemes_Revslider::revslider"
action="nwdthemes_revslider/revslider/overview"
/>
<add
id="Nwdthemes_Revslider::config"
title="Configuration"
module="Nwdthemes_Revslider"
sortOrder="130"
resource="Nwdthemes_Revslider::config"
parent="Nwdthemes_Revslider::revslider"
action="adminhtml/system_config/edit/section/nwdthemes_revslider"
/>
</menu>
</config>
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
<router id="admin">
<route id="nwdthemes_revslider" frontName="nwdthemes_revslider">
<module name="Nwdthemes_Revslider" />
</route>
</router>
</config>
+20
View File
@@ -0,0 +1,20 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
<system>
<tab id="nwdthemes" translate="label" sortOrder="1111">
<label>NWDthemes</label>
</tab>
<section id="nwdthemes_revslider" translate="label" type="text" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Slider Revolution</label>
<tab>nwdthemes</tab>
<resource>Nwdthemes_Revslider::config</resource>
<group id="revslider_configuration" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>General</label>
<field id="status" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Enable Slider Revolution</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
</group>
</section>
</system>
</config>
+17
View File
@@ -0,0 +1,17 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
<default>
<nwdthemes_revslider>
<revslider_configuration>
<status>1</status>
</revslider_configuration>
</nwdthemes_revslider>
<system>
<media_storage_configuration>
<allowed_resources>
<nwdthemes_revslider>revslider</nwdthemes_revslider>
</allowed_resources>
</media_storage_configuration>
</system>
</default>
</config>
+62
View File
@@ -0,0 +1,62 @@
<?xml version="1.0"?>
<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="connect-src">
<values>
<value id="google_fonts_api" type="host">https://fonts.googleapis.com</value>
<value id="google_fonts" type="host">https://fonts.gstatic.com</value>
<value id="weather_api" type="host">https://api.weatherbit.io</value>
</values>
</policy>
<policy id="font-src">
<values>
<value id="google_fonts" type="host">https://fonts.gstatic.com</value>
<value id="dashicon_fonts" type="host">'self' data:</value>
</values>
</policy>
<policy id="script-src">
<values>
<value id="vimeo_player_api" type="host">https://player.vimeo.com</value>
<value id="youtube_player_frame" type="host">https://www.youtube.com</value>
</values>
</policy>
<policy id="style-src">
<values>
<value id="google_fonts_api_secure" type="host">https://fonts.googleapis.com</value>
<value id="google_fonts_api_insecure" type="host">http://fonts.googleapis.com</value>
</values>
</policy>
<policy id="media-src">
<values>
<value id="blob" type="host">blob:</value>
</values>
</policy>
<policy id="img-src">
<values>
<value id="data" type="host">data:</value>
<value id="blob" type="host">blob:</value>
<value id="themepunch_updates_server_images_secure" type="host">https://updates.themepunch.tools</value>
<value id="themepunch_updates_server_images_insecure" type="host">http://updates.themepunch.tools</value>
<value id="themepunch_updates_server_a_images_secure" type="host">https://updates.themepunch-ext-a.tools</value>
<value id="themepunch_updates_server_a_images_insecure" type="host">http://updates.themepunch-ext-a.tools</value>
<value id="themepunch_updates_server_b_images_secure" type="host">https://updates.themepunch-ext-b.tools</value>
<value id="themepunch_updates_server_b_images_insecure" type="host">http://updates.themepunch-ext-b.tools</value>
<value id="dev_sliderevolution" type="host">https://dev.sliderrevolution.com</value>
<value id="revolution_plugin_images" type="host">https://revolution.themepunch.com</value>
<value id="revolution5_plugin_images" type="host">http://revolution5.themepunch.com</value>
<value id="twitter_images_insecure" type="host">http://pbs.twimg.com</value>
<value id="twitter_images_secure" type="host">https://pbs.twimg.com</value>
<value id="instagram_images" type="host">http://scontent.cdninstagram.com</value>
<value id="youtube_images" type="host">https://img.youtube.com</value>
<value id="flickr_images_insecure" type="host">http://live.staticflickr.com</value>
<value id="flickr_images_secure" type="host">https://live.staticflickr.com</value>
</values>
</policy>
<policy id="frame-src">
<values>
<value id="vimeo_frame" type="host">https://player.vimeo.com</value>
<value id="youtube_frame" type="host">https://www.youtube-nocookie.com</value>
</values>
</policy>
</policies>
</csp_whitelist>
+55
View File
@@ -0,0 +1,55 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<type name="Magento\Cms\Block\Adminhtml\Wysiwyg\Images\Content\Uploader">
<plugin name="nwdrevslider_cms_block_adminhtml_wWysiwyg_images_content_uploader_plugin" type="Nwdthemes\Revslider\Plugin\Cms\Block\Adminhtml\Wysiwyg\Images\Content\UploaderPlugin" sortOrder="10" />
</type>
<type name="Magento\Cms\Block\Adminhtml\Wysiwyg\Images\Content">
<plugin name="nwdrevslider_cms_block_adminhtml_wWysiwyg_images_content_plugin" type="Nwdthemes\Revslider\Plugin\Cms\Block\Adminhtml\Wysiwyg\Images\ContentPlugin" sortOrder="10" />
</type>
<type name="Magento\Cms\Block\Adminhtml\Wysiwyg\Images\Tree">
<plugin name="nwdrevslider_cms_block_adminhtml_wWysiwyg_images_tree_plugin" type="Nwdthemes\Revslider\Plugin\Cms\Block\Adminhtml\Wysiwyg\Images\TreePlugin" sortOrder="10" />
</type>
<type name="Magento\Cms\Controller\Adminhtml\Wysiwyg\Images\OnInsert">
<plugin name="nwdrevslider_cms_controller_adminhtml_wysiwyg_images_oninsert_plugin" type="Nwdthemes\Revslider\Plugin\Cms\Controller\Adminhtml\Wysiwyg\Images\OnInsertPlugin" sortOrder="10" />
</type>
<type name="Magento\Cms\Controller\Adminhtml\Wysiwyg\Images\Thumbnail">
<plugin name="nwdrevslider_cms_controller_adminhtml_wysiwyg_images_thumbnail_plugin" type="Nwdthemes\Revslider\Plugin\Cms\Controller\Adminhtml\Wysiwyg\Images\ThumbnailPlugin" sortOrder="10" />
</type>
<preference for="Magento\Cms\Model\Wysiwyg\Images\Storage" type="Nwdthemes\Revslider\Model\Gallery\Storage" />
<type name="Magento\Cms\Helper\Wysiwyg\Images">
<plugin name="nwdrevslider_cms_helper_wWysiwyg_images_plugin" type="Nwdthemes\Revslider\Plugin\Cms\Helper\Wysiwyg\ImagesPlugin" sortOrder="10" />
</type>
<type name="Magento\Cms\Model\Wysiwyg\Images\Storage">
<arguments>
<argument name="dirs" xsi:type="array">
<item name="include" xsi:type="array">
<item name="nwdthemes_revslider" xsi:type="array">
<item name="regexp" xsi:type="boolean">true</item>
<item name="name" xsi:type="string">
pub[/\\]+media[/\\]+revslider[/\\]*$
</item>
</item>
</item>
</argument>
</arguments>
</type>
<type name="Nwdthemes\Revslider\Model\Gallery\Storage">
<arguments>
<argument name="dirs" xsi:type="array">
<item name="include" xsi:type="array">
<item name="nwdthemes_revslider" xsi:type="array">
<item name="regexp" xsi:type="boolean">true</item>
<item name="name" xsi:type="string">
pub[/\\]+media[/\\]+revslider[/\\]*$
</item>
</item>
</item>
</argument>
</arguments>
</type>
<type name="Magento\Framework\View\Design\FileResolution\Fallback\TemplateFile">
<plugin name="nwdrevslider_templatefile_plugin" type="Nwdthemes\Revslider\Plugin\TemplateFilePlugin" sortOrder="10" />
</type>
</config>
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<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="nwdthemes_revslider_layout_load_before" instance="Nwdthemes\Revslider\Observer\LayoutLoadBefore" />
</event>
</config>
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Nwdthemes_Revslider" setup_version="6.6.7">
<sequence>
<module name="Nwdthemes_Base"/>
</sequence>
</module>
</config>
+12
View File
@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<widgets xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Widget:etc/widget.xsd">
<widget id="nwdthemes_revslider_widget" class="Nwdthemes\Revslider\Block\Widget\Revslider" placeholder_image="Nwdthemes_Revslider::admin/assets/images/logo.png">
<label translate="true">NWDthemes Slider Revolution</label>
<description>Add Slider Revolution</description>
<parameters>
<parameter name="alias" xsi:type="select" required="true" visible="true" source_model="Nwdthemes\Revslider\Model\Config\Source\Revslider">
<label translate="true">Select Slider</label>
</parameter>
</parameters>
</widget>
</widgets>