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
+13
View File
@@ -0,0 +1,13 @@
<?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">
<resource id="Olegnax_MegaMenu::Olegnax_MegaMenu" sortOrder="10" title="Mega Menu"/>
</resource>
</resource>
</resources>
</acl>
</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_Backend:etc/menu.xsd">
<menu>
<add id="Olegnax_MegaMenu::Olegnax_MegaMenu" title="Mega Menu" module="Olegnax_MegaMenu" sortOrder="10"
parent="Olegnax_Core::Olegnax_Core" resource="Olegnax_MegaMenu::Olegnax_MegaMenu"/>
<add id="Olegnax_MegaMenu::settings" title="Configuration" module="Olegnax_Athlete2" sortOrder="0"
action="adminhtml/system_config/edit/section/ox_megamenu_settings"
parent="Olegnax_MegaMenu::Olegnax_MegaMenu" resource="Olegnax_MegaMenu::Olegnax_MegaMenu"/>
</menu>
</config>
+15
View File
@@ -0,0 +1,15 @@
<?xml version="1.0"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
<router id="admin">
<route id="megamenu" frontName="megamenu">
<module name="Olegnax_MegaMenu" before="Magento_Backend"/>
</route>
</router>
</config>
+61
View File
@@ -0,0 +1,61 @@
<?xml version="1.0"?>
<!--
/**
* Copyright © 2016 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<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="15">
<label>Olegnax</label>
</tab>
<section id="ox_megamenu_settings" translate="label" sortOrder="10" showInDefault="1" showInWebsite="1"
showInStore="1">
<label>Mega Menu</label>
<tab>olegnax</tab>
<resource>Olegnax_MegaMenu::Olegnax_MegaMenu</resource>
<group id="info" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="0" translate="label">
<frontend_model>Olegnax\MegaMenu\Block\Adminhtml\System\Config\Form\Info</frontend_model>
</group>
<group id="general" translate="label" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>General</label>
<field id="enable_megamenu" translate="label" type="select" sortOrder="0" showInDefault="1"
showInWebsite="1" showInStore="1">
<label>Enable Mega Menu</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<frontend_class>on-off-trigger</frontend_class>
</field>
<field id="spacer" sortOrder="5" showInDefault="1" showInWebsite="1" showInStore="1">
<frontend_model>Olegnax\MegaMenu\Block\System\Config\Form\Field\Spacer</frontend_model>
</field>
<field id="header_container" translate="label comment" type="text" sortOrder="10" showInDefault="1"
showInWebsite="1" showInStore="1">
<label>Header Container</label>
<comment>Set custom css selector (which is used as wrapper for your menu) to make drop down
container align options work. Include dots i.e.: ".page-header > .container"
</comment>
</field>
<field id="show_menu_parent_arrow" translate="label" type="select" sortOrder="20" showInDefault="1"
showInWebsite="1" showInStore="1">
<label>Show Arrows for Parent menu item</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<frontend_class>on-off-trigger</frontend_class>
</field>
<field id="show_sub_parent_arrow" translate="label" type="select" sortOrder="22" showInDefault="1"
showInWebsite="1" showInStore="1">
<label>Show Arrows for Subcategories parent items</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<frontend_class>on-off-trigger</frontend_class>
</field>
<field id="perfect_scrollbar" translate="label" type="select" sortOrder="24" showInDefault="1"
showInWebsite="1" showInStore="1">
<label>Enable Perfect ScrollBar</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<frontend_class>on-off-trigger</frontend_class>
</field>
</group>
</section>
</system>
</config>
+7
View File
@@ -0,0 +1,7 @@
<?xml version="1.0" ?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Cache/etc/cache.xsd">
<type instance="Olegnax\MegaMenu\Model\Cache\MegaMenu" name="ox_megamenu" translate="label,description">
<label>MegaMenu</label>
<description>Olegnax MegaMenu</description>
</type>
</config>
+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:module:Magento_Store:etc/config.xsd">
<default>
<ox_megamenu_settings>
<general>
<enable_megamenu>1</enable_megamenu>
<show_menu_parent_arrow>1</show_menu_parent_arrow>
<show_sub_parent_arrow>1</show_sub_parent_arrow>
<perfect_scrollbar>1</perfect_scrollbar>
</general>
</ox_megamenu_settings>
</default>
</config>
+29
View File
@@ -0,0 +1,29 @@
<?xml version="1.0"?>
<!--
/**
* Copyright © 2016 Magento. 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">
<virtualType name="Magento\Catalog\CategoryImageUpload" type="Magento\Catalog\Model\ImageUploader">
<arguments>
<argument name="baseTmpPath" xsi:type="string">catalog/tmp/category</argument>
<argument name="basePath" xsi:type="string">catalog/category</argument>
<argument name="allowedExtensions" xsi:type="array">
<item name="jpg" xsi:type="string">jpg</item>
<item name="jpeg" xsi:type="string">jpeg</item>
<item name="gif" xsi:type="string">gif</item>
<item name="png" xsi:type="string">png</item>
</argument>
</arguments>
</virtualType>
<type name="Olegnax\MegaMenu\Controller\Adminhtml\Category\Image\Upload">
<arguments>
<argument name="imageUploader" xsi:type="object">Magento\Catalog\CategoryImageUpload</argument>
</arguments>
</type>
<preference for="Magento\Catalog\Model\Category\DataProvider" type="Olegnax\MegaMenu\Model\Category\DataProvider"/>
<preference for="Magento\Theme\Block\Html\Topmenu" type="Olegnax\MegaMenu\Block\Html\Megamenu"/>
</config>
+9
View File
@@ -0,0 +1,9 @@
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Olegnax_MegaMenu" setup_version="0.3.5.1">
<sequence>
<module name="Olegnax_Core"/>
<module name="Magento_Catalog"/>
</sequence>
</module>
</config>
+60
View File
@@ -0,0 +1,60 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<widgets xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Widget:etc/widget.xsd">
<widget id="ox_megamenu" class="Olegnax\MegaMenu\Block\Widget\Megamenu" is_email_compatible="false"
placeholder_image="Olegnax_MegaMenu::images/megamenu.png" ttl="86400">
<label translate="true">Olegnax - Mega Menu</label>
<description translate="true"></description>
<parameters>
<parameter name="header_container" xsi:type="text" visible="true">
<label translate="true">Header Container</label>
</parameter>
<parameter name="direction" xsi:type="select" visible="true">
<label translate="true">Direction</label>
<options>
<option name="horizontal" value="horizontal">
<label translate="true">Horizontal</label>
</option>
<option name="vertical" value="vertical">
<label translate="true">Vertical</label>
</option>
</options>
</parameter>
<parameter name="position_horizontal" xsi:type="select" visible="true">
<label translate="true">Position Horizontal</label>
<options>
<option name="left" value="left">
<label translate="true">Left</label>
</option>
<option name="right" value="right">
<label translate="true">Right</label>
</option>
</options>
</parameter>
<parameter name="animation_type" xsi:type="select" visible="true">
<label translate="true">Animation Type</label>
<options>
<option name="fade" value="fade">
<label translate="true">Fade</label>
</option>
<option name="fadeIn" value="fadeIn">
<label translate="true">Fade In</label>
</option>
</options>
</parameter>
<parameter name="cache_lifetime" xsi:type="text" visible="true">
<label translate="true">Cache Lifetime (Seconds)</label>
<description translate="true">86400 by default, if not set. To refresh instantly, clear the Blocks HTML
Output cache.
</description>
</parameter>
</parameters>
</widget>
</widgets>