ltsecurityinc安防产品在线商城代码
This commit is contained in:
+184
@@ -0,0 +1,184 @@
|
||||
<!--
|
||||
/**
|
||||
* @package Plumrocket_CookieConsent
|
||||
* @copyright Copyright (c) 2022 Plumrocket Inc. (https://plumrocket.com)
|
||||
* @license https://plumrocket.com/license End-user License Agreement
|
||||
*/
|
||||
-->
|
||||
|
||||
<div id="pr-cookie-setting-bar" afterRender="createModal()">
|
||||
<div class="pr-cookie-setting-bar-wrap">
|
||||
<button class="pr-cookie-close" click="closeModal" type="button" aria-label="close popup"></button>
|
||||
<div class="pr-cookie-detail-view">
|
||||
<h3 class="pr-cookie-title" data-bind="text: overview.title"></h3>
|
||||
<div class="pr-cookie-description" data-bind="html: overview.text"></div>
|
||||
<div class="pr-actions-buttons">
|
||||
<button click="allowAll" class="action allow primary" type="button" data-role="action"
|
||||
data-bind="style: {
|
||||
color: acceptButtonConfig.text_color,
|
||||
backgroundColor: acceptButtonConfig.background_color,
|
||||
borderColor: acceptButtonConfig.background_color
|
||||
}, text: acceptButtonConfig.label"
|
||||
></button>
|
||||
<button click="declineAll" class="action decline" type="button" data-role="action" if="declineButtonConfig.enabled"
|
||||
data-bind="style: {
|
||||
color: declineButtonConfig.text_color,
|
||||
backgroundColor: declineButtonConfig.background_color,
|
||||
borderColor: declineButtonConfig.background_color
|
||||
}, text: declineButtonConfig.label"
|
||||
></button>
|
||||
</div>
|
||||
<h3 class="pr-cookie-manage-title" data-bind="text: consentPreferences.header"></h3>
|
||||
<ul class="message-system-list">
|
||||
<li repeat="foreach: categories, item: 'category'">
|
||||
<div data-bind="css: {'category-open': category().categoryVisible}" class="accordion-title">
|
||||
<div class="pr-cookie-option" data-bind="click: toggleAccordion.bind(category())">
|
||||
<strong class="option-label" data-bind="text: category().name"></strong>
|
||||
<if args="category().is_essential">
|
||||
<strong class="option-status" data-bind="text: consentPreferences.essential_category_status"></strong>
|
||||
</if>
|
||||
<ifnot args="category().is_essential">
|
||||
<div class="pr-cookie-switch" data-role="switcher"
|
||||
data-bind="click: function(){return true}, clickBubble: false">
|
||||
<label class="switch-label" aria-label="Switch">
|
||||
<input type="checkbox"
|
||||
data-bind="
|
||||
attr: {name: category().key},
|
||||
checked: isAllowed(category().key),
|
||||
event: {change: toggleSelectedCategory}
|
||||
">
|
||||
<div class="switch-area">
|
||||
<div class="switch-nob"></div>
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
</ifnot>
|
||||
</div>
|
||||
<div class="first-details" data-bind="attr:{'open': category().detailVisible}">
|
||||
<div class="pr-cookie-category-descrip" data-bind="text: category().description"></div>
|
||||
<if args="canShowCookieDetails">
|
||||
<div class="lvl1">
|
||||
<span class="pr-cookie-details"
|
||||
data-bind="
|
||||
text: consentPreferences.cookie_details_link,
|
||||
attr: {'data-category-key': category().key}"
|
||||
>
|
||||
</span>
|
||||
<span class="pr-cookie-details_line"></span>
|
||||
</div>
|
||||
|
||||
<div class="second-details">
|
||||
<div if="category().detailVisible()">
|
||||
<div class="pr-cookie-view">
|
||||
<div class="pr-cookies-list">
|
||||
<if args="isCategoryHasCookie(category().key)">
|
||||
<div class="pr-cookie-item"
|
||||
repeat="foreach: getGroupedCookies(category().key), item: 'group'">
|
||||
<if args="$data.checkThirdParty">
|
||||
<details class="pr-cookie-details-info">
|
||||
<summary>
|
||||
<h4 class="pr-cookie-details-title" data-bind="i18n: group().name"></h4>
|
||||
</summary>
|
||||
<div class="pr-cookie-group-wrp"
|
||||
repeat="foreach: group().cookies, item: 'cookie'">
|
||||
<div class="pr-cookie-group">
|
||||
<div class="pr-cookie-group-row">
|
||||
<span class="pr-cookie-property" data-bind="i18n: 'Name'"></span>
|
||||
<span class="pr-cookie-property-value"
|
||||
data-bind="text: cookie().name, attr: {title: cookie().name}"></span>
|
||||
</div>
|
||||
<div class="pr-cookie-group-row">
|
||||
<span class="pr-cookie-property"
|
||||
data-bind="i18n: 'Domain'"></span>
|
||||
<span class="pr-cookie-property-value"
|
||||
data-bind="text: cookie().domainLabel, attr: {title: cookie().domainLabel}"></span>
|
||||
</div>
|
||||
<div class="pr-cookie-group-row">
|
||||
<span class="pr-cookie-property"
|
||||
data-bind="i18n: 'Duration'"></span>
|
||||
<span class="pr-cookie-property-value"
|
||||
data-bind="text: cookie().durationLabel"></span>
|
||||
</div>
|
||||
<div class="pr-cookie-group-row">
|
||||
<span class="pr-cookie-property" data-bind="i18n: 'Type'"></span>
|
||||
<span data-bind="text: cookie().typeLabel"></span>
|
||||
</div>
|
||||
<div class="pr-cookie-group-row">
|
||||
<span class="pr-cookie-property" data-bind="i18n: 'Category'"></span>
|
||||
<span data-bind="text: getCategoryNameByKey(cookie().category_key)"></span>
|
||||
</div>
|
||||
<div class="pr-cookie-group-row">
|
||||
<span class="pr-cookie-property" data-bind="i18n: 'Description'"></span>
|
||||
<span data-bind="text: cookie().description"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</details>
|
||||
</if>
|
||||
<ifnot args="$data.checkThirdParty">
|
||||
<details class="pr-cookie-details-info" open>
|
||||
<summary>
|
||||
<h4 class="pr-cookie-details-title" data-bind="i18n: group().name"></h4>
|
||||
</summary>
|
||||
<div class="pr-cookie-group-wrp"
|
||||
repeat="foreach: group().cookies, item: 'cookie'">
|
||||
<div class="pr-cookie-group">
|
||||
<div class="pr-cookie-group-row">
|
||||
<span class="pr-cookie-property" data-bind="i18n: 'Name'"></span>
|
||||
<span class="pr-cookie-property-value"
|
||||
data-bind="text: cookie().name, attr: {title: cookie().name}"></span>
|
||||
</div>
|
||||
<div class="pr-cookie-group-row">
|
||||
<span class="pr-cookie-property"
|
||||
data-bind="i18n: 'Domain'"></span>
|
||||
<span class="pr-cookie-property-value"
|
||||
data-bind="text: cookie().domainLabel, attr: {title: cookie().domainLabel}"></span>
|
||||
</div>
|
||||
<div class="pr-cookie-group-row">
|
||||
<span class="pr-cookie-property"
|
||||
data-bind="i18n: 'Duration'"></span>
|
||||
<span class="pr-cookie-property-value"
|
||||
data-bind="text: cookie().durationLabel"></span>
|
||||
</div>
|
||||
<div class="pr-cookie-group-row">
|
||||
<span class="pr-cookie-property" data-bind="i18n: 'Type'"></span>
|
||||
<span data-bind="text: cookie().typeLabel"></span>
|
||||
</div>
|
||||
<div class="pr-cookie-group-row">
|
||||
<span class="pr-cookie-property" data-bind="i18n: 'Category'"></span>
|
||||
<span data-bind="text: getCategoryNameByKey(cookie().category_key)"></span>
|
||||
</div>
|
||||
<div class="pr-cookie-group-row">
|
||||
<span class="pr-cookie-property" data-bind="i18n: 'Description'"></span>
|
||||
<span data-bind="text: cookie().description"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</details>
|
||||
</ifnot>
|
||||
</div>
|
||||
</if>
|
||||
<p ifnot="isCategoryHasCookie(category().key)">
|
||||
<translate args="'There are no cookies.'"></translate>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</if>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<button class="action confirm primary" click="confirmChosen"
|
||||
data-bind="
|
||||
style: {
|
||||
color: confirmButtonConfig.text_color,
|
||||
backgroundColor: confirmButtonConfig.background_color,
|
||||
borderColor: confirmButtonConfig.background_color
|
||||
},
|
||||
text: confirmButtonConfig.label">
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,154 @@
|
||||
<!--
|
||||
/**
|
||||
* @package Plumrocket_CookieConsent
|
||||
* @copyright Copyright (c) 2020 Plumrocket Inc. (https://plumrocket.com)
|
||||
* @license https://plumrocket.com/license End-user License Agreement
|
||||
*/
|
||||
-->
|
||||
|
||||
<div id="pr-cookie-setting-bar" afterRender="createModal()">
|
||||
<div class="pr-cookie-setting-bar-wrap">
|
||||
<button class="pr-cookie-close" click="closeModal" type="button" aria-label="close popup"></button>
|
||||
|
||||
<div class="pr-cookie-detail-view" data-bind="visible: ! isDetailView()">
|
||||
<h3 class="pr-cookie-title" data-bind="text: overview.title"></h3>
|
||||
<div class="pr-cookie-description" data-bind="html: overview.text"></div>
|
||||
<div class="pr-actions-buttons">
|
||||
<button click="allowAll" class="action allow primary" type="button" data-role="action"
|
||||
data-bind="style: {
|
||||
color: acceptButtonConfig.text_color,
|
||||
backgroundColor: acceptButtonConfig.background_color,
|
||||
borderColor: acceptButtonConfig.background_color
|
||||
}, text: acceptButtonConfig.label"
|
||||
></button>
|
||||
<button click="declineAll" class="action decline" type="button" data-role="action" if="declineButtonConfig.enabled"
|
||||
data-bind="style: {
|
||||
color: declineButtonConfig.text_color,
|
||||
backgroundColor: declineButtonConfig.background_color,
|
||||
borderColor: declineButtonConfig.background_color
|
||||
}, text: declineButtonConfig.label"
|
||||
></button>
|
||||
</div>
|
||||
<h3 class="pr-cookie-manage-title" data-bind="text: consentPreferences.header"></h3>
|
||||
<ul class="message-system-list">
|
||||
<li repeat="foreach: categories, item: 'category'">
|
||||
<div class="pr-cookie-option">
|
||||
<strong class="option-label">
|
||||
<text args="category().name"></text>
|
||||
</strong>
|
||||
<if args="category().is_essential">
|
||||
<strong class="option-status" data-bind="text: consentPreferences.essential_category_status"></strong>
|
||||
</if>
|
||||
<ifnot args="category().is_essential">
|
||||
<div class="pr-cookie-switch" data-role="switcher">
|
||||
<label class="switch-label" aria-label="Switch">
|
||||
<input type="checkbox"
|
||||
data-bind="
|
||||
attr: {name: category().key},
|
||||
checked: isAllowed(category().key),
|
||||
event: {change: toggleSelectedCategory}
|
||||
">
|
||||
<div class="switch-area">
|
||||
<div class="switch-nob"></div>
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
</ifnot>
|
||||
</div>
|
||||
|
||||
<div class="pr-cookie-category-descrip">
|
||||
<text args="category().description"></text>
|
||||
</div>
|
||||
|
||||
<button if="canShowCookieDetails" class="pr-cookie-details"
|
||||
data-bind="
|
||||
text: consentPreferences.cookie_details_link,
|
||||
attr: {'data-category-key': category().key},
|
||||
click: showCookieDetails"
|
||||
>
|
||||
</button>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div if="isDetailView()">
|
||||
<div class="pr-cookie-view">
|
||||
<div class="pr-cookie-view-wrap">
|
||||
<div class="pr-cookie-view-top">
|
||||
<button class="pr-cookie-view-back" data-bind="
|
||||
i18n: 'Back',
|
||||
click: hideCookieDetails"
|
||||
>
|
||||
</button>
|
||||
<strong data-bind="text: getCategoryNameByKey(currentCategory())"></strong>
|
||||
</div>
|
||||
<h3 class="pr-cookie-view-title" data-bind="i18n: 'Cookies List'"></h3>
|
||||
</div>
|
||||
<div class="pr-cookies-list">
|
||||
<div class="pr-cookie-item" if="isCategoryHasCookie(currentCategory())" repeat="foreach: getGroupedCookies(currentCategory()), item: 'group'">
|
||||
<details class="pr-cookie-details-info">
|
||||
<summary>
|
||||
<h4 class="pr-cookie-details-title" data-bind="i18n: group().name"></h4>
|
||||
<span class="pr-cookie-group-view" data-bind="i18n: 'View Cookies'"></span>
|
||||
</summary>
|
||||
<div class="pr-cookie-group" repeat="foreach: group().cookies, item: 'cookie'">
|
||||
<div class="pr-cookie-group-row">
|
||||
<span class="pr-cookie-property" data-bind="i18n: 'Name'"></span>
|
||||
<span
|
||||
class="pr-cookie-property-value"
|
||||
data-bind="
|
||||
text: cookie().name,
|
||||
attr: {title: cookie().name}"
|
||||
>
|
||||
</span>
|
||||
</div>
|
||||
<div class="pr-cookie-group-row">
|
||||
<span class="pr-cookie-property" data-bind="i18n: 'Domain'"></span>
|
||||
<span
|
||||
class="pr-cookie-property-value"
|
||||
data-bind="
|
||||
text: cookie().domainLabel,
|
||||
attr: {title: cookie().domainLabel}"
|
||||
>
|
||||
</span>
|
||||
</div>
|
||||
<div class="pr-cookie-group-row">
|
||||
<span class="pr-cookie-property" data-bind="i18n: 'Duration'"></span>
|
||||
<span
|
||||
class="pr-cookie-property-value"
|
||||
data-bind="text: cookie().durationLabel"
|
||||
>
|
||||
</span>
|
||||
</div>
|
||||
<div class="pr-cookie-group-row">
|
||||
<span class="pr-cookie-property" data-bind="i18n: 'Type'"></span>
|
||||
<span data-bind="text: cookie().typeLabel"></span>
|
||||
</div>
|
||||
<div class="pr-cookie-group-row">
|
||||
<span class="pr-cookie-property" data-bind="i18n: 'Category'"></span>
|
||||
<span data-bind="text: getCategoryNameByKey(cookie().category_key)"></span>
|
||||
</div>
|
||||
<div class="pr-cookie-group-row">
|
||||
<span class="pr-cookie-property" data-bind="i18n: 'Description'"></span>
|
||||
<span data-bind="text: cookie().description"></span>
|
||||
</div>
|
||||
</div>
|
||||
</details>
|
||||
</div>
|
||||
<p ifnot="isCategoryHasCookie(currentCategory())">
|
||||
<translate args="'There are no cookies.'"></translate>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button class="action confirm primary" click="confirmChosen"
|
||||
data-bind="style: {
|
||||
color: confirmButtonConfig.text_color,
|
||||
backgroundColor: confirmButtonConfig.background_color,
|
||||
borderColor: confirmButtonConfig.background_color
|
||||
}, text: confirmButtonConfig.label"
|
||||
></button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
<!--
|
||||
/**
|
||||
* @package Plumrocket_CookieConsent
|
||||
* @copyright Copyright (c) 2022 Plumrocket Inc. (https://plumrocket.com)
|
||||
* @license https://plumrocket.com/license End-user License Agreement
|
||||
*/
|
||||
-->
|
||||
|
||||
<aside role="dialog"
|
||||
class="modal-<%- data.type %> <%- data.modalClass %>
|
||||
<% if(data.responsive){ %><%- data.responsiveClass %><% } %>
|
||||
<% if(data.innerScroll){ %><%- data.innerScrollClass %><% } %>"
|
||||
<% if(data.title){ %> aria-labelledby="modal-title-<%- data.id %>"<% } %>
|
||||
aria-describedby="modal-content-<%- data.id %>"
|
||||
data-role="modal"
|
||||
data-type="<%- data.type %>"
|
||||
tabindex="0">
|
||||
<div data-role="focusable-start" tabindex="0"></div>
|
||||
<div class="modal-inner-wrap"
|
||||
data-role="focusable-scope">
|
||||
<div id="modal-content-<%- data.id %>"
|
||||
class="modal-content"
|
||||
data-role="content"></div>
|
||||
<% if(data.buttons.length > 0){ %>
|
||||
<footer class="modal-footer">
|
||||
<% _.each(data.buttons, function(button) { %>
|
||||
<button
|
||||
class="<%- button.class %>"
|
||||
type="button"
|
||||
data-role="action"><span><%= button.text %></span></button>
|
||||
<% }); %>
|
||||
</footer>
|
||||
<% } %>
|
||||
</div>
|
||||
<div data-role="focusable-end" tabindex="0"></div>
|
||||
</aside>
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
<!--
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
-->
|
||||
|
||||
<aside role="dialog"
|
||||
class="modal-<%- data.type %> <%- data.modalClass %>
|
||||
<% if(data.innerScroll){ %><%- data.innerScrollClass %><% } %>"
|
||||
<% if(data.title){ %> aria-labelledby="modal-title-<%- data.id %>"<% } %>
|
||||
aria-describedby="modal-content-<%- data.id %>"
|
||||
data-role="modal"
|
||||
data-type="<%- data.type %>"
|
||||
tabindex="0">
|
||||
<div data-role="focusable-start" tabindex="0"></div>
|
||||
<div class="modal-inner-wrap"
|
||||
data-role="focusable-scope">
|
||||
<div id="modal-content-<%- data.id %>" class="modal-content" data-role="content"></div>
|
||||
</div>
|
||||
<div data-role="focusable-end" tabindex="0"></div>
|
||||
</aside>
|
||||
Reference in New Issue
Block a user