ltsecurityinc安防产品在线商城代码
@@ -0,0 +1,29 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
-->
|
||||
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<body>
|
||||
<referenceContainer name="content">
|
||||
<uiComponent name="pr_cookie_category_form"/>
|
||||
<referenceContainer name="page.main.actions">
|
||||
<block class="Magento\Backend\Block\Store\Switcher" name="pr.cookie.store.switcher" template="Magento_Backend::store/switcher.phtml"/>
|
||||
</referenceContainer>
|
||||
</referenceContainer>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
-->
|
||||
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<body>
|
||||
<referenceContainer name="content">
|
||||
<uiComponent name="pr_cookie_category_listing"/>
|
||||
</referenceContainer>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
-->
|
||||
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<body>
|
||||
<referenceContainer name="content">
|
||||
<uiComponent name="pr_cookie_consent_log_listing"/>
|
||||
</referenceContainer>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
-->
|
||||
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<head>
|
||||
<css src="Plumrocket_CookieConsent::css/cookie-item.css"/>
|
||||
</head>
|
||||
<body>
|
||||
<referenceContainer name="content">
|
||||
<uiComponent name="pr_cookie_item_form"/>
|
||||
<referenceContainer name="page.main.actions">
|
||||
<block class="Magento\Backend\Block\Store\Switcher" name="pr.cookie.store.switcher" template="Magento_Backend::store/switcher.phtml"/>
|
||||
</referenceContainer>
|
||||
</referenceContainer>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
-->
|
||||
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<body>
|
||||
<referenceContainer name="content">
|
||||
<uiComponent name="pr_cookie_item_listing"/>
|
||||
</referenceContainer>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
-->
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<update handle="pr_system_config_element_notice"/>
|
||||
<head>
|
||||
<script src="Plumrocket_CookieConsent::js/system_config_edit.js" />
|
||||
<css src="Plumrocket_CookieConsent::css/system_config_edit.css" />
|
||||
<css src="Plumrocket_CookieConsent::css/chosen.css" />
|
||||
<css src="Plumrocket_ExtendedAdminUi::css/lib/pickr/monolith.min.css"/>
|
||||
<css src="Plumrocket_ExtendedAdminUi::css/image-radio-buttons.css"/>
|
||||
</head>
|
||||
</page>
|
||||
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Plumrocket_CookieConsent
|
||||
* @copyright Copyright (c) 2025 Plumrocket Inc. (https://plumrocket.com)
|
||||
* @license https://plumrocket.com/license End-user License Agreement
|
||||
*/
|
||||
|
||||
/** @var \Plumrocket\CookieConsent\Block\Adminhtml\System\Config\Form\UpgradeToProVersionNotice $block */
|
||||
?>
|
||||
|
||||
<div class="pr-cookie-notice-intro">
|
||||
<?= $block->escapeHtml($block->getNoticeIntro()) ?>
|
||||
</div>
|
||||
|
||||
<div class="pr-cookie-notice-body">
|
||||
<a href="https://plumrocket.com/customer/account/login" target="_blank" class="pr-button pr-update-to-pro-btn">Upgrade to Cookie Consent Pro</a>
|
||||
|
||||
<div class="pr-cookie-notice-details">
|
||||
<details class="pr-cookie-notice-accordion">
|
||||
<summary>
|
||||
<span class="pr-cookie-notice-accordion-title">
|
||||
Pay only the difference — here’s how
|
||||
</span>
|
||||
</summary>
|
||||
<div class="pr-cookie-notice-accordion-body">
|
||||
<p>You don’t need to buy the full version again – pay only the difference!</p>
|
||||
<ol>
|
||||
<li>Click the “Upgrade” button above and log in to your Plumrocket account.</li>
|
||||
<li>In your list of purchased extensions, find the Cookie Consent Extension.</li>
|
||||
<li>Click "Upgrade to Cookie Consent Pro."
|
||||
|
||||
<!-- tooltip -->
|
||||
<div class="admin__field-tooltip">
|
||||
<span class="admin__field-tooltip-action" data-toggle="tooltip" tabindex="0" title="Pro Features"></span>
|
||||
<div class="admin__field-tooltip-content">
|
||||
<img src="<?= $block->escapeUrl($block->getViewFileUrl('Plumrocket_CookieConsent::images/pro_features.png')) ?>"
|
||||
alt="<?= $block->escapeHtml(__('Pro Features')) ?>"
|
||||
width="577" height="354">
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ol>
|
||||
<p>Your discount will be applied automatically – no coupon code needed.</p>
|
||||
</div>
|
||||
</details>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,106 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
-->
|
||||
|
||||
<form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
|
||||
<argument name="data" xsi:type="array">
|
||||
<item name="js_config" xsi:type="array">
|
||||
<item name="provider" xsi:type="string">pr_cookie_category_form.pr_cookie_category_form_data_source</item>
|
||||
<item name="deps" xsi:type="string">pr_cookie_category_form.pr_cookie_category_form_data_source</item>
|
||||
</item>
|
||||
<item name="label" xsi:type="string" translate="true">Cookie Category</item>
|
||||
<item name="template" xsi:type="string">templates/form/collapsible</item>
|
||||
<item name="config" xsi:type="array">
|
||||
<item name="dataScope" xsi:type="string">data</item>
|
||||
<item name="namespace" xsi:type="string">pr_cookie_category_form</item>
|
||||
</item>
|
||||
</argument>
|
||||
<settings>
|
||||
<buttons>
|
||||
<button name="save" class="Plumrocket\CookieConsent\Block\Adminhtml\Cookie\Category\Edit\Button\Save"/>
|
||||
<button name="delete" class="Plumrocket\CookieConsent\Block\Adminhtml\Cookie\Category\Edit\Button\Delete"/>
|
||||
<button name="back" class="Plumrocket\CookieConsent\Block\Adminhtml\Cookie\Category\Edit\Button\Back"/>
|
||||
</buttons>
|
||||
</settings>
|
||||
<dataSource name="pr_cookie_category_form_data_source">
|
||||
<argument name="data" xsi:type="array">
|
||||
<item name="js_config" xsi:type="array">
|
||||
<item name="component" xsi:type="string">Magento_Ui/js/form/provider</item>
|
||||
</item>
|
||||
</argument>
|
||||
<argument name="dataProvider" xsi:type="configurableObject">
|
||||
<argument name="class" xsi:type="string">
|
||||
Plumrocket\CookieConsent\Ui\DataProvider\Cookie\Category\Form\DataProvider
|
||||
</argument>
|
||||
<argument name="name" xsi:type="string">pr_cookie_category_form_data_source</argument>
|
||||
<argument name="primaryFieldName" xsi:type="string">entity_id</argument>
|
||||
<argument name="requestFieldName" xsi:type="string">id</argument>
|
||||
</argument>
|
||||
</dataSource>
|
||||
<fieldset name="general">
|
||||
<argument name="data" xsi:type="array">
|
||||
<item name="config" xsi:type="array">
|
||||
<item name="label" xsi:type="string"/>
|
||||
</item>
|
||||
</argument>
|
||||
|
||||
<field name="entity_id" sortOrder="0" formElement="input">
|
||||
<argument name="data" xsi:type="array">
|
||||
<item name="config" xsi:type="array">
|
||||
<item name="visible" xsi:type="boolean">false</item>
|
||||
<item name="dataType" xsi:type="string">text</item>
|
||||
<item name="source" xsi:type="string">cookie_category</item>
|
||||
<item name="dataScope" xsi:type="string">entity_id</item>
|
||||
</item>
|
||||
</argument>
|
||||
</field>
|
||||
|
||||
<field name="key" formElement="input">
|
||||
<settings>
|
||||
<tooltip>
|
||||
<link>https://plumrocket.com/docs/magento-cookie-consent/v1/devguide/block-js-code</link>
|
||||
<description>See our Developer's Guide</description>
|
||||
</tooltip>
|
||||
</settings>
|
||||
</field>
|
||||
|
||||
<field name="description">
|
||||
<argument name="data" xsi:type="array">
|
||||
<item name="config" xsi:type="array">
|
||||
<item name="rows" xsi:type="number">8</item>
|
||||
</item>
|
||||
</argument>
|
||||
</field>
|
||||
|
||||
<field name="head_scripts">
|
||||
<argument name="data" xsi:type="array">
|
||||
<item name="config" xsi:type="array">
|
||||
<item name="rows" xsi:type="number">4</item>
|
||||
</item>
|
||||
</argument>
|
||||
</field>
|
||||
|
||||
<field name="footer_miscellaneous_html">
|
||||
<argument name="data" xsi:type="array">
|
||||
<item name="config" xsi:type="array">
|
||||
<item name="rows" xsi:type="number">6</item>
|
||||
</item>
|
||||
</argument>
|
||||
</field>
|
||||
</fieldset>
|
||||
</form>
|
||||
@@ -0,0 +1,149 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
-->
|
||||
|
||||
<listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
|
||||
<argument name="data" xsi:type="array">
|
||||
<item name="js_config" xsi:type="array">
|
||||
<item name="provider" xsi:type="string">pr_cookie_category_listing.pr_cookie_category_listing_data_source</item>
|
||||
<item name="deps" xsi:type="string">pr_cookie_category_listing.pr_cookie_category_listing_data_source</item>
|
||||
</item>
|
||||
<item name="spinner" xsi:type="string">pr_cookie_category_listing_columns</item>
|
||||
<item name="acl" xsi:type="string">Plumrocket_CookieConsent::cookie_categories</item>
|
||||
<item name="buttons" xsi:type="array">
|
||||
<item name="add" xsi:type="array">
|
||||
<item name="name" xsi:type="string">add</item>
|
||||
<item name="label" xsi:type="string" translate="true">Add New Cookie Category</item>
|
||||
<item name="class" xsi:type="string">primary</item>
|
||||
<item name="url" xsi:type="string">*/*/new</item>
|
||||
</item>
|
||||
</item>
|
||||
</argument>
|
||||
<dataSource name="pr_cookie_category_listing_data_source">
|
||||
<argument name="dataProvider" xsi:type="configurableObject">
|
||||
<argument name="class" xsi:type="string">Plumrocket\CookieConsent\Ui\DataProvider\Cookie\Category\Listing\DataProvider</argument>
|
||||
<argument name="name" xsi:type="string">pr_cookie_category_listing_data_source</argument>
|
||||
<argument name="primaryFieldName" xsi:type="string">entity_id</argument>
|
||||
<argument name="requestFieldName" xsi:type="string">id</argument>
|
||||
<argument name="data" xsi:type="array">
|
||||
<item name="config" xsi:type="array">
|
||||
<item name="component" xsi:type="string">Magento_Ui/js/grid/provider</item>
|
||||
<item name="update_url" xsi:type="url" path="mui/index/render"/>
|
||||
<item name="storageConfig" xsi:type="array">
|
||||
<item name="indexField" xsi:type="string">entity_id</item>
|
||||
</item>
|
||||
</item>
|
||||
</argument>
|
||||
</argument>
|
||||
</dataSource>
|
||||
<listingToolbar name="listing_top">
|
||||
<argument name="data" xsi:type="array">
|
||||
<item name="config" xsi:type="array">
|
||||
<item name="sticky" xsi:type="boolean">false</item>
|
||||
</item>
|
||||
</argument>
|
||||
<bookmark name="bookmarks"/>
|
||||
<columnsControls name="columns_controls"/>
|
||||
<filters name="listing_filters">
|
||||
<argument name="data" xsi:type="array">
|
||||
<item name="config" xsi:type="array">
|
||||
<item name="templates" xsi:type="array">
|
||||
<item name="filters" xsi:type="array">
|
||||
<item name="select" xsi:type="array">
|
||||
<item name="component" xsi:type="string">Magento_Ui/js/form/element/ui-select</item>
|
||||
<item name="template" xsi:type="string">ui/grid/filters/elements/ui-select</item>
|
||||
</item>
|
||||
</item>
|
||||
</item>
|
||||
</item>
|
||||
</argument>
|
||||
</filters>
|
||||
<paging name="listing_paging"/>
|
||||
</listingToolbar>
|
||||
<columns name="pr_cookie_category_listing_columns" class="Magento\Ui\Component\Listing\Columns">
|
||||
<selectionsColumn name="ids">
|
||||
<argument name="data" xsi:type="array">
|
||||
<item name="config" xsi:type="array">
|
||||
<item name="resizeEnabled" xsi:type="boolean">false</item>
|
||||
<item name="resizeDefaultWidth" xsi:type="string">55</item>
|
||||
<item name="indexField" xsi:type="string">entity_id</item>
|
||||
</item>
|
||||
</argument>
|
||||
</selectionsColumn>
|
||||
|
||||
<column name="entity_id" sortOrder="10">
|
||||
<settings>
|
||||
<filter>textRange</filter>
|
||||
<label translate="true">ID</label>
|
||||
</settings>
|
||||
</column>
|
||||
|
||||
<column name="name" sortOrder="20">
|
||||
<settings>
|
||||
<addField>true</addField>
|
||||
<filter>text</filter>
|
||||
<label translate="true">Name</label>
|
||||
</settings>
|
||||
</column>
|
||||
|
||||
<column name="description" sortOrder="30">
|
||||
<settings>
|
||||
<addField>true</addField>
|
||||
<filter>text</filter>
|
||||
<label translate="true">Description</label>
|
||||
</settings>
|
||||
</column>
|
||||
|
||||
<column name="key" sortOrder="40">
|
||||
<settings>
|
||||
<addField>true</addField>
|
||||
<filter>text</filter>
|
||||
<label translate="true">Key</label>
|
||||
</settings>
|
||||
</column>
|
||||
|
||||
<column name="status" component="Magento_Ui/js/grid/columns/select" sortOrder="50">
|
||||
<settings>
|
||||
<options class="Plumrocket\CookieConsent\Model\Config\Source\CategoryStatus"/>
|
||||
<filter>select</filter>
|
||||
<dataType>select</dataType>
|
||||
<label translate="true">Status</label>
|
||||
</settings>
|
||||
</column>
|
||||
|
||||
<column name="is_essential" component="Magento_Ui/js/grid/columns/select" sortOrder="60">
|
||||
<settings>
|
||||
<options class="Magento\Config\Model\Config\Source\Yesno"/>
|
||||
<filter>select</filter>
|
||||
<dataType>select</dataType>
|
||||
<label translate="true">Is Essential</label>
|
||||
</settings>
|
||||
</column>
|
||||
|
||||
<actionsColumn name="actions" class="Plumrocket\CookieConsent\Ui\Component\Listing\Columns\Actions" sortOrder="100">
|
||||
<argument name="data" xsi:type="array">
|
||||
<item name="config" xsi:type="array">
|
||||
<item name="editUrlPath" xsi:type="string">pr_cookie/category/edit</item>
|
||||
</item>
|
||||
</argument>
|
||||
<settings>
|
||||
<indexField>id</indexField>
|
||||
</settings>
|
||||
</actionsColumn>
|
||||
</columns>
|
||||
</listing>
|
||||
@@ -0,0 +1,148 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
-->
|
||||
|
||||
<listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
|
||||
<argument name="data" xsi:type="array">
|
||||
<item name="js_config" xsi:type="array">
|
||||
<item name="provider" xsi:type="string">pr_cookie_consent_log_listing.pr_cookie_consent_log_listing_data_source</item>
|
||||
<item name="deps" xsi:type="string">pr_cookie_consent_log_listing.pr_cookie_consent_log_listing_data_source</item>
|
||||
</item>
|
||||
<item name="spinner" xsi:type="string">pr_cookie_consent_log_listing_columns</item>
|
||||
<item name="acl" xsi:type="string">Plumrocket_CookieConsent::consent_log</item>
|
||||
</argument>
|
||||
<dataSource name="pr_cookie_consent_log_listing_data_source">
|
||||
<argument name="dataProvider" xsi:type="configurableObject">
|
||||
<argument name="class" xsi:type="string">Magento\Framework\View\Element\UiComponent\DataProvider\DataProvider</argument>
|
||||
<argument name="name" xsi:type="string">pr_cookie_consent_log_listing_data_source</argument>
|
||||
<argument name="primaryFieldName" xsi:type="string">consent_id</argument>
|
||||
<argument name="requestFieldName" xsi:type="string">id</argument>
|
||||
<argument name="data" xsi:type="array">
|
||||
<item name="config" xsi:type="array">
|
||||
<item name="component" xsi:type="string">Magento_Ui/js/grid/provider</item>
|
||||
<item name="update_url" xsi:type="url" path="mui/index/render"/>
|
||||
<item name="storageConfig" xsi:type="array">
|
||||
<item name="indexField" xsi:type="string">consent_id</item>
|
||||
</item>
|
||||
</item>
|
||||
</argument>
|
||||
</argument>
|
||||
</dataSource>
|
||||
<listingToolbar name="listing_top">
|
||||
<argument name="data" xsi:type="array">
|
||||
<item name="config" xsi:type="array">
|
||||
<item name="sticky" xsi:type="boolean">false</item>
|
||||
</item>
|
||||
</argument>
|
||||
<bookmark name="bookmarks"/>
|
||||
<columnsControls name="columns_controls"/>
|
||||
<filters name="listing_filters">
|
||||
<argument name="data" xsi:type="array">
|
||||
<item name="config" xsi:type="array">
|
||||
<item name="templates" xsi:type="array">
|
||||
<item name="filters" xsi:type="array">
|
||||
<item name="select" xsi:type="array">
|
||||
<item name="component" xsi:type="string">Magento_Ui/js/form/element/ui-select</item>
|
||||
<item name="template" xsi:type="string">ui/grid/filters/elements/ui-select</item>
|
||||
</item>
|
||||
</item>
|
||||
</item>
|
||||
</item>
|
||||
</argument>
|
||||
</filters>
|
||||
<paging name="listing_paging"/>
|
||||
</listingToolbar>
|
||||
<columns name="pr_cookie_consent_log_listing_columns" class="Magento\Ui\Component\Listing\Columns">
|
||||
<column name="consent_id" sortOrder="10">
|
||||
<settings>
|
||||
<filter>textRange</filter>
|
||||
<label translate="true">ID</label>
|
||||
</settings>
|
||||
</column>
|
||||
<column name="customer_id" sortOrder="20">
|
||||
<settings>
|
||||
<filter>text</filter>
|
||||
<label translate="true">Customer Id</label>
|
||||
</settings>
|
||||
</column>
|
||||
<column name="customer_name" class="Plumrocket\CookieConsent\Ui\Component\Listing\Columns\Link">
|
||||
<argument name="data" xsi:type="array">
|
||||
<item name="config" xsi:type="array">
|
||||
<item name="filter" xsi:type="string">text</item>
|
||||
<item name="label" xsi:type="string" translate="true">Customer Name</item>
|
||||
<item name="visible" xsi:type="boolean">true</item>
|
||||
<item name="bodyTmpl" xsi:type="string">ui/grid/cells/html</item>
|
||||
<item name="href" xsi:type="array">
|
||||
<item name="path" xsi:type="string">customer/index/edit</item>
|
||||
<item name="identifier" xsi:type="string">id</item>
|
||||
<item name="source" xsi:type="string">customer_id</item>
|
||||
</item>
|
||||
<item name="title" xsi:type="array">
|
||||
<item name="source" xsi:type="string">customer_name</item>
|
||||
<item name="require" xsi:type="string">customer_exist</item>
|
||||
</item>
|
||||
</item>
|
||||
</argument>
|
||||
</column>
|
||||
<column name="merge_email">
|
||||
<settings>
|
||||
<filter>text</filter>
|
||||
<label translate="true">Email</label>
|
||||
</settings>
|
||||
</column>
|
||||
<column name="website">
|
||||
<settings>
|
||||
<filter>text</filter>
|
||||
<label translate="true">Website</label>
|
||||
</settings>
|
||||
</column>
|
||||
<column name="settings" class="Plumrocket\CookieConsent\Ui\Component\Listing\Columns\Settings">
|
||||
<settings>
|
||||
<label translate="true">Settings</label>
|
||||
<bodyTmpl>ui/grid/cells/html</bodyTmpl>
|
||||
<sortable>false</sortable>
|
||||
</settings>
|
||||
</column>
|
||||
<column name="created_at" class="Magento\Ui\Component\Listing\Columns\Date" component="Magento_Ui/js/grid/columns/date">
|
||||
<settings>
|
||||
<filter>dateRange</filter>
|
||||
<dataType>date</dataType>
|
||||
<sorting>desc</sorting>
|
||||
<label translate="true">Date of Consent</label>
|
||||
</settings>
|
||||
</column>
|
||||
<column name="url">
|
||||
<settings>
|
||||
<filter>text</filter>
|
||||
<label translate="true">Url</label>
|
||||
</settings>
|
||||
</column>
|
||||
<column name="ip_address">
|
||||
<settings>
|
||||
<filter>text</filter>
|
||||
<label translate="true">IP Address</label>
|
||||
</settings>
|
||||
</column>
|
||||
<column name="user_agent">
|
||||
<settings>
|
||||
<filter>text</filter>
|
||||
<label translate="true">User Agent</label>
|
||||
</settings>
|
||||
</column>
|
||||
</columns>
|
||||
</listing>
|
||||
@@ -0,0 +1,104 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
-->
|
||||
|
||||
<form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
|
||||
<argument name="data" xsi:type="array">
|
||||
<item name="js_config" xsi:type="array">
|
||||
<item name="provider" xsi:type="string">pr_cookie_item_form.pr_cookie_item_form_data_source</item>
|
||||
<item name="deps" xsi:type="string">pr_cookie_item_form.pr_cookie_item_form_data_source</item>
|
||||
</item>
|
||||
<item name="label" xsi:type="string" translate="true">Cookie Category</item>
|
||||
<item name="template" xsi:type="string">templates/form/collapsible</item>
|
||||
<item name="config" xsi:type="array">
|
||||
<item name="dataScope" xsi:type="string">data</item>
|
||||
<item name="namespace" xsi:type="string">pr_cookie_item_form</item>
|
||||
</item>
|
||||
</argument>
|
||||
<settings>
|
||||
<buttons>
|
||||
<button name="save" class="Plumrocket\CookieConsent\Block\Adminhtml\Cookie\Item\Edit\Button\Save"/>
|
||||
<button name="delete" class="Plumrocket\CookieConsent\Block\Adminhtml\Cookie\Item\Edit\Button\Delete"/>
|
||||
<button name="back" class="Plumrocket\CookieConsent\Block\Adminhtml\Cookie\Item\Edit\Button\Back"/>
|
||||
</buttons>
|
||||
</settings>
|
||||
<dataSource name="pr_cookie_item_form_data_source">
|
||||
<argument name="data" xsi:type="array">
|
||||
<item name="js_config" xsi:type="array">
|
||||
<item name="component" xsi:type="string">Magento_Ui/js/form/provider</item>
|
||||
</item>
|
||||
</argument>
|
||||
<argument name="dataProvider" xsi:type="configurableObject">
|
||||
<argument name="class" xsi:type="string">Plumrocket\CookieConsent\Ui\DataProvider\Cookie\Item\Form\DataProvider</argument>
|
||||
<argument name="name" xsi:type="string">pr_cookie_item_form_data_source</argument>
|
||||
<argument name="primaryFieldName" xsi:type="string">entity_id</argument>
|
||||
<argument name="requestFieldName" xsi:type="string">id</argument>
|
||||
</argument>
|
||||
</dataSource>
|
||||
<fieldset name="general">
|
||||
<argument name="data" xsi:type="array">
|
||||
<item name="config" xsi:type="array">
|
||||
<item name="label" xsi:type="string"/>
|
||||
</item>
|
||||
</argument>
|
||||
|
||||
<field name="entity_id" sortOrder="0" formElement="input">
|
||||
<argument name="data" xsi:type="array">
|
||||
<item name="config" xsi:type="array">
|
||||
<item name="visible" xsi:type="boolean">false</item>
|
||||
<item name="dataType" xsi:type="string">text</item>
|
||||
<item name="source" xsi:type="string">cookie_item</item>
|
||||
<item name="dataScope" xsi:type="string">entity_id</item>
|
||||
</item>
|
||||
</argument>
|
||||
</field>
|
||||
|
||||
<field name="type" component="Plumrocket_CookieConsent/js/form/element/cookie-type-depended-select"/>
|
||||
|
||||
<container name="duration_group" component="Magento_Ui/js/form/components/group">
|
||||
<argument name="data" xsi:type="array">
|
||||
<item name="type" xsi:type="string">group</item>
|
||||
<item name="config" xsi:type="array">
|
||||
<item name="additionalClasses" xsi:type="string">admin__control-grouped</item>
|
||||
<item name="breakLine" xsi:type="boolean">false</item>
|
||||
</item>
|
||||
</argument>
|
||||
<field name="duration">
|
||||
<settings>
|
||||
<additionalClasses>
|
||||
<class name="admin__field-small">true</class>
|
||||
</additionalClasses>
|
||||
</settings>
|
||||
</field>
|
||||
<field name="duration-period" formElement="select">
|
||||
<settings>
|
||||
<additionalClasses>
|
||||
<class name="admin__field-small">true</class>
|
||||
</additionalClasses>
|
||||
</settings>
|
||||
<formElements>
|
||||
<select>
|
||||
<settings>
|
||||
<options class="Plumrocket\CookieConsent\Model\Cookie\Attribute\DurationDecorator"/>
|
||||
</settings>
|
||||
</select>
|
||||
</formElements>
|
||||
</field>
|
||||
</container>
|
||||
</fieldset>
|
||||
</form>
|
||||
@@ -0,0 +1,160 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
-->
|
||||
|
||||
<listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
|
||||
<argument name="data" xsi:type="array">
|
||||
<item name="js_config" xsi:type="array">
|
||||
<item name="provider" xsi:type="string">pr_cookie_item_listing.pr_cookie_item_listing_data_source</item>
|
||||
<item name="deps" xsi:type="string">pr_cookie_item_listing.pr_cookie_item_listing_data_source</item>
|
||||
</item>
|
||||
<item name="spinner" xsi:type="string">pr_cookie_item_listing_columns</item>
|
||||
<item name="acl" xsi:type="string">Plumrocket_CookieConsent::cookies</item>
|
||||
<item name="buttons" xsi:type="array">
|
||||
<item name="add" xsi:type="array">
|
||||
<item name="name" xsi:type="string">add</item>
|
||||
<item name="label" xsi:type="string" translate="true">Add Cookie</item>
|
||||
<item name="class" xsi:type="string">primary</item>
|
||||
<item name="url" xsi:type="string">*/*/new</item>
|
||||
</item>
|
||||
</item>
|
||||
</argument>
|
||||
<dataSource name="pr_cookie_item_listing_data_source">
|
||||
<argument name="dataProvider" xsi:type="configurableObject">
|
||||
<argument name="class" xsi:type="string">Plumrocket\CookieConsent\Ui\DataProvider\Cookie\Item\Listing\DataProvider</argument>
|
||||
<argument name="name" xsi:type="string">pr_cookie_item_listing_data_source</argument>
|
||||
<argument name="primaryFieldName" xsi:type="string">entity_id</argument>
|
||||
<argument name="requestFieldName" xsi:type="string">id</argument>
|
||||
<argument name="data" xsi:type="array">
|
||||
<item name="config" xsi:type="array">
|
||||
<item name="component" xsi:type="string">Magento_Ui/js/grid/provider</item>
|
||||
<item name="update_url" xsi:type="url" path="mui/index/render"/>
|
||||
<item name="storageConfig" xsi:type="array">
|
||||
<item name="indexField" xsi:type="string">entity_id</item>
|
||||
</item>
|
||||
</item>
|
||||
</argument>
|
||||
</argument>
|
||||
</dataSource>
|
||||
<listingToolbar name="listing_top">
|
||||
<argument name="data" xsi:type="array">
|
||||
<item name="config" xsi:type="array">
|
||||
<item name="sticky" xsi:type="boolean">false</item>
|
||||
</item>
|
||||
</argument>
|
||||
<bookmark name="bookmarks"/>
|
||||
<columnsControls name="columns_controls"/>
|
||||
<filters name="listing_filters">
|
||||
<argument name="data" xsi:type="array">
|
||||
<item name="config" xsi:type="array">
|
||||
<item name="templates" xsi:type="array">
|
||||
<item name="filters" xsi:type="array">
|
||||
<item name="select" xsi:type="array">
|
||||
<item name="component" xsi:type="string">Magento_Ui/js/form/element/ui-select</item>
|
||||
<item name="template" xsi:type="string">ui/grid/filters/elements/ui-select</item>
|
||||
</item>
|
||||
</item>
|
||||
</item>
|
||||
</item>
|
||||
</argument>
|
||||
</filters>
|
||||
<massaction name="listing_massaction">
|
||||
<action name="delete">
|
||||
<settings>
|
||||
<confirm>
|
||||
<message translate="true">Are you sure you want to delete selected cookies?</message>
|
||||
<title translate="true">Delete cookies</title>
|
||||
</confirm>
|
||||
<url path="*/*/massDelete"/>
|
||||
<type>delete</type>
|
||||
<label translate="true">Delete</label>
|
||||
</settings>
|
||||
</action>
|
||||
</massaction>
|
||||
<paging name="listing_paging"/>
|
||||
</listingToolbar>
|
||||
<columns name="pr_cookie_item_listing_columns" class="Magento\Ui\Component\Listing\Columns">
|
||||
<selectionsColumn name="ids">
|
||||
<argument name="data" xsi:type="array">
|
||||
<item name="config" xsi:type="array">
|
||||
<item name="resizeEnabled" xsi:type="boolean">false</item>
|
||||
<item name="resizeDefaultWidth" xsi:type="string">55</item>
|
||||
<item name="indexField" xsi:type="string">entity_id</item>
|
||||
</item>
|
||||
</argument>
|
||||
</selectionsColumn>
|
||||
|
||||
<column name="entity_id" sortOrder="10">
|
||||
<settings>
|
||||
<filter>textRange</filter>
|
||||
<label translate="true">ID</label>
|
||||
</settings>
|
||||
</column>
|
||||
|
||||
<column name="name" sortOrder="20">
|
||||
<settings>
|
||||
<addField>true</addField>
|
||||
<filter>text</filter>
|
||||
<label translate="true">Name</label>
|
||||
</settings>
|
||||
</column>
|
||||
|
||||
<column name="domain_label" sortOrder="30">
|
||||
<settings>
|
||||
<addField>true</addField>
|
||||
<label translate="true">Domain</label>
|
||||
</settings>
|
||||
</column>
|
||||
|
||||
<column name="duration" class="Plumrocket\CookieConsent\Ui\Component\Listing\Columns\Duration" sortOrder="40">
|
||||
<settings>
|
||||
<addField>true</addField>
|
||||
<label translate="true">Duration</label>
|
||||
</settings>
|
||||
</column>
|
||||
|
||||
<column name="type" component="Magento_Ui/js/grid/columns/select" sortOrder="50">
|
||||
<settings>
|
||||
<options class="Plumrocket\CookieConsent\Model\Cookie\Attribute\Source\Type"/>
|
||||
<filter>select</filter>
|
||||
<dataType>select</dataType>
|
||||
<label translate="true">Type</label>
|
||||
</settings>
|
||||
</column>
|
||||
|
||||
<column name="category_key" component="Magento_Ui/js/grid/columns/select" sortOrder="60">
|
||||
<settings>
|
||||
<options class="Plumrocket\CookieConsent\Model\Cookie\Attribute\Source\CategoryKey"/>
|
||||
<filter>select</filter>
|
||||
<dataType>select</dataType>
|
||||
<label translate="true">Category</label>
|
||||
</settings>
|
||||
</column>
|
||||
|
||||
<actionsColumn name="actions" class="Plumrocket\CookieConsent\Ui\Component\Listing\Columns\Actions" sortOrder="100">
|
||||
<argument name="data" xsi:type="array">
|
||||
<item name="config" xsi:type="array">
|
||||
<item name="editUrlPath" xsi:type="string">pr_cookie/item/edit</item>
|
||||
</item>
|
||||
</argument>
|
||||
<settings>
|
||||
<indexField>id</indexField>
|
||||
</settings>
|
||||
</actionsColumn>
|
||||
</columns>
|
||||
</listing>
|
||||
@@ -0,0 +1,467 @@
|
||||
/*!
|
||||
Chosen, a Select Box Enhancer for jQuery and Prototype
|
||||
by Patrick Filler for Harvest, http://getharvest.com
|
||||
|
||||
Version 1.8.7
|
||||
Full source at https://github.com/harvesthq/chosen
|
||||
Copyright (c) 2011-2018 Harvest http://getharvest.com
|
||||
|
||||
MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
|
||||
This file is generated by `grunt build`, do not edit it by hand.
|
||||
*/
|
||||
.chosen-container {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
font-size: 13px;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none
|
||||
}
|
||||
|
||||
.chosen-container * {
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box
|
||||
}
|
||||
|
||||
.chosen-container .chosen-drop {
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
z-index: 1010;
|
||||
width: 100%;
|
||||
-webkit-box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
|
||||
clip: rect(0, 0, 0, 0);
|
||||
-webkit-clip-path: inset(100% 100%);
|
||||
clip-path: inset(100% 100%);
|
||||
|
||||
background-color: #ffffff;
|
||||
border: 1px solid #007bdb;
|
||||
border-radius: 1px;
|
||||
box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
|
||||
color: #41362f;
|
||||
font-weight: 400;
|
||||
left: 0;
|
||||
list-style: none;
|
||||
margin: 2px 0 0;
|
||||
min-width: 0;
|
||||
padding: 0;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.chosen-container.chosen-with-drop .chosen-drop {
|
||||
clip: auto;
|
||||
-webkit-clip-path: none;
|
||||
clip-path: none
|
||||
}
|
||||
|
||||
.chosen-container a {
|
||||
cursor: pointer
|
||||
}
|
||||
|
||||
.chosen-container .chosen-single .group-name, .chosen-container .search-choice .group-name {
|
||||
margin-right: 4px;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
font-weight: 400;
|
||||
color: #999
|
||||
}
|
||||
|
||||
.chosen-container .chosen-single .group-name:after, .chosen-container .search-choice .group-name:after {
|
||||
content: ":";
|
||||
padding-left: 2px;
|
||||
vertical-align: top
|
||||
}
|
||||
|
||||
.chosen-container-single .chosen-single {
|
||||
position: relative;
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
padding: 0 0 0 8px;
|
||||
height: 25px;
|
||||
border: 1px solid #aaa;
|
||||
border-radius: 5px;
|
||||
background-color: #fff;
|
||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(20%, #fff), color-stop(50%, #f6f6f6), color-stop(52%, #eee), to(#f4f4f4));
|
||||
background: linear-gradient(#fff 20%, #f6f6f6 50%, #eee 52%, #f4f4f4 100%);
|
||||
background-clip: padding-box;
|
||||
-webkit-box-shadow: 0 0 3px #fff inset, 0 1px 1px rgba(0, 0, 0, .1);
|
||||
box-shadow: 0 0 3px #fff inset, 0 1px 1px rgba(0, 0, 0, .1);
|
||||
color: #444;
|
||||
text-decoration: none;
|
||||
white-space: nowrap;
|
||||
line-height: 24px
|
||||
}
|
||||
|
||||
.chosen-container-single .chosen-default {
|
||||
color: #999
|
||||
}
|
||||
|
||||
.chosen-container-single .chosen-single span {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
margin-right: 26px;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap
|
||||
}
|
||||
|
||||
.chosen-container-single .chosen-single-with-deselect span {
|
||||
margin-right: 38px
|
||||
}
|
||||
|
||||
.chosen-container-single .chosen-single abbr {
|
||||
position: absolute;
|
||||
top: 6px;
|
||||
right: 26px;
|
||||
display: block;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
background: url(../images/chosen-sprite.png) -42px 1px no-repeat;
|
||||
font-size: 1px
|
||||
}
|
||||
|
||||
.chosen-container-single .chosen-single abbr:hover {
|
||||
background-position: -42px -10px
|
||||
}
|
||||
|
||||
.chosen-container-single.chosen-disabled .chosen-single abbr:hover {
|
||||
background-position: -42px -10px
|
||||
}
|
||||
|
||||
.chosen-container-single .chosen-single div {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
display: block;
|
||||
width: 18px;
|
||||
height: 100%
|
||||
}
|
||||
|
||||
.chosen-container-single .chosen-single div b {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: url(../images/chosen-sprite.png) no-repeat 0 2px
|
||||
}
|
||||
|
||||
.chosen-container-single .chosen-search {
|
||||
position: relative;
|
||||
z-index: 1010;
|
||||
margin: 0;
|
||||
padding: 3px 4px;
|
||||
white-space: nowrap
|
||||
}
|
||||
|
||||
.chosen-container-single .chosen-search input[type=text] {
|
||||
margin: 1px 0;
|
||||
padding: 4px 20px 4px 5px;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
outline: 0;
|
||||
border: 1px solid #aaa;
|
||||
background: url(../images/chosen-sprite.png) no-repeat 100% -20px;
|
||||
font-size: 1em;
|
||||
font-family: sans-serif;
|
||||
line-height: normal;
|
||||
border-radius: 0
|
||||
}
|
||||
|
||||
.chosen-container-single .chosen-drop {
|
||||
margin-top: -1px;
|
||||
border-radius: 0 0 4px 4px;
|
||||
background-clip: padding-box
|
||||
}
|
||||
|
||||
.chosen-container-single.chosen-container-single-nosearch .chosen-search {
|
||||
position: absolute;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
-webkit-clip-path: inset(100% 100%);
|
||||
clip-path: inset(100% 100%)
|
||||
}
|
||||
|
||||
.chosen-container .chosen-results {
|
||||
color: #444;
|
||||
position: relative;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
margin: 0 4px 4px 0;
|
||||
padding: 0 0 0 4px;
|
||||
max-height: 240px;
|
||||
-webkit-overflow-scrolling: touch
|
||||
}
|
||||
|
||||
.chosen-container .chosen-results li {
|
||||
display: none;
|
||||
margin: 0;
|
||||
padding: 5px 6px;
|
||||
list-style: none;
|
||||
line-height: 15px;
|
||||
word-wrap: break-word;
|
||||
-webkit-touch-callout: none
|
||||
}
|
||||
|
||||
.chosen-container .chosen-results li.active-result {
|
||||
display: list-item;
|
||||
cursor: pointer
|
||||
}
|
||||
|
||||
.chosen-container .chosen-results li.disabled-result {
|
||||
display: list-item;
|
||||
color: #ccc;
|
||||
cursor: default
|
||||
}
|
||||
|
||||
.chosen-container .chosen-results li.highlighted {
|
||||
background-image: linear-gradient(#e3e3e3 20%, #e3e3e3 90%);
|
||||
background-color: #e3e3e3;
|
||||
}
|
||||
|
||||
.chosen-container .chosen-results li.no-results {
|
||||
color: #777;
|
||||
display: list-item;
|
||||
background: #f4f4f4
|
||||
}
|
||||
|
||||
.chosen-container .chosen-results li.group-result {
|
||||
display: list-item;
|
||||
font-weight: 700;
|
||||
cursor: default
|
||||
}
|
||||
|
||||
.chosen-container .chosen-results li {
|
||||
padding: .6875em 1em;
|
||||
}
|
||||
|
||||
.chosen-container .chosen-results li em {
|
||||
font-style: normal;
|
||||
text-decoration: underline
|
||||
}
|
||||
|
||||
.chosen-container-multi .chosen-choices {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
border: 1px solid #aaa;
|
||||
background-color: #fff;
|
||||
cursor: text
|
||||
}
|
||||
|
||||
.chosen-container-multi .chosen-choices li {
|
||||
float: left;
|
||||
list-style: none
|
||||
}
|
||||
|
||||
.chosen-container-multi .chosen-choices li.search-field {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
white-space: nowrap
|
||||
}
|
||||
|
||||
.chosen-container-multi .chosen-choices li.search-field input[type=text] {
|
||||
margin: 1px 0;
|
||||
height: 25px;
|
||||
outline: 0;
|
||||
border: 0 !important;
|
||||
background: 0 0 !important;
|
||||
-webkit-box-shadow: none;
|
||||
box-shadow: none;
|
||||
color: #999;
|
||||
font-size: 100%;
|
||||
font-family: sans-serif;
|
||||
line-height: normal;
|
||||
border-radius: 0;
|
||||
width: 25px
|
||||
}
|
||||
|
||||
.chosen-container-multi .chosen-choices li.search-choice,
|
||||
.chosen-container-multi .chosen-choices li.search-choice-disabled {
|
||||
background-color: #f5f5f5;
|
||||
border: 1px solid #a79d95;
|
||||
border-radius: 1px;
|
||||
display: inline-block;
|
||||
font-size: 1.2rem;
|
||||
margin: 0.3rem;
|
||||
padding: 0.3rem 2.4rem 0.4rem 1rem;
|
||||
position: relative;
|
||||
transition: border-color 0.1s linear;
|
||||
}
|
||||
|
||||
.chosen-container-multi .chosen-choices li.search-choice span {
|
||||
word-wrap: break-word
|
||||
}
|
||||
|
||||
.chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
|
||||
bottom: 0;
|
||||
font-size: .5em;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
width: 2rem;
|
||||
display: inline-block;
|
||||
padding: 0.6rem 1em 0.6rem;
|
||||
text-align: center;
|
||||
vertical-align: baseline;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
font-family: 'Admin Icons', sans-serif;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
speak: none;
|
||||
color: #514943;
|
||||
text-decoration: none;
|
||||
|
||||
}
|
||||
.chosen-container-multi .chosen-choices li.search-choice .search-choice-close:before {
|
||||
content: '\e62f';
|
||||
transition: color 0.1s linear;
|
||||
}
|
||||
|
||||
.chosen-container-multi .chosen-choices li.search-choice-disabled {
|
||||
padding-right: 1rem;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.chosen-container-multi .chosen-choices li.search-choice-focus {
|
||||
background: #d4d4d4
|
||||
}
|
||||
|
||||
.chosen-container-multi .chosen-choices li.search-choice-focus .search-choice-close {
|
||||
background-position: -42px -10px
|
||||
}
|
||||
|
||||
.chosen-container-multi .chosen-results {
|
||||
margin: 0;
|
||||
padding: 0
|
||||
}
|
||||
|
||||
.chosen-container-multi .chosen-drop .result-selected {
|
||||
display: list-item;
|
||||
background-color: #e0f6fe;
|
||||
cursor: default
|
||||
}
|
||||
|
||||
.chosen-container-active .chosen-single {
|
||||
border-color: #007bdb;
|
||||
}
|
||||
|
||||
.chosen-container-active.chosen-with-drop .chosen-single {
|
||||
border: 1px solid #aaa;
|
||||
border-bottom-right-radius: 0;
|
||||
border-bottom-left-radius: 0;
|
||||
}
|
||||
|
||||
.chosen-container-active.chosen-with-drop .chosen-single div {
|
||||
border-left: none;
|
||||
background: 0 0
|
||||
}
|
||||
|
||||
.chosen-container-active.chosen-with-drop .chosen-single div b {
|
||||
background-position: -18px 2px
|
||||
}
|
||||
|
||||
.chosen-container-active .chosen-choices {
|
||||
border-color: #007bdb;
|
||||
}
|
||||
|
||||
.chosen-container-active .chosen-choices li.search-field input[type=text] {
|
||||
color: #222 !important
|
||||
}
|
||||
|
||||
.chosen-disabled {
|
||||
opacity: .5 !important;
|
||||
cursor: default
|
||||
}
|
||||
|
||||
.chosen-disabled .chosen-single {
|
||||
cursor: default
|
||||
}
|
||||
|
||||
.chosen-disabled .chosen-choices .search-choice .search-choice-close {
|
||||
cursor: default
|
||||
}
|
||||
|
||||
.chosen-rtl {
|
||||
text-align: right
|
||||
}
|
||||
|
||||
.chosen-rtl .chosen-single {
|
||||
overflow: visible;
|
||||
padding: 0 8px 0 0
|
||||
}
|
||||
|
||||
.chosen-rtl .chosen-single span {
|
||||
margin-right: 0;
|
||||
margin-left: 26px;
|
||||
direction: rtl
|
||||
}
|
||||
|
||||
.chosen-rtl .chosen-single-with-deselect span {
|
||||
margin-left: 38px
|
||||
}
|
||||
|
||||
.chosen-rtl .chosen-single div {
|
||||
right: auto;
|
||||
left: 3px
|
||||
}
|
||||
|
||||
.chosen-rtl .chosen-single abbr {
|
||||
right: auto;
|
||||
left: 26px
|
||||
}
|
||||
|
||||
.chosen-rtl .chosen-choices li {
|
||||
float: right
|
||||
}
|
||||
|
||||
.chosen-rtl .chosen-choices li.search-field input[type=text] {
|
||||
direction: rtl
|
||||
}
|
||||
|
||||
.chosen-rtl .chosen-choices li.search-choice {
|
||||
margin: 3px 5px 3px 0;
|
||||
padding: 3px 5px 3px 19px
|
||||
}
|
||||
|
||||
.chosen-rtl .chosen-choices li.search-choice .search-choice-close {
|
||||
right: auto;
|
||||
left: 4px
|
||||
}
|
||||
|
||||
.chosen-rtl.chosen-container-single .chosen-results {
|
||||
margin: 0 0 4px 4px;
|
||||
padding: 0 4px 0 0
|
||||
}
|
||||
|
||||
.chosen-rtl .chosen-results li.group-option {
|
||||
padding-right: 15px;
|
||||
padding-left: 0
|
||||
}
|
||||
|
||||
.chosen-rtl.chosen-container-active.chosen-with-drop .chosen-single div {
|
||||
border-right: none
|
||||
}
|
||||
|
||||
.chosen-rtl .chosen-search input[type=text] {
|
||||
padding: 4px 5px 4px 20px;
|
||||
background: url(../images/chosen-sprite.png) no-repeat -30px -20px;
|
||||
direction: rtl
|
||||
}
|
||||
|
||||
.chosen-rtl.chosen-container-single .chosen-single div b {
|
||||
background-position: 6px 2px
|
||||
}
|
||||
|
||||
.chosen-rtl.chosen-container-single.chosen-with-drop .chosen-single div b {
|
||||
background-position: -12px 2px
|
||||
}
|
||||
|
||||
@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 144dpi), only screen and (min-resolution: 1.5dppx) {
|
||||
.chosen-container .chosen-results-scroll-down span, .chosen-container .chosen-results-scroll-up span, .chosen-container-multi .chosen-choices .search-choice .search-choice-close, .chosen-container-single .chosen-search input[type=text], .chosen-container-single .chosen-single abbr, .chosen-container-single .chosen-single div b, .chosen-rtl .chosen-search input[type=text] {
|
||||
background-image: url(../images/chosen-sprite@2x.png) !important;
|
||||
background-size: 52px 37px !important;
|
||||
background-repeat: no-repeat !important
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
.admin__field[data-index="duration"] .admin__field-note {
|
||||
width: 42vw;
|
||||
}
|
||||
@@ -0,0 +1,157 @@
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
|
||||
#row_pr_cookie_main_settings_states_geo_targeting > td.value > div:nth-child(1),
|
||||
#row_pr_cookie_main_settings_geo_targeting > td.value > div:nth-child(1) {
|
||||
margin-top: 0 !important;
|
||||
}
|
||||
|
||||
#pr_cookie_integrations .section-config:has(.upgrade-to-pro) .entry-edit-head a{
|
||||
color: #727272;
|
||||
}
|
||||
|
||||
/* Notice */
|
||||
|
||||
|
||||
.pr_notice--note .pr-cookie .pr-notice__content:before{
|
||||
content: none;
|
||||
}
|
||||
|
||||
.pr-cookie-notice-intro{
|
||||
position: relative;
|
||||
margin-left: -5.5rem;
|
||||
margin-bottom: 30px;
|
||||
padding-left: 5.5rem;
|
||||
}
|
||||
|
||||
.pr-cookie-notice-intro:before{
|
||||
color: #007bdb;
|
||||
content: '\e61a';
|
||||
background: none;
|
||||
border: 0;
|
||||
font-family: 'Admin Icons';
|
||||
font-size: 1.9rem;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
height: auto;
|
||||
left: 1.9rem;
|
||||
line-height: inherit;
|
||||
position: absolute;
|
||||
speak: none;
|
||||
text-shadow: none;
|
||||
top: 50%;
|
||||
margin-top: -1.25rem;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.pr-cookie .pr-update-to-pro-btn{
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
text-decoration: none;
|
||||
padding: 10px;
|
||||
font: 500 14px / 1.2 'Roboto', sans-serif;
|
||||
background: #009BFF;
|
||||
color: #fff;
|
||||
position: relative;
|
||||
border-radius: 4px;
|
||||
max-width: 100%;
|
||||
min-height: 40px;
|
||||
transition: box-shadow .3s ease;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.pr-button:hover{
|
||||
box-shadow: 0 3px 8px -3px #24649d;
|
||||
}
|
||||
|
||||
.pr-cookie-notice-details{
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.pr-cookie-notice-accordion-title{
|
||||
color: #007bdb;
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
padding-left: 20px;
|
||||
user-select: none;
|
||||
border-bottom: 1px solid #007bdb;
|
||||
}
|
||||
|
||||
.pr-cookie-notice-accordion-title:hover{
|
||||
border-color: transparent;
|
||||
}
|
||||
|
||||
.pr-cookie-notice-accordion-title:before{
|
||||
content: '^';
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 50%;
|
||||
transform: translateY(-50%) rotate(180deg);
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.pr-cookie-notice-accordion[open] .pr-cookie-notice-accordion-title:before{
|
||||
transform: translateY(-50%) rotate(0);
|
||||
}
|
||||
|
||||
.pr-cookie-notice-accordion-body{
|
||||
padding-top: 20px;
|
||||
margin-left: 30px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.pr-cookie-notice-accordion-body ul,
|
||||
.pr-cookie-notice-accordion-body ol{
|
||||
margin-left: 30px;
|
||||
}
|
||||
|
||||
.pr-cookie-notice-accordion-body li{
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.pr-cookie-notice-accordion .admin__field-tooltip{
|
||||
margin-top: 0;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.pr-cookie-notice-accordion .admin__field-tooltip-content{
|
||||
min-width: 32rem;
|
||||
width: auto;
|
||||
right: -5rem;
|
||||
background: transparent;
|
||||
border-radius: 10px;
|
||||
border: none;
|
||||
box-shadow: -10px 12px 26px 0 rgba(0, 0, 0, 0.10);
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.pr-cookie-notice-accordion .admin__field-tooltip-content img{
|
||||
max-width: none;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.pr-cookie-notice-accordion .admin__field-tooltip .admin__field-tooltip-content:before{
|
||||
border-top-color: #F2F2F2;
|
||||
}
|
||||
|
||||
.pr-cookie-notice-accordion .admin__field-tooltip .admin__field-tooltip-content:after{
|
||||
border-top-color: #fff;
|
||||
}
|
||||
|
After Width: | Height: | Size: 78 KiB |
|
After Width: | Height: | Size: 538 B |
|
After Width: | Height: | Size: 738 B |
|
After Width: | Height: | Size: 33 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 46 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 29 KiB |
|
After Width: | Height: | Size: 7.3 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 40 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 30 KiB |
@@ -0,0 +1,80 @@
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
|
||||
define(['uiRegistry', 'Magento_Ui/js/form/element/select'], function (uiRegistry, select) {
|
||||
'use strict';
|
||||
return select.extend({
|
||||
initialize: function () {
|
||||
var type = this._super().initialValue;
|
||||
this.onComponentLoad('index = domain', function (component) {
|
||||
if ('first' === type) {
|
||||
component.hide();
|
||||
} else {
|
||||
component.show();
|
||||
}
|
||||
});
|
||||
return this;
|
||||
},
|
||||
|
||||
/**
|
||||
* On value change handler.
|
||||
*
|
||||
* @param {String} type
|
||||
*/
|
||||
onUpdate: function (type) {
|
||||
var domainField = uiRegistry.get('index = domain');
|
||||
if ('first' === type) {
|
||||
domainField.hide();
|
||||
} else {
|
||||
domainField.show();
|
||||
}
|
||||
return this._super();
|
||||
},
|
||||
|
||||
/**
|
||||
* Fix for async loading.
|
||||
*
|
||||
* As components don't have sort order for loading,
|
||||
* we need to interact with another component via load callback.
|
||||
*
|
||||
* @param {String} query
|
||||
* @param {function} callback
|
||||
*/
|
||||
onComponentLoad: function (query, callback) {
|
||||
let waitIteration = 0;
|
||||
var domainField = uiRegistry.get(query);
|
||||
|
||||
if (domainField) {
|
||||
callback(domainField);
|
||||
return;
|
||||
}
|
||||
|
||||
let interval = setInterval(function () {
|
||||
domainField = uiRegistry.get(query);
|
||||
if (domainField) {
|
||||
callback(domainField);
|
||||
clearInterval(interval);
|
||||
return;
|
||||
}
|
||||
if (waitIteration === 4) {
|
||||
clearInterval(interval);
|
||||
return;
|
||||
}
|
||||
waitIteration++;
|
||||
}, 250);
|
||||
},
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* 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_Extension
|
||||
* @copyright Copyright (c) 2026 Plumrocket Inc. (http://www.plumrocket.com)
|
||||
* @license http://wiki.plumrocket.net/wiki/EULA End-user License Agreement
|
||||
*/
|
||||
|
||||
var __prinitparam = 'MzM5Njkw';
|
||||
@@ -0,0 +1,191 @@
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
|
||||
require([
|
||||
'jquery',
|
||||
'mage/translate',
|
||||
'Plumrocket_CookieConsent/js/chosen.jquery.min',
|
||||
'domReady!'
|
||||
], function ($, __) {
|
||||
'use strict';
|
||||
|
||||
/* enable chosen */
|
||||
setTimeout(function () {
|
||||
/* Scope. */$('#pr_cookie_main_settings_geo_targeting_inherit:checked').click().click();
|
||||
|
||||
initializeGeoIPSelects();
|
||||
}, 2000);
|
||||
|
||||
/* fix for chosen in not expanded section */
|
||||
$('#pr_cookie_main_settings-head').on('click', function () {
|
||||
reinitializeGeoIPSelect(document.getElementById('pr_cookie_main_settings_geo_targeting'));
|
||||
});
|
||||
|
||||
$('#pr_cookie_main_settings_geo_targeting_inherit').on('click', function () {
|
||||
reinitializeGeoIPSelect(document.getElementById('pr_cookie_main_settings_geo_targeting'));
|
||||
});
|
||||
|
||||
/* Registry for all selects with class geoip-select-with-chosen */
|
||||
window.initializedSelects = [];
|
||||
|
||||
function initializeGeoIPSelects()
|
||||
{
|
||||
var selects = getGeoIPSelects();
|
||||
|
||||
selects.forEach(function (select) {
|
||||
if (! isInitializedGeoIPSelect(select)) {
|
||||
initializeGeoIPSelect(select);
|
||||
initializeGeoIPOptionDepends(select);
|
||||
|
||||
if (!$(select).hasClass('prgdpr-coutry')) {
|
||||
geoIpFieldsDepend($(select));
|
||||
|
||||
var id = $(select).attr('id');
|
||||
$(select).parent().prepend('<div style="font-weight: 600; margin-bottom: 10px;" id="ccpa-html-wrap"></div>');
|
||||
$('#ccpa-html-wrap').append($('[for="' + id + '"]'));
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function geoIpFieldsDepend(select)
|
||||
{
|
||||
var geoTargeting = $('.prgdpr-coutry'), values, toggle = function () {
|
||||
values = $(geoTargeting).val();
|
||||
if (values) {
|
||||
values.forEach(function (element) {
|
||||
if (element === 'US') {
|
||||
select.parent().parent().show();
|
||||
} else {
|
||||
select.parent().parent().hide();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
select.parent().parent().hide();
|
||||
}
|
||||
};
|
||||
|
||||
toggle(); /* Auto states toggle when page loaded */
|
||||
|
||||
/* If we change Geo Targeting field */
|
||||
geoTargeting.change(function () {
|
||||
toggle();
|
||||
});
|
||||
}
|
||||
|
||||
function getGeoIPSelects()
|
||||
{
|
||||
var result = $('select.geoip-select-with-chosen');
|
||||
|
||||
return result.length ? result.toArray() : [];
|
||||
}
|
||||
|
||||
function initializeGeoIPSelect(select)
|
||||
{
|
||||
if (! select instanceof HTMLElement) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (isInitializedGeoIPSelect(select)) {
|
||||
return getIndexOfRegisteredGeoIPSelect(select);
|
||||
}
|
||||
|
||||
var enableSearch = true;
|
||||
if ("readonly" === select.getAttribute('readonly')) {
|
||||
enableSearch = false;
|
||||
}
|
||||
|
||||
$(select).chosen({
|
||||
"display_selected_options" : true,
|
||||
"display_disabled_options": true,
|
||||
"hide_results_on_select": true,
|
||||
"group_search": enableSearch
|
||||
});
|
||||
|
||||
return registerGeoIPSelect(select);
|
||||
}
|
||||
|
||||
function registerGeoIPSelect(select)
|
||||
{
|
||||
return initializedSelects.push(select.name);
|
||||
}
|
||||
|
||||
function getIndexOfRegisteredGeoIPSelect(select)
|
||||
{
|
||||
return initializedSelects.indexOf(select.name);
|
||||
}
|
||||
|
||||
function isInitializedGeoIPSelect(select)
|
||||
{
|
||||
return -1 !== getIndexOfRegisteredGeoIPSelect(select);
|
||||
}
|
||||
|
||||
function reinitializeGeoIPSelect(select)
|
||||
{
|
||||
if (isInitializedGeoIPSelect(select)) {
|
||||
$(select).chosen("destroy");
|
||||
initializedSelects.splice(getIndexOfRegisteredGeoIPSelect(select), 1);
|
||||
initializeGeoIPSelect(select);
|
||||
}
|
||||
}
|
||||
|
||||
function updateGeoIpSelect(select)
|
||||
{
|
||||
if (! isInitializedGeoIPSelect(select)) {
|
||||
initializeGeoIPSelect(select);
|
||||
}
|
||||
|
||||
$(select).trigger("chosen:updated");
|
||||
}
|
||||
|
||||
function initializeGeoIPOptionDepends(select)
|
||||
{
|
||||
initializeGeoIPSelect(select);
|
||||
|
||||
var geoipEl = $(select),
|
||||
allOptionId = 'all';
|
||||
|
||||
var initialValues = ! geoipEl.val() ? [] : geoipEl.val();
|
||||
var initialShowToAllIndex = initialValues.indexOf(allOptionId);
|
||||
|
||||
geoipEl.on('change', function () {
|
||||
var values = ! $(this).val() ? [] : $(this).val();
|
||||
var showToAllIndex = values.indexOf(allOptionId);
|
||||
|
||||
if (-1 !== initialShowToAllIndex) {
|
||||
if (-1 !== showToAllIndex && values.length > 1) {
|
||||
for (var i = 0; i < values.length; i++) {
|
||||
values.splice(showToAllIndex, 1);
|
||||
}
|
||||
|
||||
geoipEl.val(values);
|
||||
}
|
||||
} else {
|
||||
if (-1 !== showToAllIndex && values.length > 1) {
|
||||
geoipEl.val([allOptionId]);
|
||||
}
|
||||
}
|
||||
|
||||
if (! $(this).val()) {
|
||||
$(this).val([allOptionId]);
|
||||
}
|
||||
|
||||
initialValues = $(this).val();
|
||||
initialShowToAllIndex = initialValues.indexOf(allOptionId);
|
||||
updateGeoIpSelect(select);
|
||||
});
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,56 @@
|
||||
<!--
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
-->
|
||||
<div class="admin__field"
|
||||
visible="visible"
|
||||
css="$data.additionalClasses"
|
||||
attr="'data-index': index">
|
||||
<div class="admin__field-label" visible="$data.labelVisible">
|
||||
<label if="$data.label" attr="for: uid">
|
||||
<span translate="label" attr="'data-config-scope': $data.scopeLabel"></span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="admin__field-control"
|
||||
css="'_with-tooltip': $data.tooltip, '_with-reset': $data.showFallbackReset && $data.isDifferedFromDefault">
|
||||
<render args="elementTmpl" ifnot="hasAddons()"></render>
|
||||
|
||||
<div class="admin__control-addon" if="hasAddons()">
|
||||
<render args="elementTmpl"></render>
|
||||
|
||||
<label class="admin__addon-prefix" if="$data.addbefore" attr="for: uid">
|
||||
<span text="addbefore"></span>
|
||||
</label>
|
||||
<label class="admin__addon-suffix" if="$data.addafter" attr="for: uid">
|
||||
<span text="addafter"></span>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<render args="tooltipTpl" if="$data.tooltip"></render>
|
||||
|
||||
<render args="fallbackResetTpl" if="$data.showFallbackReset && $data.isDifferedFromDefault"></render>
|
||||
|
||||
<label class="admin__field-error" if="error" attr="for: uid" text="error"></label>
|
||||
|
||||
<div class="admin__field-note" if="$data.notice" attr="id: noticeId">
|
||||
<span html="$t(notice)"></span>
|
||||
</div>
|
||||
|
||||
<div class="admin__additional-info" if="$data.additionalInfo" html="$data.additionalInfo"></div>
|
||||
|
||||
<render args="$data.service.template" if="$data.hasService()"></render>
|
||||
</div>
|
||||
</div>
|
||||