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_LayeredNavigation::layered_navigation" sortOrder="10" title="Layered Navigation"/>
</resource>
</resource>
</resources>
</acl>
</config>
+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:module:Magento_Backend:etc/menu.xsd">
<menu>
<add id="Olegnax_LayeredNavigation::layered_navigation" title="Layered Navigation" translate="title"
module="Olegnax_LayeredNavigation" sortOrder="999" parent="Olegnax_Core::Olegnax_Core"
resource="Olegnax_LayeredNavigation::layered_navigation"/>
<add id="Olegnax_LayeredNavigation::config" title="Configuration" translate="title"
module="Olegnax_LayeredNavigation" sortOrder="10"
action="adminhtml/system_config/edit/section/olegnax_layered_navigation"
parent="Olegnax_LayeredNavigation::layered_navigation" resource="Olegnax_LayeredNavigation::layered_navigation"/>
</menu>
</config>
+122
View File
@@ -0,0 +1,122 @@
<?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" sortOrder="999" translate="label">
<label>Olegnax</label>
</tab>
<section id="olegnax_layered_navigation" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="10"
translate="label">
<label>Layered Navigation</label>
<tab>olegnax</tab>
<resource>Olegnax_LayeredNavigation::layered_navigation</resource>
<group id="info" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="0" translate="label">
<frontend_model>Olegnax\LayeredNavigation\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="enable" 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>
<frontend_class>on-off-trigger</frontend_class>
</field>
<field id="filters_type" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="22"
translate="label" type="select">
<label>Filters Type</label>
<source_model>Olegnax\LayeredNavigation\Model\Config\Source\FiltersType</source_model>
</field>
<field id="abort_prev_request" translate="label" type="select" sortOrder="25" showInDefault="1"
showInWebsite="1" showInStore="1">
<label>Abort Previous Requests</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<frontend_class>on-off-trigger</frontend_class>
<depends>
<field id="ajax">1</field>
</depends>
</field>
</group>
<group id="category" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="20"
translate="label">
<label>Category</label>
<field id="depth" translate="label comment" type="select" sortOrder="10" showInDefault="1"
showInWebsite="1" showInStore="1">
<label>Depth of nested categories</label>
<source_model>Olegnax\LayeredNavigation\Model\Config\Source\CategoryDepth</source_model>
</field>
</group>
<group id="price_slider" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="30"
translate="label">
<label>Price Slider</label>
<field id="price_slider" translate="label comment" type="select" sortOrder="25" showInDefault="1"
showInWebsite="1" showInStore="1">
<label>Enable Price Slider</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<frontend_class>on-off-trigger</frontend_class>
</field>
</group>
<group id="loaders" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="40" translate="label">
<label>Loaders</label>
<field id="loader_type_filters" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="10"
translate="label" type="select">
<label>AJAX Progress Loader For Filters Block</label>
<source_model>Olegnax\LayeredNavigation\Model\Config\Source\LoaderType</source_model>
</field>
<field id="loader_filters" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="11"
translate="label" type="text">
<label>Filters Loader Image</label>
<comment>Set url to preloader image. E.g.: "images/preloader.svg" will link to images folder in your
current theme. E.g.: app\design\frontend\Olegnax\athlete2\web\images.
</comment>
<depends>
<field id="loader_type_filters">image</field>
</depends>
</field>
<field id="spacer_1" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<frontend_model>Olegnax\LayeredNavigation\Model\Config\Source\Spacer</frontend_model>
</field>
<field id="loader_type_content" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="21"
translate="label" type="select">
<label>AJAX Progress Loader For Content</label>
<source_model>Olegnax\LayeredNavigation\Model\Config\Source\LoaderType</source_model>
</field>
<field id="loader_content" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="22"
translate="label" type="text">
<label>Content Loader Image</label>
<comment>Set url to preloader image. E.g.: "images/preloader.svg" will link to images folder in your
current theme. E.g.: app\design\frontend\Olegnax\athlete2\web\images.
</comment>
<depends>
<field id="loader_type_content">image</field>
</depends>
</field>
<field id="loader_content_selector" translate="label comment" type="text" sortOrder="23"
showInDefault="1"
showInWebsite="1" showInStore="1">
<label>Custom DOM Selectors for Products Container</label>
<comment>Default selectors: ".column.main .products.products-grid, .column.main
.products.products-list, .column.main .products-grid.grid"
</comment>
</field>
<field id="spacer_2" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
<frontend_model>Olegnax\LayeredNavigation\Model\Config\Source\Spacer</frontend_model>
</field>
<field id="loader_type_page" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="31"
translate="label" type="select">
<label>AJAX Progress Loader For the Whole Page</label>
<source_model>Olegnax\LayeredNavigation\Model\Config\Source\LoaderType</source_model>
</field>
<field id="loader_page" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="32"
translate="label" type="text">
<label>Page Loader Image</label>
<comment>Set url to preloader image. E.g.: "images/preloader.svg" will link to images folder in your
current theme. E.g.: app\design\frontend\Olegnax\athlete2\web\images.
</comment>
<depends>
<field id="loader_type_page">image</field>
</depends>
</field>
</group>
</section>
</system>
</config>
+36
View File
@@ -0,0 +1,36 @@
<?xml version="1.0" ?>
<!--
/**
* @author Olegnax
* @package Olegnax_LayeredNavigation
* @copyright Copyright (c) 2019 Olegnax (http://olegnax.com/). All rights reserved.
* @license Proprietary License https://olegnax.com/license/
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
<default>
<olegnax_layered_navigation>
<general>
<enable>1</enable>
<filters_type/>
<abort_prev_request>1</abort_prev_request>
</general>
<category>
<depth>0</depth>
</category>
<price_slider>
<price_slider>1</price_slider>
</price_slider>
<loaders>
<loader_type_filters>theme</loader_type_filters>
<loader_filters/>
<loader_type_content>theme</loader_type_content>
<loader_content/>
<loader_content_selector/>
<loader_type_page/>
<loader_page/>
</loaders>
</olegnax_layered_navigation>
</default>
</config>
+92
View File
@@ -0,0 +1,92 @@
<?xml version="1.0"?>
<!--
/**
* @author Olegnax
* @package Olegnax_LayeredNavigation
* @copyright Copyright (c) 2019 Olegnax (http://olegnax.com/). All rights reserved.
* @license Proprietary License https://olegnax.com/license/
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<preference for="Magento\Catalog\Model\Category\DataProvider" type="Olegnax\LayeredNavigation\Model\Category\DataProvider"/>
<virtualType name="categoryFilterList" type="Magento\Catalog\Model\Layer\FilterList">
<arguments>
<argument name="filters" xsi:type="array">
<item name="attribute" xsi:type="string">Olegnax\LayeredNavigation\Model\Layer\Filter\Attribute</item>
<item name="price" xsi:type="string">Olegnax\LayeredNavigation\Model\Layer\Filter\Price</item>
<item name="category" xsi:type="string">Olegnax\LayeredNavigation\Model\Layer\Filter\Category</item>
</argument>
</arguments>
</virtualType>
<virtualType name="searchFilterList" type="Magento\Catalog\Model\Layer\FilterList">
<arguments>
<argument name="filters" xsi:type="array">
<item name="attribute" xsi:type="string">Olegnax\LayeredNavigation\Model\Layer\Filter\Attribute</item>
<item name="price" xsi:type="string">Olegnax\LayeredNavigation\Model\Layer\Filter\Price</item>
<item name="category" xsi:type="string">Olegnax\LayeredNavigation\Model\Layer\Filter\Category</item>
</argument>
</arguments>
</virtualType>
<virtualType name="Olegnax\LayeredNavigation\Model\ResourceModel\Fulltext\SearchCollection"
type="Olegnax\LayeredNavigation\Model\ResourceModel\Fulltext\Collection">
<arguments>
<argument name="searchRequestName" xsi:type="string">quick_search_container</argument>
</arguments>
</virtualType>
<virtualType name="elasticsearchFulltextSearchCollectionFactory" type="Magento\CatalogSearch\Model\ResourceModel\Fulltext\SearchCollectionFactory">
<arguments>
<argument name="instanceName" xsi:type="string">Olegnax\LayeredNavigation\Model\ResourceModel\Fulltext\SearchCollection</argument>
</arguments>
</virtualType>
<virtualType name="Magento\CatalogSearch\Model\ResourceModel\Fulltext\CollectionFactory"
type="Magento\Catalog\Model\ResourceModel\Product\CollectionFactory">
<arguments>
<argument name="instanceName" xsi:type="string">
Olegnax\LayeredNavigation\Model\ResourceModel\Fulltext\Collection
</argument>
</arguments>
</virtualType>
<virtualType name="elasticsearchCategoryCollectionFactory"
type="Magento\CatalogSearch\Model\ResourceModel\Fulltext\SearchCollectionFactory">
<arguments>
<argument name="instanceName" xsi:type="string">
Olegnax\LayeredNavigation\Model\ResourceModel\Fulltext\Collection
</argument>
</arguments>
</virtualType>
<virtualType name="Magento\CatalogSearch\Model\ResourceModel\Fulltext\SearchCollection"
type="Olegnax\LayeredNavigation\Model\ResourceModel\Fulltext\Collection">
<arguments>
<argument name="searchRequestName" xsi:type="string">quick_search_container</argument>
</arguments>
</virtualType>
<virtualType name="Olegnax\LayeredNavigation\Block\Navigation\Category"
type="Olegnax\LayeredNavigation\Block\Navigation">
<arguments>
<argument name="filterList" xsi:type="object">categoryFilterList</argument>
</arguments>
</virtualType>
<virtualType name="Olegnax\LayeredNavigation\Block\Navigation\Search"
type="Olegnax\LayeredNavigation\Block\Navigation">
<arguments>
<argument name="filterList" xsi:type="object">searchFilterList</argument>
</arguments>
</virtualType>
<virtualType name="Magento\LayeredNavigationStaging\Block\Navigation\Category"
type="Olegnax\LayeredNavigation\Block\Navigation">
<arguments>
<argument name="filterList" xsi:type="object">categoryFilterList</argument>
</arguments>
</virtualType>
<virtualType name="Magento\LayeredNavigationStaging\Block\Navigation\Search"
type="Olegnax\LayeredNavigation\Block\Navigation">
<arguments>
<argument name="filterList" xsi:type="object">searchFilterList</argument>
</arguments>
</virtualType>
</config>
+108
View File
@@ -0,0 +1,108 @@
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<type name="Magento\Catalog\Controller\Category\View">
<plugin name="ox_navigation_Catalog_View"
type="Olegnax\LayeredNavigation\Plugin\ListAjax"/>
</type>
<type name="Magento\CatalogSearch\Controller\Result\Index">
<plugin name="ox_navigation_CatalogSearch_Index"
type="Olegnax\LayeredNavigation\Plugin\ListAjax"/>
</type>
<type name="Smartwave\Porto\Controller\CatalogSearch\Result">
<plugin name="ox_navigation_SmartwavePorto_Result"
type="Olegnax\LayeredNavigation\Plugin\ListAjax"/>
</type>
<type name="Amasty\ShopbyBrand\Controller\Index\Index">
<plugin name="ox_navigation_ShopbyBrand_Index"
type="Olegnax\LayeredNavigation\Plugin\ListAjax"/>
</type>
<type name="Magento\LayeredNavigation\Block\Navigation\FilterRenderer">
<plugin name="ox_navigation_filter_render"
type="Olegnax\LayeredNavigation\Plugin\LayeredNavigation\Block\Navigation\FilterRenderer"/>
</type>
<type name="Magento\Catalog\Model\Layer\Filter\Item">
<plugin name="ox_navigation_filter_item_urls"
type="Olegnax\LayeredNavigation\Plugin\Catalog\Model\Layer\Filter\Item" sortOrder="1"/>
</type>
<type name="Magento\Framework\App\View">
<plugin name="ox_navigation_filter_search" type="Olegnax\LayeredNavigation\Plugin\Framework\App\View"/>
</type>
<type name="Magento\Catalog\Model\CategoryRepository">
<plugin disabled="false" name="Olegnax_LayeredNavigation_Plugin_Frontend_Magento_Catalog_Model_CategoryRepository" sortOrder="10" type="Olegnax\LayeredNavigation\Plugin\Frontend\Magento\Catalog\Model\CategoryRepository"/>
</type>
<type name="Magento\Eav\Model\Entity\Collection\AbstractCollection">
<plugin disabled="false" name="Olegnax_LayeredNavigation_Plugin_Frontend_Magento_Eav_Model_Entity_Collection_AbstractCollection" sortOrder="10" type="Olegnax\LayeredNavigation\Plugin\Frontend\Magento\Eav\Model\Entity\Collection\AbstractCollection"/>
</type>
<virtualType name="categoryFilterList" type="Magento\Catalog\Model\Layer\FilterList">
<arguments>
<argument name="filters" xsi:type="array">
<item name="attribute" xsi:type="string">Olegnax\LayeredNavigation\Model\Layer\Filter\Attribute</item>
<item name="price" xsi:type="string">Olegnax\LayeredNavigation\Model\Layer\Filter\Price</item>
<item name="category" xsi:type="string">Olegnax\LayeredNavigation\Model\Layer\Filter\Category</item>
</argument>
</arguments>
</virtualType>
<virtualType name="searchFilterList" type="Magento\Catalog\Model\Layer\FilterList">
<arguments>
<argument name="filters" xsi:type="array">
<item name="attribute" xsi:type="string">Olegnax\LayeredNavigation\Model\Layer\Filter\Attribute</item>
<item name="price" xsi:type="string">Olegnax\LayeredNavigation\Model\Layer\Filter\Price</item>
<item name="category" xsi:type="string">Olegnax\LayeredNavigation\Model\Layer\Filter\Category</item>
</argument>
</arguments>
</virtualType>
<virtualType name="Magento\CatalogSearch\Model\ResourceModel\Fulltext\CollectionFactory"
type="Magento\Catalog\Model\ResourceModel\Product\CollectionFactory">
<arguments>
<argument name="instanceName" xsi:type="string">
Olegnax\LayeredNavigation\Model\ResourceModel\Fulltext\Collection
</argument>
</arguments>
</virtualType>
<virtualType name="elasticsearchCategoryCollectionFactory"
type="Magento\CatalogSearch\Model\ResourceModel\Fulltext\SearchCollectionFactory">
<arguments>
<argument name="instanceName" xsi:type="string">
Olegnax\LayeredNavigation\Model\ResourceModel\Fulltext\Collection
</argument>
</arguments>
</virtualType>
<virtualType name="Magento\CatalogSearch\Model\ResourceModel\Fulltext\SearchCollection"
type="Olegnax\LayeredNavigation\Model\ResourceModel\Fulltext\Collection">
<arguments>
<argument name="searchRequestName" xsi:type="string">quick_search_container</argument>
</arguments>
</virtualType>
<virtualType name="Olegnax\LayeredNavigation\Block\Navigation\Category"
type="Olegnax\LayeredNavigation\Block\Navigation">
<arguments>
<argument name="filterList" xsi:type="object">categoryFilterList</argument>
</arguments>
</virtualType>
<virtualType name="Olegnax\LayeredNavigation\Block\Navigation\Search"
type="Olegnax\LayeredNavigation\Block\Navigation">
<arguments>
<argument name="filterList" xsi:type="object">searchFilterList</argument>
</arguments>
</virtualType>
<virtualType name="Magento\LayeredNavigationStaging\Block\Navigation\Category"
type="Olegnax\LayeredNavigation\Block\Navigation">
<arguments>
<argument name="filterList" xsi:type="object">categoryFilterList</argument>
</arguments>
</virtualType>
<virtualType name="Magento\LayeredNavigationStaging\Block\Navigation\Search"
type="Olegnax\LayeredNavigation\Block\Navigation">
<arguments>
<argument name="filterList" xsi:type="object">searchFilterList</argument>
</arguments>
</virtualType>
<preference for="Magento\LayeredNavigation\Block\Navigation\State"
type="Olegnax\LayeredNavigation\Block\Navigation\State"/>
<preference for="Magento\Catalog\Model\ResourceModel\Layer\Filter\Attribute"
type="Olegnax\LayeredNavigation\Model\ResourceModel\Layer\Filter\Attribute"/>
<preference for="Magento\Swatches\Block\LayeredNavigation\RenderLayered"
type="Olegnax\LayeredNavigation\Block\LayeredNavigation\RenderLayered"/>
</config>
@@ -0,0 +1,6 @@
<?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="view_block_abstract_to_html_after">
<observer instance="Olegnax\LayeredNavigation\Observer\Frontend\View\BlockAbstractToHtmlAfter" name="olegnax_layerednavigation_observer_frontend_view_blockabstracttohtmlafter_view_block_abstract_to_html_after"/>
</event>
</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_LayeredNavigation" setup_version="0.2.1.2">
<sequence>
<module name="Olegnax_Core"/>
<module name="Magento_Catalog"/>
</sequence>
</module>
</config>