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
+14
View File
@@ -0,0 +1,14 @@
<?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="Olegnax_Core::Olegnax_Core" sortOrder="10" title="Olegnax">
<resource id="Olegnax_Core::Modules_Update" sortOrder="10" title="Modules Update"/>
<resource id="Olegnax_Core::core_settings" sortOrder="10" title="Core Settings"/>
</resource>
</resource>
</resources>
</acl>
</config>
+15
View File
@@ -0,0 +1,15 @@
<?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\Model\Wysiwyg\Validator">
<plugin name="Olegnax_Core_Plugin_Backend_Magento_Cms_Model_Wysiwyg_Validator"
type="Olegnax\Core\Plugin\Backend\Magento\Cms\Model\Wysiwyg\Validator"
sortOrder="10"
disabled="false"/>
</type>
<type name="Magento\Config\Controller\Adminhtml\System\Config\Save">
<plugin name="Olegnax_Core_Plugin_Magento_Config_Controller_Adminhtml_System_Config_Save"
type="Olegnax\Core\Plugin\Magento\Config\Controller\Adminhtml\System\Config\Save"
sortOrder="10"
disabled="false"/>
</type>
</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:Event/etc/events.xsd">
<event name="controller_action_predispatch">
<observer name="ox_adminnotification"
instance="Olegnax\Core\Observer\PredispatchAdminActionControllerObserver"/>
</event>
</config>
+12
View File
@@ -0,0 +1,12 @@
<?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="Olegnax_Core::Olegnax_Core" title="Olegnax" module="Olegnax_Core" sortOrder="10"
resource="Olegnax_Core::Olegnax_Core"/>
<add id="Olegnax_Core::Modules_Update" action="olegnax/modules/update" module="Olegnax_Core"
parent="Olegnax_Core::Olegnax_Core" resource="Olegnax_Core::Modules_Update" sortOrder="0"
title="Modules Info"/>
<add id="Olegnax_Core::Core_Settings" title="Core Settings" module="Olegnax_Core" sortOrder="10" action="adminhtml/system_config/edit/section/olegnax_core_settings" parent="Olegnax_Core::Olegnax_Core" resource="Olegnax_Core::core_settings"/>
</menu>
</config>
+9
View File
@@ -0,0 +1,9 @@
<?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 frontName="olegnax" id="olegnax">
<module before="Magento_Backend" name="Olegnax_Core"/>
</route>
</router>
</config>
+32
View File
@@ -0,0 +1,32 @@
<?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="olegnax" translate="label" sortOrder="10">
<label>Olegnax</label>
</tab>
<section id="olegnax_core_settings" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="10" translate="label">
<label>Core</label>
<tab>olegnax</tab>
<resource>Olegnax_Core::core_settings</resource>
<group id="info" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="1" translate="label">
<frontend_model>Olegnax\Core\Block\Adminhtml\System\Config\Form\Info</frontend_model>
</group>
<group id="general" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="10" translate="label">
<label>General</label>
<field id="lazyload" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="10" translate="label"
type="select">
<label>Lazy Load Enabled</label>
<frontend_class>on-off-trigger</frontend_class>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="owlcarousel" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="12" translate="label"
type="select">
<label>Owl Carousel Enabled</label>
<comment>If disabled, lazy load script and css will not be loaded. As a result Theme and extensions which rely on owl carsouel will not work and drop an error. So disable it only if you decided to not use owl carousel at all and removed all of the theme blocks and widgets which rely on owl carousel script.</comment>
<frontend_class>on-off-trigger</frontend_class>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
</group>
</section>
</system>
</config>
+11
View File
@@ -0,0 +1,11 @@
<?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>
<olegnax_core_settings>
<general>
<lazyload>1</lazyload>
<owlcarousel>1</owlcarousel>
</general>
</olegnax_core_settings>
</default>
</config>
+30
View File
@@ -0,0 +1,30 @@
<?xml version="1.0" ?>
<!--
~ @author Olegnax
~ @package Olegnax_Core
~ @copyright Copyright (c) 2023 Olegnax (http://olegnax.com/). All rights reserved.
~ See COPYING.txt for license details.
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<type name="Magento\Framework\View\TemplateEngine\Php">
<plugin disabled="false" name="Olegnax_Core_Plugin_Magento_Framework_View_TemplateEngine_Php" sortOrder="10" type="Olegnax\Core\Plugin\Magento\Framework\View\TemplateEngine\Php"/>
</type>
<type name="Olegnax\Core\Logger\Debug">
<arguments>
<argument name="filesystem" xsi:type="object">Magento\Framework\Filesystem\Driver\File</argument>
</arguments>
</type>
<virtualType name="Olegnax\Core\Logger\Logger" type="Monolog\Logger">
<arguments>
<argument name="name" xsi:type="string">Olegnax</argument>
<argument name="handlers" xsi:type="array">
<item name="debug" xsi:type="object">Olegnax\Core\Logger\Debug</item>
</argument>
</arguments>
</virtualType>
<type name="Olegnax\Core\Helper\Helper">
<arguments>
<argument name="logger" xsi:type="object">Olegnax\Core\Logger\Logger</argument>
</arguments>
</type>
</config>
+15
View File
@@ -0,0 +1,15 @@
<?xml version="1.0"?>
<!--
/**
* Copyright © 2023 Olegnax. All rights reserved.
*
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
<event name="view_block_abstract_to_html_after">
<observer
name="olegnax_core_observer_frontend_view_blockabstracttohtmlafter_view_block_abstract_to_html_after"
instance="Olegnax\Core\Observer\Frontend\View\BlockAbstractToHtmlAfter"/>
</event>
</config>
+13
View File
@@ -0,0 +1,13 @@
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Olegnax_Core" setup_version="1.3.4">
<sequence>
<module name="Magento_AdminNotification"/>
<module name="Magento_Catalog"/>
<module name="Magento_Cms"/>
<module name="Magento_Customer"/>
<module name="Magento_Store"/>
<module name="Magento_Wishlist"/>
</sequence>
</module>
</config>