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
@@ -0,0 +1,39 @@
<?php
/**
* @author Olegnax
* @package Olegnax_InfiniteScroll
* @copyright Copyright (c) 2019 Olegnax (http://olegnax.com/). All rights reserved.
* See COPYING.txt for license details.
*/
namespace Olegnax\InfiniteScroll\Model\Config\Source;
use Magento\Framework\Option\ArrayInterface;
class LoaderType implements ArrayInterface
{
const TYPE_THEME = 'theme';
const TYPE_MAGENTO = 'magento';
const TYPE_BLOCK = 'css';
const TYPE_IMAGE = 'image';
public function toOptionArray()
{
return [
['value' => '', 'label' => __('Disabled')],
['value' => static::TYPE_MAGENTO, 'label' => __('Magento Default')],
['value' => static::TYPE_BLOCK, 'label' => __('CSS Preloader')],
['value' => static::TYPE_THEME, 'label' => __('Theme Preloader')],
['value' => static::TYPE_IMAGE, 'label' => __('Custom Image')]
];
}
public function toArray()
{
$array = [];
foreach ($this->toOptionArray() as $item) {
$array[$item['value']] = $item['label'];
}
return $array;
}
}
@@ -0,0 +1,27 @@
<?php
/**
* @author Olegnax
* @package Olegnax_InfiniteScroll
* @copyright Copyright (c) 2019 Olegnax (http://olegnax.com/). All rights reserved.
* See COPYING.txt for license details.
*/
namespace Olegnax\InfiniteScroll\Model\Config\Source;
use Magento\Backend\Block\Template\Context;
use Magento\Config\Block\System\Config\Form\Field;
use Magento\Framework\Data\Form\Element\AbstractElement;
class Spacer extends Field {
public function __construct(
Context $context, array $data = []
) {
parent::__construct($context, $data);
}
protected function _decorateRowHtml( AbstractElement $element, $html)
{
return '<tr id="row_' . $element->getHtmlId() . '"><td></td><td colspan="2"><hr class="ox-settings-spacer"></td></tr>';
}
}
@@ -0,0 +1,36 @@
<?php
/**
* @author Olegnax
* @package Olegnax_InfiniteScroll
* @copyright Copyright (c) 2019 Olegnax (http://olegnax.com/). All rights reserved.
* See COPYING.txt for license details.
*/
namespace Olegnax\InfiniteScroll\Model\Config\Source;
use Magento\Framework\Option\ArrayInterface;
class Type implements ArrayInterface
{
const TYPE_DISABLED = '';
const TYPE_AUTO = 'auto';
const TYPE_BUTTON = 'button';
public function toOptionArray()
{
return [
['value' => static::TYPE_DISABLED, 'label' => __('Disable Module')],
['value' => static::TYPE_AUTO, 'label' => __('On Scroll - automatically on page scroll')],
['value' => static::TYPE_BUTTON, 'label' => __('Button - Manually on button click')]
];
}
public function toArray()
{
$array = [];
foreach ($this->toOptionArray() as $item) {
$array[$item['value']] = $item['label'];
}
return $array;
}
}