ltsecurityinc安防产品在线商城代码
This commit is contained in:
Executable
+13
@@ -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_InfiniteScroll::scroll" sortOrder="10" title="Infinite Scroll"/>
|
||||
</resource>
|
||||
</resource>
|
||||
</resources>
|
||||
</acl>
|
||||
</config>
|
||||
+13
@@ -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_InfiniteScroll::scroll" title="InfiniteScroll" translate="title"
|
||||
module="Olegnax_InfiniteScroll" sortOrder="999" parent="Olegnax_Core::Olegnax_Core"
|
||||
resource="Olegnax_InfiniteScroll::scroll"/>
|
||||
<add id="Olegnax_InfiniteScroll::config" title="Configuration" translate="title"
|
||||
module="Olegnax_InfiniteScroll" sortOrder="10"
|
||||
action="adminhtml/system_config/edit/section/olegnax_infinitescroll"
|
||||
parent="Olegnax_InfiniteScroll::scroll" resource="Olegnax_InfiniteScroll::scroll"/>
|
||||
</menu>
|
||||
</config>
|
||||
+110
@@ -0,0 +1,110 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!--
|
||||
/**
|
||||
* @author Olegnax
|
||||
* @package Olegnax_InfiniteScroll
|
||||
* @copyright Copyright (c) 2019 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:module:Magento_Config:etc/system_file.xsd">
|
||||
<system>
|
||||
<tab id="olegnax" sortOrder="999" translate="label">
|
||||
<label>Olegnax</label>
|
||||
</tab>
|
||||
<section id="olegnax_infinitescroll" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="10"
|
||||
translate="label">
|
||||
<label>InfiniteScroll</label>
|
||||
<tab>olegnax</tab>
|
||||
<resource>Olegnax_InfiniteScroll::scroll</resource>
|
||||
<group id="info" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="0" translate="label">
|
||||
<frontend_model>Olegnax\InfiniteScroll\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="type" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="10" translate="label comment"
|
||||
type="select">
|
||||
<label>Load Action</label>
|
||||
<comment>Choose the way products are loaded. Automatically on scroll or Manually on button click.
|
||||
</comment>
|
||||
<source_model>Olegnax\InfiniteScroll\Model\Config\Source\Type</source_model>
|
||||
</field>
|
||||
<field id="button_label" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="12"
|
||||
translate="label" type="text">
|
||||
<label>Load more Button text</label>
|
||||
<depends>
|
||||
<field id="type">button</field>
|
||||
</depends>
|
||||
</field>
|
||||
<field id="spacer_1" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<frontend_model>Olegnax\InfiniteScroll\Model\Config\Source\Spacer</frontend_model>
|
||||
</field>
|
||||
<field id="loader_type" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="22"
|
||||
translate="label"
|
||||
type="select">
|
||||
<label>AJAX Progress Loader</label>
|
||||
<source_model>Olegnax\InfiniteScroll\Model\Config\Source\LoaderType</source_model>
|
||||
</field>
|
||||
<field id="loader" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="24" translate="label comment"
|
||||
type="text">
|
||||
<label>AJAX Progress 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">image</field>
|
||||
</depends>
|
||||
</field>
|
||||
<field id="spacer_2" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<frontend_model>Olegnax\InfiniteScroll\Model\Config\Source\Spacer</frontend_model>
|
||||
</field>
|
||||
<field id="progress_counter" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="31" translate="label comment"
|
||||
type="select">
|
||||
<label>Show Products Amount Info</label>
|
||||
<comment>Show loaded/total progress info (above load more button)with progress line </comment>
|
||||
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
|
||||
</field>
|
||||
<field id="progress_label1" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="32"
|
||||
translate="label comment" type="text">
|
||||
<label>Text before numbers</label>
|
||||
<comment>Default: "You've viewed ". Don't forget the spaces.</comment>
|
||||
<depends>
|
||||
<field id="progress_counter">1</field>
|
||||
</depends>
|
||||
</field>
|
||||
<field id="progress_label2" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="33"
|
||||
translate="label comment" type="text">
|
||||
<label>Text between numbers</label>
|
||||
<comment>Default:" of "</comment>
|
||||
<depends>
|
||||
<field id="progress_counter">1</field>
|
||||
</depends>
|
||||
</field>
|
||||
<field id="progress_label3" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="34"
|
||||
translate="label comment" type="text">
|
||||
<label>Text after bumbers</label>
|
||||
<comment>Default: " products"</comment>
|
||||
<depends>
|
||||
<field id="progress_counter">1</field>
|
||||
</depends>
|
||||
</field>
|
||||
<field id="spacer_3" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<frontend_model>Olegnax\InfiniteScroll\Model\Config\Source\Spacer</frontend_model>
|
||||
</field>
|
||||
<field id="products_container" showInDefault="1" showInStore="1" showInWebsite="1"
|
||||
sortOrder="42" translate="label comment" type="text">
|
||||
<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="product_container" showInDefault="1" showInStore="1" showInWebsite="1"
|
||||
sortOrder="44" translate="label comment" type="text">
|
||||
<label>Custom DOM Selectors for Product Item</label>
|
||||
<comment>Default selector: ".item.product.product-item"</comment>
|
||||
</field>
|
||||
</group>
|
||||
</section>
|
||||
</system>
|
||||
</config>
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
<?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_infinitescroll>
|
||||
<general>
|
||||
<type>button</type>
|
||||
<button_label>Load more</button_label>
|
||||
<loader_type>theme</loader_type>
|
||||
<loader></loader>
|
||||
<progress_counter>1</progress_counter>
|
||||
<progress_label1>You've viewed </progress_label1>
|
||||
<progress_label2> of </progress_label2>
|
||||
<progress_label3> products</progress_label3>
|
||||
<products_container></products_container>
|
||||
<product_container></product_container>
|
||||
</general>
|
||||
</olegnax_infinitescroll>
|
||||
</default>
|
||||
</config>
|
||||
Executable
+6
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" ?>
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
|
||||
<preference for="Amasty\Shopby\Plugin\Ajax\Ajax" type="Olegnax\InfiniteScroll\Rewrite\Amasty\Shopby\Plugin\Ajax\Ajax"/>
|
||||
<preference for="Amasty\Shopby\Plugin\Ajax\CategoryViewAjax" type="Olegnax\InfiniteScroll\Rewrite\Amasty\Shopby\Plugin\Ajax\CategoryViewAjax"/>
|
||||
<preference for="Amasty\Shopby\Plugin\Ajax\CmsControllerIndexIndexAjax" type="Olegnax\InfiniteScroll\Rewrite\Amasty\Shopby\Plugin\Ajax\CmsControllerIndexIndexAjax"/>
|
||||
</config>
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
<?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\Theme\Block\Html\Pager">
|
||||
<plugin name="Olegnax_InfiniteScroll_Plugin_Frontend_Magento_Theme_Block_Html_Pager"
|
||||
sortOrder="0"
|
||||
type="Olegnax\InfiniteScroll\Plugin\Frontend\Magento\Theme\Block\Html\Pager"/>
|
||||
</type>
|
||||
<type name="Magento\Framework\App\View">
|
||||
<plugin name="Olegnax_InfiniteScroll_Plugin_Frontend_Magento_Framework_App_View"
|
||||
sortOrder="0"
|
||||
type="Olegnax\InfiniteScroll\Plugin\Frontend\Magento\Framework\App\View"/>
|
||||
</type>
|
||||
<type name="Amasty\Finder\Controller\Index\Index">
|
||||
<plugin name="Olegnax_InfiniteScroll_Plugin_Frontend_Amasty_Finder_Controller_Index_Index"
|
||||
sortOrder="0"
|
||||
type="Olegnax\InfiniteScroll\Plugin\ListAjax"/>
|
||||
</type>
|
||||
<type name="Amasty\ShopbyBrand\Controller\Index\Index">
|
||||
<plugin name="Olegnax_InfiniteScroll_Plugin_Frontend_Amasty_ShopbyBrand_Controller_Index_Index"
|
||||
sortOrder="0"
|
||||
type="Olegnax\InfiniteScroll\Plugin\ListAjax"/>
|
||||
</type>
|
||||
<type name="Amasty\Shopby\Controller\Index\Index">
|
||||
<plugin name="Olegnax_InfiniteScroll_Plugin_Frontend_Amasty_Shopby_Controller_Index_Index"
|
||||
sortOrder="0"
|
||||
type="Olegnax\InfiniteScroll\Plugin\ListAjax"/>
|
||||
</type>
|
||||
<type name="Amasty\Shopby\Controller\Search\Result\Index">
|
||||
<plugin name="Olegnax_InfiniteScroll_Plugin_Frontend_Amasty_Shopby_Controller_Search_Result_Index"
|
||||
sortOrder="0"
|
||||
type="Olegnax\InfiniteScroll\Plugin\ListAjax"/>
|
||||
</type>
|
||||
<type name="Amasty\Xlanding\Controller\Page\View">
|
||||
<plugin name="Olegnax_InfiniteScroll_Plugin_Frontend_Amasty_Xlanding_Controller_Page_View"
|
||||
sortOrder="0"
|
||||
type="Olegnax\InfiniteScroll\Plugin\ListAjax"/>
|
||||
</type>
|
||||
<type name="Magento\CatalogSearch\Controller\Result\Index">
|
||||
<plugin name="Olegnax_InfiniteScroll_Plugin_Frontend_Magento_CatalogSearch_Controller_Result_Index"
|
||||
sortOrder="0"
|
||||
type="Olegnax\InfiniteScroll\Plugin\ListAjax"/>
|
||||
</type>
|
||||
<type name="Magento\Catalog\Controller\Category\View">
|
||||
<plugin name="Olegnax_InfiniteScroll_Plugin_Frontend_Magento_Catalog_Controller_Category_View"
|
||||
sortOrder="0"
|
||||
type="Olegnax\InfiniteScroll\Plugin\ListAjax"/>
|
||||
</type>
|
||||
<type name="Smartwave\Porto\Controller\CatalogSearch\Result">
|
||||
<plugin name="Olegnax_InfiniteScroll_Plugin_Frontend_Smartwave_Porto_Controller_CatalogSearch_Result"
|
||||
sortOrder="0"
|
||||
type="Olegnax\InfiniteScroll\Plugin\ListAjax"/>
|
||||
</type>
|
||||
<type name="Bss\AddMultipleProducts\Helper\Data">
|
||||
<plugin name="Olegnax_InfiniteScroll_Plugin_Frontend_Bss_AddMultipleProducts_Helper_Data"
|
||||
sortOrder="10"
|
||||
type="Olegnax\InfiniteScroll\Plugin\Frontend\Bss\AddMultipleProducts\Helper\Data"/>
|
||||
</type>
|
||||
<type name="Mageplaza\AjaxLayer\Helper\Data">
|
||||
<plugin name="Olegnax_InfiniteScroll_Plugin_Frontend_Mageplaza_AjaxLayer_Helper_Data"
|
||||
sortOrder="10"
|
||||
type="Olegnax\InfiniteScroll\Plugin\Frontend\Mageplaza\AjaxLayer\Helper\Data"/>
|
||||
</type>
|
||||
</config>
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
<?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="Olegnax_InfiniteScroll" setup_version="1.2.0.5">
|
||||
<sequence>
|
||||
<module name="Magento_Theme"/>
|
||||
<module name="Magento_Framework"/>
|
||||
<module name="Magento_Catalog"/>
|
||||
</sequence>
|
||||
</module>
|
||||
</config>
|
||||
Reference in New Issue
Block a user