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,52 @@
<?php
/**
* @package Plumrocket_CookieConsent
* @copyright Copyright (c) 2020 Plumrocket Inc. (https://plumrocket.com)
* @license https://plumrocket.com/license End-user License Agreement
*/
?>
<?php
/** @var \Plumrocket\CookieConsent\Block\Html\BodyScripts $block */
$essentialCategoriesWithScripts = $block->getEssentialCategoriesWithScripts();
$optionalCategoriesWithScripts = $block->getOptionalCategoriesWithScripts();
/** @var \Plumrocket\Base\ViewModel\CspNonce $cspNonceViewModel */
$cspNonceViewModel = $block->getData('cspNonceViewModel');
?>
<?php foreach ($essentialCategoriesWithScripts as $category): ?>
<?= /* @noEscape */ $category->getFooterMiscellaneousHtml() ?>
<?php endforeach; ?>
<?php if ($optionalCategoriesWithScripts): ?>
<?php foreach ($optionalCategoriesWithScripts as $category): ?>
<div id="pr-cookie-absolute-footer-<?= $block->escapeHtmlAttr($category->getKey()) ?>"></div>
<?php endforeach; ?>
<script <?= /* @noEscape */ $cspNonceViewModel->getNonce() ?>>
requirejs(['prCookieConsentApi', 'prCookieBodyScripts'], function (prCookieConsentApi, prCookieBodyScripts) {
'use strict';
var container;
<?php foreach ($optionalCategoriesWithScripts as $category): ?>
container = document.getElementById(
'pr-cookie-absolute-footer-' + '<?= $block->escapeJs($category->getKey()) ?>'
);
if (container && prCookieConsentApi.isAllowedCategory('<?= $block->escapeJs($category->getKey()) ?>')) {
container.innerHTML = '<?= $block->prepareHtml($category->getFooterMiscellaneousHtml()) ?>';
prCookieBodyScripts.execute(container, 'pr-cookie-footer-script');
}
<?php endforeach; ?>
});
</script>
<?php endif; ?>
<?php /** Activate all scripts like <script type="pr_cookie_category/..."> */ ?>
<script id="pr_cookie_consent_on_load_activate" <?= /* @noEscape */ $cspNonceViewModel->getNonce() ?>>
requirejs(['prCookieBodyScripts', 'domReady!'], function (bodyScripts) {
'use strict';
var scripts = document.querySelectorAll('script[type^="pr_cookie_category"]');
[].forEach.call(scripts, function (notActiveScript) {
bodyScripts.activatePrCookieCategoryScript(notActiveScript);
});
});
</script>
@@ -0,0 +1,51 @@
<?php
/**
* Plumrocket Inc.
*
* NOTICE OF LICENSE
*
* This source file is subject to the End-user License Agreement
* that is available through the world-wide-web at this URL:
* http://wiki.plumrocket.net/wiki/EULA
* If you are unable to obtain it through the world-wide-web, please
* send an email to support@plumrocket.com so we can send you a copy immediately.
*
* @package Plumrocket_CookieConsent
* @copyright Copyright (c) 2020 Plumrocket Inc. (http://www.plumrocket.com)
* @license http://wiki.plumrocket.net/wiki/EULA End-user License Agreement
*/
?>
<?php
/** @var \Plumrocket\CookieConsent\Block\Html\BodyScripts $block */
$essentialCategoriesWithScripts = $block->getEssentialCategoriesWithScripts();
$optionalCategoriesWithScripts = $block->getOptionalCategoriesWithScripts();
/** @var \Plumrocket\Base\ViewModel\CspNonce $cspNonceViewModel */
$cspNonceViewModel = $block->getData('cspNonceViewModel');
?>
<?php foreach ($essentialCategoriesWithScripts as $category): ?>
<?= /* @noEscape */ $category->getHeadScripts() ?>
<?php endforeach; ?>
<?php if ($optionalCategoriesWithScripts): ?>
<?php foreach ($optionalCategoriesWithScripts as $category): ?>
<div id="pr-cookie-absolute-header-<?= $block->escapeHtmlAttr($category->getKey()) ?>"></div>
<?php endforeach; ?>
<script <?= /* @noEscape */ $cspNonceViewModel->getNonce() ?>>
requirejs(['prCookieConsentApi', 'prCookieBodyScripts'], function (prCookieConsentApi, prCookieBodyScripts) {
'use strict';
var container;
<?php foreach ($optionalCategoriesWithScripts as $category): ?>
container = document.getElementById(
'pr-cookie-absolute-header-' + '<?= $block->escapeJs($category->getKey()) ?>'
);
if (container && prCookieConsentApi.isAllowedCategory('<?= $block->escapeJs($category->getKey()) ?>')) {
container.innerHTML = '<?= $block->prepareHtml($category->getHeadScripts()) ?>';
prCookieBodyScripts.execute(container, 'pr-cookie-header-script');
}
<?php endforeach; ?>
});
</script>
<?php endif; ?>