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,42 @@
<?php
/**
* @author Olegnax
* @package Olegnax_InfiniteScroll
* @copyright Copyright (c) 2019 Olegnax (http://olegnax.com/). All rights reserved.
* See COPYING.txt for license details.
*/
use Olegnax\InfiniteScroll\Helper\Helper;
use Olegnax\InfiniteScroll\Model\Config\Source\LoaderType;
use Olegnax\InfiniteScroll\Model\Config\Source\Type;
/** @var Helper $_helper */
$config = $this->helper(Helper::class)->getModuleConfig('general');
if (('' !== $config['loader_type'] && Type::TYPE_DISABLED !== $config['type']) || Type::TYPE_BUTTON == $config['type']): ?>
<script data-role="ox-infinity-scroll" type="text/x-magento-template">
<div class="ox-product-scroll ox-product-scroll__loader--<?= $config['loader_type']; ?> ox-product-scroll__type--<?= $config['type']; ?>">
<?php if ($config['progress_counter']): ?>
<div class="ox-product-scroll__amount">
<div class="amount-wrap">
<?= $config['progress_label1']; ?> <span class="toolbar-number-first"></span> - <span class="toolbar-number-last"></span> <?= $config['progress_label2']; ?> <span class="toolbar-number-total"></span> <?= $config['progress_label3']; ?>
</div>
<div class="amount-count-line"><span style="width: 0%;"></span></div>
</div>
<?php endif; ?>
<?php if ('' !== $config['loader_type'] && Type::TYPE_DISABLED !== $config['type']): ?>
<div class="ox-product-scroll__loader">
<?php if (LoaderType::TYPE_IMAGE == $config['loader_type']): ?>
<img src="<?= $this->getViewFileUrl($config['loader']) ?>"
class="ox-product-scroll__loader-image"/>
<?php endif; ?>
</div>
<?php endif; ?>
<div class="button ox-product-scroll__button">
<span class="label"><?= $config['button_label']; ?></span>
</div>
</div>
</script>
<?php endif; ?>
@@ -0,0 +1,24 @@
<?php
/**
* @author Amasty Team
* @copyright Copyright (c) 2020 Amasty (https://www.amasty.com)
* @package Amasty_Rewards
*/
use Amasty\Rewards\Block\Frontend\Catalog\HighlightCategory;
?>
<?php /** @var HighlightCategory $block */ ?>
<div data-bind="scope: 'amasty-rewards-highlight-catalog-<?= (int)$block->getProductId();?>'">
<div class="amasty-rewards-loader" data-bind="visible: loader()" style="display: none;">
<img src="<?= $block->escapeUrl($block->getViewFileUrl('Amasty_Rewards::images/ajax-loader.gif')); ?>" />
</div>
<!-- ko template: getTemplate() --><!-- /ko -->
<script type="text/x-magento-init">
{
"*": {
"Olegnax_InfiniteScroll/js/rewards-highlight": <?= /** @no-escape */ $block->getJsLayout();?>
}
}
</script>
</div>
@@ -0,0 +1,24 @@
<?php
/**
* @author Olegnax
* @package Olegnax_InfiniteScroll
* @copyright Copyright (c) 2019 Olegnax (http://olegnax.com/). All rights reserved.
* See COPYING.txt for license details.
*/
/** var \Olegnax\LayeredNavigation\Block\Scroll $block */
if ($block->isEnabled()) : ?>
<script>
require([
'jquery',
'OxInfiniteScroll'
], function ($) {
var $body = $('body');
if ($body.data('OxInfiniteScroll')) {
$body.OxInfiniteScroll('init');
} else {
$body.OxInfiniteScroll(<?= $block->getConfig();?>);
}
});
</script>
<?php endif; ?>