Version Description
Download this release
Release Info
Developer | creativethemeshq |
Plugin | Blocksy Companion |
Version | 1.8.19 |
Comparing to | |
See all releases |
Code changes from version 1.8.18 to 1.8.19
- blocksy-companion.php +1 -1
- framework/extensions/cookies-consent/helpers.php +2 -2
- framework/extensions/cookies-consent/static/bundle/main.js +2 -2
- framework/extensions/cookies-consent/static/bundle/main.min.css +1 -1
- framework/extensions/cookies-consent/static/js/main.js +1 -12
- framework/extensions/newsletter-subscribe/static/bundle/main.min.css +1 -1
- framework/extensions/product-reviews/static/bundle/main-admin.min.css +1 -1
- framework/extensions/product-reviews/static/bundle/main.min.css +1 -1
- framework/extensions/trending/static/bundle/main.min.css +1 -1
- framework/extensions/widgets/static/bundle/main.min.css +1 -1
- framework/theme-integration.php +3 -1
- readme.txt +5 -1
- static/bundle/account-lazy.min.css +1 -1
- static/bundle/dashboard.min.css +1 -1
- static/bundle/options.min.css +1 -1
blocksy-companion.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/*
|
4 |
Plugin Name: Blocksy Companion
|
5 |
Description: This plugin is the companion for the Blocksy theme, it runs and adds its enhacements only if the Blocksy theme is installed and active.
|
6 |
-
Version: 1.8.
|
7 |
Author: CreativeThemes
|
8 |
Author URI: https://creativethemes.com
|
9 |
Text Domain: blocksy-companion
|
3 |
/*
|
4 |
Plugin Name: Blocksy Companion
|
5 |
Description: This plugin is the companion for the Blocksy theme, it runs and adds its enhacements only if the Blocksy theme is installed and active.
|
6 |
+
Version: 1.8.19
|
7 |
Author: CreativeThemes
|
8 |
Author URI: https://creativethemes.com
|
9 |
Text Domain: blocksy-companion
|
framework/extensions/cookies-consent/helpers.php
CHANGED
@@ -52,10 +52,10 @@ function blocksy_ext_cookies_consent_output($forced = false) {
|
|
52 |
<div class="ct-cookies-content"><?php echo wp_kses_post($content) ?></div>
|
53 |
<?php } ?>
|
54 |
|
55 |
-
<button type="submit" class="ct-button ct-accept"><?php echo esc_html($button_text) ?></button>
|
56 |
|
57 |
<?php if ($type === 'type-1' || is_customize_preview()) { ?>
|
58 |
-
<button class="ct-close">×</button>
|
59 |
<?php } ?>
|
60 |
|
61 |
</div>
|
52 |
<div class="ct-cookies-content"><?php echo wp_kses_post($content) ?></div>
|
53 |
<?php } ?>
|
54 |
|
55 |
+
<button type="submit" class="ct-button ct-accept" tabindex="10"><?php echo esc_html($button_text) ?></button>
|
56 |
|
57 |
<?php if ($type === 'type-1' || is_customize_preview()) { ?>
|
58 |
+
<button class="ct-close" tabindex="10">×</button>
|
59 |
<?php } ?>
|
60 |
|
61 |
</div>
|
framework/extensions/cookies-consent/static/bundle/main.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
-
!function(e){var
|
2 |
/*!
|
3 |
* JavaScript Cookie v2.2.1
|
4 |
* https://github.com/js-cookie/js-cookie
|
5 |
*
|
6 |
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack
|
7 |
* Released under the MIT license
|
8 |
-
*/!function(i){if(void 0===(
|
1 |
+
!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t){e.exports=window.ctEvents},function(e,t,n){var o,r;
|
2 |
/*!
|
3 |
* JavaScript Cookie v2.2.1
|
4 |
* https://github.com/js-cookie/js-cookie
|
5 |
*
|
6 |
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack
|
7 |
* Released under the MIT license
|
8 |
+
*/!function(i){if(void 0===(r="function"==typeof(o=i)?o.call(t,n,t,e):o)||(e.exports=r),!0,e.exports=i(),!!0){var c=window.Cookies,a=window.Cookies=i();a.noConflict=function(){return window.Cookies=c,a}}}((function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var o in n)t[o]=n[o]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(o){function r(){}function i(t,n,i){if("undefined"!=typeof document){"number"==typeof(i=e({path:"/"},r.defaults,i)).expires&&(i.expires=new Date(1*new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var c=JSON.stringify(n);/^[\{\[]/.test(c)&&(n=c)}catch(e){}n=o.write?o.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var a="";for(var u in i)i[u]&&(a+="; "+u,!0!==i[u]&&(a+="="+i[u].split(";")[0]));return document.cookie=t+"="+n+a}}function c(e,n){if("undefined"!=typeof document){for(var r={},i=document.cookie?document.cookie.split("; "):[],c=0;c<i.length;c++){var a=i[c].split("="),u=a.slice(1).join("=");n||'"'!==u.charAt(0)||(u=u.slice(1,-1));try{var f=t(a[0]);if(u=(o.read||o)(u,f)||t(u),n)try{u=JSON.parse(u)}catch(e){}if(r[f]=u,e===f)break}catch(e){}}return e?r[e]:r}}return r.set=i,r.get=function(e){return c(e,!1)},r.getJSON=function(e){return c(e,!0)},r.remove=function(t,n){i(t,"",e(n,{expires:-1}))},r.defaults={},r.withConverter=n,r}((function(){}))}))},function(e,t,n){"use strict";n.r(t),n.d(t,"onDocumentLoaded",(function(){return d}));var o=n(0),r=n.n(o),i=n(1),c=n.n(i);function a(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var f=function(e){27===e.keyCode&&s(document.querySelector(".cookie-notification"))},s=function(e){document.removeEventListener("keyup",f),e.classList.add("ct-fade-start"),requestAnimationFrame((function(){e.classList.remove("ct-fade-start"),e.classList.add("ct-fade-end"),p(e,(function(){e.parentNode.removeChild(e)}))}))},d=function(e){/comp|inter|loaded/.test(document.readyState)?e():document.addEventListener("DOMContentLoaded",e,!1)},l=function(){var e,t=document.querySelector(".cookie-notification");t&&(c.a.get("blocksy_cookies_consent_accepted")?t.remove():(e=t,document.addEventListener("keyup",f),requestAnimationFrame((function(){e.classList.remove("ct-fade-in-start"),e.classList.add("ct-fade-in-end"),p(e,(function(){e.classList.remove("ct-fade-in-end")}))})),a(t.querySelectorAll("button")).map((function(e){e.addEventListener("click",(function(n){if(n.preventDefault(),e.classList.contains("ct-accept")){c.a.set("blocksy_cookies_consent_accepted","true",{expires:new Date(1*new Date+{onehour:36e5,oneday:864e5,oneweek:6048e5,onemonth:26784e5,threemonths:80352e5,sixmonths:160704e5,oneyear:31536e6,forever:864e9}[e.closest("[data-period]").dataset.period]),sameSite:"lax"})}s(t)}))}))))};function p(e,t){setTimeout((function(){t()}),300)}d((function(){l(),r.a&&r.a.on("blocksy:cookies:init",(function(){l()}))}))}]);
|
framework/extensions/cookies-consent/static/bundle/main.min.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/**
|
2 |
-
* - v1.8.
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
1 |
/**
|
2 |
+
* - v1.8.19
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
framework/extensions/cookies-consent/static/js/main.js
CHANGED
@@ -1,15 +1,5 @@
|
|
1 |
import ctEvents from 'ct-events'
|
2 |
import cookie from 'js-cookie'
|
3 |
-
import focusLock from 'dom-focus-lock'
|
4 |
-
|
5 |
-
let focusLockToUse = focusLock
|
6 |
-
|
7 |
-
if (window.ctFrontend && ctFrontend.focusLock) {
|
8 |
-
focusLockToUse = ctFrontend.focusLock
|
9 |
-
} else {
|
10 |
-
window.ctFrontend = window.ctFrontend || {}
|
11 |
-
ctFrontend.focusLock = focusLockToUse
|
12 |
-
}
|
13 |
|
14 |
const onKeydown = (event) => {
|
15 |
if (event.keyCode !== 27) return
|
@@ -17,7 +7,6 @@ const onKeydown = (event) => {
|
|
17 |
}
|
18 |
|
19 |
const showCookieConsent = (node) => {
|
20 |
-
focusLockToUse.on(node)
|
21 |
document.addEventListener('keyup', onKeydown)
|
22 |
|
23 |
requestAnimationFrame(() => {
|
@@ -29,8 +18,8 @@ const showCookieConsent = (node) => {
|
|
29 |
})
|
30 |
})
|
31 |
}
|
|
|
32 |
const hideCookieConsent = (node) => {
|
33 |
-
focusLockToUse.off(node)
|
34 |
document.removeEventListener('keyup', onKeydown)
|
35 |
|
36 |
node.classList.add('ct-fade-start')
|
1 |
import ctEvents from 'ct-events'
|
2 |
import cookie from 'js-cookie'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
const onKeydown = (event) => {
|
5 |
if (event.keyCode !== 27) return
|
7 |
}
|
8 |
|
9 |
const showCookieConsent = (node) => {
|
|
|
10 |
document.addEventListener('keyup', onKeydown)
|
11 |
|
12 |
requestAnimationFrame(() => {
|
18 |
})
|
19 |
})
|
20 |
}
|
21 |
+
|
22 |
const hideCookieConsent = (node) => {
|
|
|
23 |
document.removeEventListener('keyup', onKeydown)
|
24 |
|
25 |
node.classList.add('ct-fade-start')
|
framework/extensions/newsletter-subscribe/static/bundle/main.min.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/**
|
2 |
-
* - v1.8.
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
1 |
/**
|
2 |
+
* - v1.8.19
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
framework/extensions/product-reviews/static/bundle/main-admin.min.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/**
|
2 |
-
* - v1.8.
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
1 |
/**
|
2 |
+
* - v1.8.19
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
framework/extensions/product-reviews/static/bundle/main.min.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/**
|
2 |
-
* - v1.8.
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
1 |
/**
|
2 |
+
* - v1.8.19
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
framework/extensions/trending/static/bundle/main.min.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/**
|
2 |
-
* - v1.8.
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
1 |
/**
|
2 |
+
* - v1.8.19
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
framework/extensions/widgets/static/bundle/main.min.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/**
|
2 |
-
* - v1.8.
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
1 |
/**
|
2 |
+
* - v1.8.19
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
framework/theme-integration.php
CHANGED
@@ -185,7 +185,9 @@ class ThemeIntegration {
|
|
185 |
|
186 |
$users = [];
|
187 |
|
188 |
-
foreach (get_users(
|
|
|
|
|
189 |
$users[] = [
|
190 |
'id' => $user->ID,
|
191 |
'name' => $user->user_nicename
|
185 |
|
186 |
$users = [];
|
187 |
|
188 |
+
foreach (get_users([
|
189 |
+
'number' => 500
|
190 |
+
]) as $user) {
|
191 |
$users[] = [
|
192 |
'id' => $user->ID,
|
193 |
'name' => $user->user_nicename
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Requires PHP: 7.0
|
|
5 |
Tested up to: 5.8
|
6 |
License: GPLv2 or later
|
7 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
8 |
-
Stable tag: 1.8.
|
9 |
|
10 |
== Description ==
|
11 |
|
@@ -23,6 +23,10 @@ It runs and adds its enhancements only if the Blocksy theme is installed and act
|
|
23 |
2. Activate the plugin by going to **Plugins** page in WordPress admin and clicking on **Activate** link.
|
24 |
|
25 |
== Changelog ==
|
|
|
|
|
|
|
|
|
26 |
1.8.18: 2022-02-16
|
27 |
- Improvement: Account modal better compatibility with All In One WP Security plugin
|
28 |
- Improvement: Cookies consent popup focus lock
|
5 |
Tested up to: 5.8
|
6 |
License: GPLv2 or later
|
7 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
8 |
+
Stable tag: 1.8.19
|
9 |
|
10 |
== Description ==
|
11 |
|
23 |
2. Activate the plugin by going to **Plugins** page in WordPress admin and clicking on **Activate** link.
|
24 |
|
25 |
== Changelog ==
|
26 |
+
1.8.19: 2022-02-18
|
27 |
+
- Improvement: Do not load all users in conditions to avoid memory limit hits
|
28 |
+
- Improvement: Remove focus lock from cookies consent popup
|
29 |
+
|
30 |
1.8.18: 2022-02-16
|
31 |
- Improvement: Account modal better compatibility with All In One WP Security plugin
|
32 |
- Improvement: Cookies consent popup focus lock
|
static/bundle/account-lazy.min.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/**
|
2 |
-
* - v1.8.
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
1 |
/**
|
2 |
+
* - v1.8.19
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
static/bundle/dashboard.min.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/**
|
2 |
-
* - v1.8.
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
1 |
/**
|
2 |
+
* - v1.8.19
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
static/bundle/options.min.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/**
|
2 |
-
* - v1.8.
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|
1 |
/**
|
2 |
+
* - v1.8.19
|
3 |
*
|
4 |
* Copyright (c) 2022
|
5 |
* Licensed GPLv2+
|