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