Version Description
Download this release
Release Info
Developer | creativethemeshq |
Plugin | Blocksy Companion |
Version | 1.7.63 |
Comparing to | |
See all releases |
Code changes from version 1.7.62 to 1.7.63
- blocksy-companion.php +1 -1
- framework/extensions/cookies-consent/extension.php +1 -1
- framework/extensions/cookies-consent/static/bundle/main.css +1 -1
- framework/extensions/cookies-consent/static/bundle/main.js +1 -1
- framework/extensions/cookies-consent/static/js/main.js +1 -0
- framework/extensions/mailchimp/static/bundle/main.css +1 -1
- framework/extensions/product-reviews/static/bundle/main-admin.css +1 -1
- framework/extensions/product-reviews/static/bundle/main.css +1 -1
- framework/extensions/trending/customizer.php +15 -3
- framework/extensions/trending/extension.php +1 -1
- framework/extensions/trending/global.php +20 -1
- framework/extensions/trending/static/bundle/sync.js +1 -1
- framework/extensions/trending/static/js/sync.js +18 -9
- framework/extensions/widgets/static/bundle/main.css +2 -2
- framework/extensions/widgets/static/sass/social-icons.scss +0 -7
- readme.txt +5 -1
- static/bundle/dashboard.css +1 -1
- static/bundle/options.css +1 -1
- trunk/LICENSE.txt +0 -339
- trunk/blocksy-companion.php +0 -131
- trunk/framework/autoload.php +0 -135
- trunk/framework/cache-reset-manager.php +0 -175
- trunk/framework/cli.php +0 -82
- trunk/framework/dashboard.php +0 -149
- trunk/framework/extensions-manager-api.php +0 -101
- trunk/framework/extensions-manager.php +0 -338
- trunk/framework/extensions/cookies-consent/config.php +0 -6
- trunk/framework/extensions/cookies-consent/customizer.php +0 -224
- trunk/framework/extensions/cookies-consent/extension.php +0 -93
- trunk/framework/extensions/cookies-consent/global.php +0 -66
- trunk/framework/extensions/cookies-consent/helpers.php +0 -93
- trunk/framework/extensions/cookies-consent/readme.php +0 -38
- trunk/framework/extensions/cookies-consent/static/bundle/main.css +0 -8
- trunk/framework/extensions/cookies-consent/static/bundle/main.js +0 -8
- trunk/framework/extensions/cookies-consent/static/bundle/sync.js +0 -1
- trunk/framework/extensions/cookies-consent/static/images/type-1.svg +0 -37
- trunk/framework/extensions/cookies-consent/static/images/type-2.svg +0 -34
- trunk/framework/extensions/cookies-consent/static/js/ct-events.js +0 -270
- trunk/framework/extensions/cookies-consent/static/js/lazy-load-helpers.js +0 -20
- trunk/framework/extensions/cookies-consent/static/js/main.js +0 -87
- trunk/framework/extensions/cookies-consent/static/js/sync.js +0 -65
- trunk/framework/extensions/cookies-consent/static/js/sync/helpers.js +0 -145
- trunk/framework/extensions/cookies-consent/static/js/variables.js +0 -43
- trunk/framework/extensions/cookies-consent/static/sass/main.scss +0 -173
- trunk/framework/extensions/mailchimp/admin-static/bundle/1.2c9ebf0a36c6c732fee6.js +0 -14
- trunk/framework/extensions/mailchimp/admin-static/bundle/2.976c8f43abfe584b1a9d.js +0 -1
- trunk/framework/extensions/mailchimp/admin-static/bundle/main.js +0 -1
- trunk/framework/extensions/mailchimp/admin-static/bundle/sync.js +0 -1
- trunk/framework/extensions/mailchimp/admin-static/js/ListPicker.js +0 -22
- trunk/framework/extensions/mailchimp/admin-static/js/ListPicker/Implementation.js +0 -124
- trunk/framework/extensions/mailchimp/admin-static/js/main.js +0 -10
- trunk/framework/extensions/mailchimp/admin-static/js/public-path.js +0 -1
- trunk/framework/extensions/mailchimp/admin-static/js/sync.js +0 -78
- trunk/framework/extensions/mailchimp/admin-static/js/variables.js +0 -52
- trunk/framework/extensions/mailchimp/config.php +0 -7
- trunk/framework/extensions/mailchimp/ct-mailchimp/options.php +0 -125
- trunk/framework/extensions/mailchimp/ct-mailchimp/view.php +0 -109
- trunk/framework/extensions/mailchimp/ct-mailchimp/widget.php +0 -22
- trunk/framework/extensions/mailchimp/customizer.php +0 -270
- trunk/framework/extensions/mailchimp/dashboard-static/bundle/main.js +0 -14
- trunk/framework/extensions/mailchimp/dashboard-static/js/EditCredentials.js +0 -157
- trunk/framework/extensions/mailchimp/dashboard-static/js/ListPicker.js +0 -149
- trunk/framework/extensions/mailchimp/dashboard-static/js/Mailchimp.js +0 -95
- trunk/framework/extensions/mailchimp/dashboard-static/js/hooks/useActivationWithRequirements.js +0 -80
- trunk/framework/extensions/mailchimp/dashboard-static/js/main.js +0 -15
- trunk/framework/extensions/mailchimp/extension.php +0 -144
- trunk/framework/extensions/mailchimp/global.php +0 -103
- trunk/framework/extensions/mailchimp/helpers.php +0 -140
- trunk/framework/extensions/mailchimp/mailchimp-manager.php +0 -147
- trunk/framework/extensions/mailchimp/pre-boot.php +0 -111
- trunk/framework/extensions/mailchimp/readme.php +0 -37
- trunk/framework/extensions/mailchimp/static/bundle/main.css +0 -8
- trunk/framework/extensions/mailchimp/static/bundle/main.js +0 -1
- trunk/framework/extensions/mailchimp/static/js/main.js +0 -82
- trunk/framework/extensions/mailchimp/static/sass/main.scss +0 -40
- trunk/framework/extensions/mailchimp/static/sass/single-block.scss +0 -70
- trunk/framework/extensions/mailchimp/static/sass/widget.scss +0 -39
- trunk/framework/extensions/product-reviews/config.php +0 -12
- trunk/framework/extensions/product-reviews/extension.php +0 -316
- trunk/framework/extensions/product-reviews/helpers.php +0 -39
- trunk/framework/extensions/product-reviews/metabox.php +0 -198
- trunk/framework/extensions/product-reviews/pre-boot.php +0 -65
- trunk/framework/extensions/product-reviews/static/bundle/dashboard.js +0 -6
- trunk/framework/extensions/product-reviews/static/bundle/main-admin.css +0 -8
- trunk/framework/extensions/product-reviews/static/bundle/main.css +0 -8
- trunk/framework/extensions/product-reviews/static/js/EditSettings.js +0 -141
- trunk/framework/extensions/product-reviews/static/js/ProductReviews.js +0 -100
- trunk/framework/extensions/product-reviews/static/js/dashboard.js +0 -10
- trunk/framework/extensions/product-reviews/static/sass/actions.scss +0 -18
- trunk/framework/extensions/product-reviews/static/sass/description.scss +0 -5
- trunk/framework/extensions/product-reviews/static/sass/main-admin.scss +0 -8
- trunk/framework/extensions/product-reviews/static/sass/main.scss +0 -23
- trunk/framework/extensions/product-reviews/static/sass/quick-info.scss +0 -32
- trunk/framework/extensions/product-reviews/static/sass/scores.scss +0 -83
- trunk/framework/extensions/product-reviews/static/sass/slider.scss +0 -36
- trunk/framework/extensions/product-reviews/static/sass/title.scss +0 -6
- trunk/framework/extensions/product-reviews/views/single-top.php +0 -243
- trunk/framework/extensions/trending/config.php +0 -6
- trunk/framework/extensions/trending/customizer.php +0 -193
- trunk/framework/extensions/trending/extension.php +0 -76
- trunk/framework/extensions/trending/global.php +0 -53
- trunk/framework/extensions/trending/helpers.php +0 -195
- trunk/framework/extensions/trending/static/bundle/main.js +0 -1
- trunk/framework/extensions/trending/static/bundle/sync.js +0 -1
- trunk/framework/extensions/trending/static/js/main.js +0 -17
- trunk/framework/extensions/trending/static/js/sync.js +0 -42
- trunk/framework/extensions/trending/static/js/trending-block.js +0 -139
- trunk/framework/extensions/widgets/config.php +0 -5
- trunk/framework/extensions/widgets/extension.php +0 -36
- trunk/framework/extensions/widgets/static/bundle/main.css +0 -8
- trunk/framework/extensions/widgets/static/sass/about-me.scss +0 -67
- trunk/framework/extensions/widgets/static/sass/facebook.scss +0 -37
- trunk/framework/extensions/widgets/static/sass/main.scss +0 -7
- trunk/framework/extensions/widgets/static/sass/posts.scss +0 -132
- trunk/framework/extensions/widgets/static/sass/quote.scss +0 -39
- trunk/framework/extensions/widgets/static/sass/social-icons.scss +0 -23
- trunk/framework/extensions/widgets/widgets/ct-about-me/helpers.php +0 -18
- trunk/framework/extensions/widgets/widgets/ct-about-me/options.php +0 -235
- trunk/framework/extensions/widgets/widgets/ct-about-me/view.php +0 -139
- trunk/framework/extensions/widgets/widgets/ct-about-me/widget.php +0 -22
- trunk/framework/extensions/widgets/widgets/ct-advertisement/options.php +0 -84
- trunk/framework/extensions/widgets/widgets/ct-advertisement/view.php +0 -61
- trunk/framework/extensions/widgets/widgets/ct-advertisement/widget.php +0 -22
- trunk/framework/extensions/widgets/widgets/ct-contact-info/options.php +0 -312
- trunk/framework/extensions/widgets/widgets/ct-contact-info/view.php +0 -70
- trunk/framework/extensions/widgets/widgets/ct-contact-info/widget.php +0 -22
- trunk/framework/extensions/widgets/widgets/ct-facebook/options.php +0 -52
- trunk/framework/extensions/widgets/widgets/ct-facebook/view.php +0 -61
- trunk/framework/extensions/widgets/widgets/ct-facebook/widget.php +0 -22
- trunk/framework/extensions/widgets/widgets/ct-posts/options.php +0 -329
- trunk/framework/extensions/widgets/widgets/ct-posts/view.php +0 -224
- trunk/framework/extensions/widgets/widgets/ct-posts/widget.php +0 -23
- trunk/framework/extensions/widgets/widgets/ct-quote/options.php +0 -55
- trunk/framework/extensions/widgets/widgets/ct-quote/view.php +0 -57
- trunk/framework/extensions/widgets/widgets/ct-quote/widget.php +0 -22
- trunk/framework/extensions/widgets/widgets/ct-socials/options.php +0 -106
- trunk/framework/extensions/widgets/widgets/ct-socials/view.php +0 -53
- trunk/framework/extensions/widgets/widgets/ct-socials/widget.php +0 -23
- trunk/framework/features/conditions-manager.php +0 -487
- trunk/framework/features/customizer-options-manager.php +0 -206
- trunk/framework/features/demo-install.php +0 -340
- trunk/framework/features/demo-install/child-theme.php +0 -121
- trunk/framework/features/demo-install/content-eraser.php +0 -179
- trunk/framework/features/demo-install/content-export.php +0 -663
- trunk/framework/features/demo-install/content-installer.php +0 -416
- trunk/framework/features/demo-install/fake-content-eraser.php +0 -273
- trunk/framework/features/demo-install/install-finish.php +0 -194
- trunk/framework/features/demo-install/options-export.php +0 -123
- trunk/framework/features/demo-install/options-import.php +0 -400
- trunk/framework/features/demo-install/parsers.php +0 -701
- trunk/framework/features/demo-install/plugins-uninstaller.php +0 -44
- trunk/framework/features/demo-install/required-plugins.php +0 -85
- trunk/framework/features/demo-install/widgets-export.php +0 -67
- trunk/framework/features/demo-install/widgets-import.php +0 -277
- trunk/framework/features/demo-install/wp-importer.php +0 -1348
- trunk/framework/features/dynamic-css.php +0 -270
- trunk/framework/features/google-analytics.php +0 -110
- trunk/framework/features/header.php +0 -542
- trunk/framework/features/header/account-modal.php +0 -139
- trunk/framework/features/header/header-options.php +0 -178
- trunk/framework/features/header/items/account/config.php +0 -25
- trunk/framework/features/header/items/account/dynamic-styles.php +0 -460
- trunk/framework/features/header/items/account/options.php +0 -946
- trunk/framework/features/header/items/account/sync.js +0 -336
- trunk/framework/features/header/items/account/view.php +0 -56
- trunk/framework/features/header/items/account/views/login.php +0 -97
- trunk/framework/features/header/items/account/views/logout.php +0 -53
- trunk/framework/features/opengraph-meta-data.php +0 -224
- trunk/framework/helpers/blocksy-integration.php +0 -177
- trunk/framework/helpers/helpers.php +0 -102
- trunk/framework/theme-integration.php +0 -356
- trunk/framework/views/blocksy-posts.php +0 -156
- trunk/framework/views/optin.php +0 -6
- trunk/framework/widgets-manager.php +0 -201
- trunk/freemius-pricing/178afa6030e76635dbe835e111d2c507.png +0 -0
- trunk/freemius-pricing/27b5a722a5553d9de0170325267fccec.png +0 -0
- trunk/freemius-pricing/4375c4a3ddc6f637c2ab9a2d7220f91e.png +0 -0
- trunk/freemius-pricing/5480ed23b199531a8cbc05924f26952b.png +0 -0
- trunk/freemius-pricing/b4f3b958f4a019862d81b15f3f8eee3a.svg +0 -402
- trunk/freemius-pricing/c03f665db27af43971565560adfba594.png +0 -0
- trunk/freemius-pricing/cb5fc4f6ec7ada72e986f6e7dde365bf.png +0 -0
- trunk/freemius-pricing/dd89563360f0272635c8f0ab7d7f1402.png +0 -0
- trunk/freemius-pricing/e366d70661d8ad2493bd6afbd779f125.png +0 -0
- trunk/freemius-pricing/f3aac72a8e63997d6bb888f816457e9b.png +0 -0
- trunk/freemius-pricing/f928f1be99776af83e8e6be4baf8ffe7.svg +0 -227
- trunk/freemius-pricing/fde48e4609a6ddc11d639fc2421f2afd.png +0 -0
- trunk/freemius-pricing/freemius-pricing.js +0 -7421
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.7.
|
7 |
Author: CreativeThemes
|
8 |
Author URI: https://creativethemes.com
|
9 |
Text Domain: blc
|
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.7.63
|
7 |
Author: CreativeThemes
|
8 |
Author URI: https://creativethemes.com
|
9 |
Text Domain: blc
|
framework/extensions/cookies-consent/extension.php
CHANGED
@@ -63,7 +63,7 @@ class BlocksyExtensionCookiesConsent {
|
|
63 |
wp_enqueue_script(
|
64 |
'blocksy-ext-cookies-consent-scripts',
|
65 |
BLOCKSY_URL . 'framework/extensions/cookies-consent/static/bundle/main.js',
|
66 |
-
['ct-events'],
|
67 |
$data['Version'],
|
68 |
true
|
69 |
);
|
63 |
wp_enqueue_script(
|
64 |
'blocksy-ext-cookies-consent-scripts',
|
65 |
BLOCKSY_URL . 'framework/extensions/cookies-consent/static/bundle/main.js',
|
66 |
+
['ct-events', 'ct-scripts'],
|
67 |
$data['Version'],
|
68 |
true
|
69 |
);
|
framework/extensions/cookies-consent/static/bundle/main.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/**
|
2 |
-
* - v1.7.
|
3 |
*
|
4 |
* Copyright (c) 2021
|
5 |
* Licensed GPLv2+
|
1 |
/**
|
2 |
+
* - v1.7.63
|
3 |
*
|
4 |
* Copyright (c) 2021
|
5 |
* Licensed GPLv2+
|
framework/extensions/cookies-consent/static/bundle/main.js
CHANGED
@@ -5,4 +5,4 @@
|
|
5 |
*
|
6 |
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack
|
7 |
* Released under the MIT license
|
8 |
-
*/!function(i){if(void 0===(o="function"==typeof(r=i)?r.call(t,n,t,e):r)||(e.exports=o),!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 r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function o(){}function i(t,n,i){if("undefined"!=typeof document){"number"==typeof(i=e({path:"/"},o.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=r.write?r.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 o={},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=(r.read||r)(u,f)||t(u),n)try{u=JSON.parse(u)}catch(e){}if(o[f]=u,e===f)break}catch(e){}}return e?o[e]:o}}return o.set=i,o.get=function(e){return c(e,!1)},o.getJSON=function(e){return c(e,!0)},o.remove=function(t,n){i(t,"",e(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}((function(){}))}))},function(e,t){e.exports=window.ctEvents},function(e,t){e.exports=window.ctFrontend},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n.n(r),i=n(0),c=n.n(i),a=n(2);function u(e){return function(e){if(Array.isArray(e))return f(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 f(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 f(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 f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s=function(){var e=document.querySelector(".cookie-notification");e&&(c.a.get("blocksy_cookies_consent_accepted")?e.remove():(requestAnimationFrame((function(){e.classList.remove("ct-fade-in-start"),e.classList.add("ct-fade-in-end"),d(e,(function(){e.classList.remove("ct-fade-in-end")}))})),u(e.querySelectorAll("button")).map((function(t){t.addEventListener("click",(function(n){if(n.preventDefault(),t.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}[t.closest("[data-period]").dataset.period])})}e.classList.add("ct-fade-start"),requestAnimationFrame((function(){e.classList.remove("ct-fade-start"),e.classList.add("ct-fade-end"),d(e,(function(){e.parentNode.removeChild(e)}))}))}))}))))};function d(e,t){setTimeout((function(){t()}),300)}Object(a.onDocumentLoaded)((function(){s(),o.a.on("blocksy:cookies:init",(function(){s()}))}))}]);
|
5 |
*
|
6 |
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack
|
7 |
* Released under the MIT license
|
8 |
+
*/!function(i){if(void 0===(o="function"==typeof(r=i)?r.call(t,n,t,e):r)||(e.exports=o),!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 r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function o(){}function i(t,n,i){if("undefined"!=typeof document){"number"==typeof(i=e({path:"/"},o.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=r.write?r.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 o={},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=(r.read||r)(u,f)||t(u),n)try{u=JSON.parse(u)}catch(e){}if(o[f]=u,e===f)break}catch(e){}}return e?o[e]:o}}return o.set=i,o.get=function(e){return c(e,!1)},o.getJSON=function(e){return c(e,!0)},o.remove=function(t,n){i(t,"",e(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}((function(){}))}))},function(e,t){e.exports=window.ctEvents},function(e,t){e.exports=window.ctFrontend},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n.n(r),i=n(0),c=n.n(i),a=n(2);function u(e){return function(e){if(Array.isArray(e))return f(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 f(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 f(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 f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s=function(){var e=document.querySelector(".cookie-notification");e&&(c.a.get("blocksy_cookies_consent_accepted")?e.remove():(requestAnimationFrame((function(){e.classList.remove("ct-fade-in-start"),e.classList.add("ct-fade-in-end"),d(e,(function(){e.classList.remove("ct-fade-in-end")}))})),u(e.querySelectorAll("button")).map((function(t){t.addEventListener("click",(function(n){if(n.preventDefault(),t.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}[t.closest("[data-period]").dataset.period]),sameSite:"lax"})}e.classList.add("ct-fade-start"),requestAnimationFrame((function(){e.classList.remove("ct-fade-start"),e.classList.add("ct-fade-end"),d(e,(function(){e.parentNode.removeChild(e)}))}))}))}))))};function d(e,t){setTimeout((function(){t()}),300)}Object(a.onDocumentLoaded)((function(){s(),o.a.on("blocksy:cookies:init",(function(){s()}))}))}]);
|
framework/extensions/cookies-consent/static/js/main.js
CHANGED
@@ -41,6 +41,7 @@ const initCookies = () => {
|
|
41 |
new Date() * 1 +
|
42 |
periods[el.closest('[data-period]').dataset.period]
|
43 |
),
|
|
|
44 |
})
|
45 |
}
|
46 |
|
41 |
new Date() * 1 +
|
42 |
periods[el.closest('[data-period]').dataset.period]
|
43 |
),
|
44 |
+
sameSite: 'lax',
|
45 |
})
|
46 |
}
|
47 |
|
framework/extensions/mailchimp/static/bundle/main.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/**
|
2 |
-
* - v1.7.
|
3 |
*
|
4 |
* Copyright (c) 2021
|
5 |
* Licensed GPLv2+
|
1 |
/**
|
2 |
+
* - v1.7.63
|
3 |
*
|
4 |
* Copyright (c) 2021
|
5 |
* Licensed GPLv2+
|
framework/extensions/product-reviews/static/bundle/main-admin.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/**
|
2 |
-
* - v1.7.
|
3 |
*
|
4 |
* Copyright (c) 2021
|
5 |
* Licensed GPLv2+
|
1 |
/**
|
2 |
+
* - v1.7.63
|
3 |
*
|
4 |
* Copyright (c) 2021
|
5 |
* Licensed GPLv2+
|
framework/extensions/product-reviews/static/bundle/main.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/**
|
2 |
-
* - v1.7.
|
3 |
*
|
4 |
* Copyright (c) 2021
|
5 |
* Licensed GPLv2+
|
1 |
/**
|
2 |
+
* - v1.7.63
|
3 |
*
|
4 |
* Copyright (c) 2021
|
5 |
* Licensed GPLv2+
|
framework/extensions/trending/customizer.php
CHANGED
@@ -139,12 +139,23 @@ $options = [
|
|
139 |
'type' => 'tab',
|
140 |
'options' => [
|
141 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
142 |
'trendingBlockFontColor' => [
|
143 |
'label' => __( 'Font Color', 'blc' ),
|
144 |
'type' => 'ct-color-picker',
|
145 |
-
'design' => '
|
|
|
|
|
146 |
'sync' => 'live',
|
147 |
-
|
148 |
'value' => [
|
149 |
'default' => [
|
150 |
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
|
@@ -173,7 +184,8 @@ $options = [
|
|
173 |
'trending_block_background' => [
|
174 |
'label' => __( 'Container Background', 'blc' ),
|
175 |
'type' => 'ct-background',
|
176 |
-
'design' => '
|
|
|
177 |
'divider' => 'top',
|
178 |
'sync' => 'live',
|
179 |
'value' => blocksy_background_default_value([
|
139 |
'type' => 'tab',
|
140 |
'options' => [
|
141 |
|
142 |
+
'trendingBlockPostsFont' => [
|
143 |
+
'type' => 'ct-typography',
|
144 |
+
'label' => __( 'Posts Font', 'blc' ),
|
145 |
+
'value' => blocksy_typography_default_values([
|
146 |
+
'size' => '15px',
|
147 |
+
'variation' => 'n5',
|
148 |
+
]),
|
149 |
+
'setting' => [ 'transport' => 'postMessage' ],
|
150 |
+
],
|
151 |
+
|
152 |
'trendingBlockFontColor' => [
|
153 |
'label' => __( 'Font Color', 'blc' ),
|
154 |
'type' => 'ct-color-picker',
|
155 |
+
'design' => 'block:right',
|
156 |
+
'divider' => 'top',
|
157 |
+
'responsive' => true,
|
158 |
'sync' => 'live',
|
|
|
159 |
'value' => [
|
160 |
'default' => [
|
161 |
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
|
184 |
'trending_block_background' => [
|
185 |
'label' => __( 'Container Background', 'blc' ),
|
186 |
'type' => 'ct-background',
|
187 |
+
'design' => 'block:right',
|
188 |
+
'responsive' => true,
|
189 |
'divider' => 'top',
|
190 |
'sync' => 'live',
|
191 |
'value' => blocksy_background_default_value([
|
framework/extensions/trending/extension.php
CHANGED
@@ -18,7 +18,7 @@ class BlocksyExtensionTrending {
|
|
18 |
wp_enqueue_script(
|
19 |
'blocksy-ext-trending-scripts',
|
20 |
BLOCKSY_URL . 'framework/extensions/trending/static/bundle/main.js',
|
21 |
-
['ct-events'],
|
22 |
$data['Version'],
|
23 |
true
|
24 |
);
|
18 |
wp_enqueue_script(
|
19 |
'blocksy-ext-trending-scripts',
|
20 |
BLOCKSY_URL . 'framework/extensions/trending/static/bundle/main.js',
|
21 |
+
['ct-events', 'ct-scripts'],
|
22 |
$data['Version'],
|
23 |
true
|
24 |
);
|
framework/extensions/trending/global.php
CHANGED
@@ -1,8 +1,23 @@
|
|
1 |
<?php
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
blc_call_fn(['fn' => 'blocksy_output_background_css'], [
|
4 |
'selector' => '.ct-trending-block',
|
5 |
'css' => $css,
|
|
|
|
|
6 |
'value' => get_theme_mod(
|
7 |
'trending_block_background',
|
8 |
blc_call_fn([
|
@@ -15,7 +30,8 @@ blc_call_fn(['fn' => 'blocksy_output_background_css'], [
|
|
15 |
],
|
16 |
],
|
17 |
])
|
18 |
-
)
|
|
|
19 |
]);
|
20 |
|
21 |
blc_call_fn(['fn' => 'blocksy_output_responsive'], [
|
@@ -39,6 +55,8 @@ blc_call_fn(['fn' => 'blocksy_output_colors'], [
|
|
39 |
'hover' => [ 'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT') ],
|
40 |
],
|
41 |
'css' => $css,
|
|
|
|
|
42 |
'variables' => [
|
43 |
'default' => [
|
44 |
'selector' => '.ct-trending-block',
|
@@ -50,4 +68,5 @@ blc_call_fn(['fn' => 'blocksy_output_colors'], [
|
|
50 |
'variable' => 'linkHoverColor'
|
51 |
],
|
52 |
],
|
|
|
53 |
]);
|
1 |
<?php
|
2 |
|
3 |
+
blc_call_fn(['fn' => 'blocksy_output_font_css'], [
|
4 |
+
'font_value' => get_theme_mod( 'trendingBlockPostsFont',
|
5 |
+
blocksy_typography_default_values([
|
6 |
+
'size' => '15px',
|
7 |
+
'variation' => 'n5',
|
8 |
+
])
|
9 |
+
),
|
10 |
+
'css' => $css,
|
11 |
+
'tablet_css' => $tablet_css,
|
12 |
+
'mobile_css' => $mobile_css,
|
13 |
+
'selector' => '.ct-trending-block .ct-item-title',
|
14 |
+
]);
|
15 |
+
|
16 |
blc_call_fn(['fn' => 'blocksy_output_background_css'], [
|
17 |
'selector' => '.ct-trending-block',
|
18 |
'css' => $css,
|
19 |
+
'tablet_css' => $tablet_css,
|
20 |
+
'mobile_css' => $mobile_css,
|
21 |
'value' => get_theme_mod(
|
22 |
'trending_block_background',
|
23 |
blc_call_fn([
|
30 |
],
|
31 |
],
|
32 |
])
|
33 |
+
),
|
34 |
+
'responsive' => true,
|
35 |
]);
|
36 |
|
37 |
blc_call_fn(['fn' => 'blocksy_output_responsive'], [
|
55 |
'hover' => [ 'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT') ],
|
56 |
],
|
57 |
'css' => $css,
|
58 |
+
'tablet_css' => $tablet_css,
|
59 |
+
'mobile_css' => $mobile_css,
|
60 |
'variables' => [
|
61 |
'default' => [
|
62 |
'selector' => '.ct-trending-block',
|
68 |
'variable' => 'linkHoverColor'
|
69 |
],
|
70 |
],
|
71 |
+
'responsive' => true,
|
72 |
]);
|
framework/extensions/trending/static/bundle/sync.js
CHANGED
@@ -1 +1 @@
|
|
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=1)}([function(e,t){e.exports=window.blocksyCustomizerSync},function(e,t,n){"use strict";n.r(t);var o,r=function(e){if([e.top,e.right,e.bottom,e.left].reduce((function(e,t){return!!e&&!("auto"!==t&&t&&t.toString().match(/\d/g))}),!0))return"CT_CSS_SKIP_RULE";var t=["auto"!==e.top&&e.top.toString().match(/\d/g)?e.top:0,"auto"!==e.right&&e.right.toString().match(/\d/g)?e.right:0,"auto"!==e.bottom&&e.bottom.toString().match(/\d/g)?e.bottom:0,"auto"!==e.left&&e.left.toString().match(/\d/g)?e.left:0];return t[0]===t[1]&&t[0]===t[2]&&t[0]===t[3]?t[0]:t[0]===t[2]&&t[1]===t[3]?"".concat(t[0]," ").concat(t[3]):t.join(" ")},c=function(e,t){var n=t.forcedOutput,o=void 0!==n&&n;if("CT_CSS_SKIP_RULE"===e)return"CT_CSS_SKIP_RULE";if("none"===e)return"none";if(!e.enable)return o?"none":"CT_CSS_SKIP_RULE";if(0===parseFloat(e.blur)&&0===parseFloat(e.spread)&&0===parseFloat(e.v_offset)&&0===parseFloat(e.h_offset))return o?"none":"CT_CSS_SKIP_RULE";var r=[];return e.inset&&r.push("inset"),r.push("".concat(e.h_offset,"px")),r.push("".concat(e.v_offset,"px")),0!==parseFloat(e.blur)&&(r.push("".concat(e.blur,"px")),0!==parseFloat(e.spread)&&r.push("".concat(e.spread,"px"))),0===parseFloat(e.blur)&&0!==parseFloat(e.spread)&&(r.push("".concat(e.blur,"px")),r.push("".concat(e.spread,"px"))),r.push(e.color.color),r.join(" ")},
|
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=1)}([function(e,t){e.exports=window.blocksyCustomizerSync},function(e,t,n){"use strict";n.r(t);var o,r=function(e){if([e.top,e.right,e.bottom,e.left].reduce((function(e,t){return!!e&&!("auto"!==t&&t&&t.toString().match(/\d/g))}),!0))return"CT_CSS_SKIP_RULE";var t=["auto"!==e.top&&e.top.toString().match(/\d/g)?e.top:0,"auto"!==e.right&&e.right.toString().match(/\d/g)?e.right:0,"auto"!==e.bottom&&e.bottom.toString().match(/\d/g)?e.bottom:0,"auto"!==e.left&&e.left.toString().match(/\d/g)?e.left:0];return t[0]===t[1]&&t[0]===t[2]&&t[0]===t[3]?t[0]:t[0]===t[2]&&t[1]===t[3]?"".concat(t[0]," ").concat(t[3]):t.join(" ")},c=function(e,t){var n=t.forcedOutput,o=void 0!==n&&n;if("CT_CSS_SKIP_RULE"===e)return"CT_CSS_SKIP_RULE";if("none"===e)return"none";if(!e.enable)return o?"none":"CT_CSS_SKIP_RULE";if(0===parseFloat(e.blur)&&0===parseFloat(e.spread)&&0===parseFloat(e.v_offset)&&0===parseFloat(e.h_offset))return o?"none":"CT_CSS_SKIP_RULE";var r=[];return e.inset&&r.push("inset"),r.push("".concat(e.h_offset,"px")),r.push("".concat(e.v_offset,"px")),0!==parseFloat(e.blur)&&(r.push("".concat(e.blur,"px")),0!==parseFloat(e.spread)&&r.push("".concat(e.spread,"px"))),0===parseFloat(e.blur)&&0!==parseFloat(e.spread)&&(r.push("".concat(e.blur,"px")),r.push("".concat(e.spread,"px"))),r.push(e.color.color),r.join(" ")},i=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"desktop",o={desktop:"ct-main-styles-inline-css",tablet:"ct-main-styles-tablet-inline-css",mobile:"ct-main-styles-mobile-inline-css"},r=document.querySelector("style#".concat(o[n])),c=r.innerText,i="".concat(e["".concat(n,"_selector_prefix")]?"".concat(e["".concat(n,"_selector_prefix")]," "):"").concat(e.selector||":root"),a=null,l=c.match(a);0===c.trim().indexOf(i)?(a=new RegExp("".concat(i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"\\s?{[\\s\\S]*?}"),"gm"),l=c.match(a)):(a=new RegExp("\\}\\s*?".concat(i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"\\s?{[\\s\\S]*?}"),"gm"),l=c.match(a)),l||(0===(c="".concat(c," ").concat(i," { }")).trim().indexOf(i)?(a=new RegExp("".concat(i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"\\s?{[\\s\\S]*?}"),"gm"),l=c.match(a)):(a=new RegExp("\\}\\s*?".concat(i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"\\s?{[\\s\\S]*?}"),"gm"),l=c.match(a))),r.innerText=c.replace(a,l[0].indexOf("--".concat(e.variable,":"))>-1?l[0].replace(new RegExp("--".concat(e.variable,":[\\s\\S]*?;"),"gm"),t.indexOf("CT_CSS_SKIP_RULE")>-1||t.indexOf(e.variable)>-1?"":"--".concat(e.variable,": ").concat(t,";")):l[0].replace(new RegExp("".concat(i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"\\s?{"),"gm"),"".concat(i," {").concat(t.indexOf("CT_CSS_SKIP_RULE")>-1||t.indexOf(e.variable)>-1?"":"--".concat(e.variable,": ").concat(t,";"))))},a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"desktop",o=(e.type||"").indexOf("color")>-1?t["color"===e.type?"default":e.type.split(":")[1]].color:t;"border"===(e.type||"")&&(o=t&&"none"!==t.style?"".concat(t.width,"px ").concat(t.style," ").concat(t.color.color):"none"),"spacing"===(e.type||"")&&(o=r(t)),"box-shadow"===(e.type||"")&&(o=c(t,e)),i(e,"".concat(o).concat(e.unit||"").concat(e.important?" !important":""),n)},l=function(e,t){var n=t;t=e.extractValue?e.extractValue(t):t,e.whenDone&&e.whenDone(t,n),t=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e&&Object.keys(e).indexOf("desktop")>-1?t?e:e.desktop:t?{desktop:e,tablet:e,mobile:e}:e}(t,!!e.responsive),e.responsive?(e.enabled&&"no"===!wp.customize(e.enabled)()&&(t.mobile="0"+(e.unit?"":"px"),t.tablet="0"+(e.unit?"":"px"),t.desktop="0"+(e.unit?"":"px")),a(e,t.desktop,"desktop"),a(e,t.tablet,"tablet"),a(e,t.mobile,"mobile")):a(e,t)},s=n(0);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}o=u(u({trendingBlockContainerSpacing:{selector:".ct-trending-block",variable:"padding",responsive:!0,unit:""}},Object(s.typographyOption)({id:"trendingBlockPostsFont",selector:".ct-trending-block .ct-item-title"})),{},{trendingBlockFontColor:[{selector:".ct-trending-block",variable:"color",type:"color:default",responsive:!0},{selector:".ct-trending-block",variable:"linkHoverColor",type:"color:hover",responsive:!0}]},Object(s.handleBackgroundOptionFor)({id:"trending_block_background",selector:".ct-trending-block",responsive:!0})),wp.customize.bind("change",(function(e){return o[e.id]&&(Array.isArray(o[e.id])?o[e.id]:[o[e.id]]).map((function(t){return l(t,e())}))})),wp.customize("trending_block_visibility",(function(e){return e.bind((function(e){return Object(s.responsiveClassesFor)("trending_block_visibility",document.querySelector(".ct-trending-block"))}))}))}]);
|
framework/extensions/trending/static/js/sync.js
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
import { handleVariablesFor } from 'customizer-sync-helpers'
|
2 |
import {
|
3 |
handleBackgroundOptionFor,
|
4 |
-
responsiveClassesFor
|
|
|
5 |
} from 'blocksy-customizer-sync'
|
6 |
|
7 |
handleVariablesFor({
|
@@ -9,31 +10,39 @@ handleVariablesFor({
|
|
9 |
selector: '.ct-trending-block',
|
10 |
variable: 'padding',
|
11 |
responsive: true,
|
12 |
-
unit: ''
|
13 |
},
|
14 |
|
|
|
|
|
|
|
|
|
|
|
15 |
trendingBlockFontColor: [
|
16 |
{
|
17 |
selector: '.ct-trending-block',
|
18 |
variable: 'color',
|
19 |
-
type: 'color:default'
|
|
|
20 |
},
|
21 |
|
22 |
{
|
23 |
selector: '.ct-trending-block',
|
24 |
variable: 'linkHoverColor',
|
25 |
-
type: 'color:hover'
|
26 |
-
|
|
|
27 |
],
|
28 |
|
29 |
...handleBackgroundOptionFor({
|
30 |
id: 'trending_block_background',
|
31 |
-
selector: '.ct-trending-block'
|
32 |
-
|
|
|
33 |
})
|
34 |
|
35 |
-
wp.customize('trending_block_visibility', value =>
|
36 |
-
value.bind(to =>
|
37 |
responsiveClassesFor(
|
38 |
'trending_block_visibility',
|
39 |
document.querySelector('.ct-trending-block')
|
1 |
import { handleVariablesFor } from 'customizer-sync-helpers'
|
2 |
import {
|
3 |
handleBackgroundOptionFor,
|
4 |
+
responsiveClassesFor,
|
5 |
+
typographyOption,
|
6 |
} from 'blocksy-customizer-sync'
|
7 |
|
8 |
handleVariablesFor({
|
10 |
selector: '.ct-trending-block',
|
11 |
variable: 'padding',
|
12 |
responsive: true,
|
13 |
+
unit: '',
|
14 |
},
|
15 |
|
16 |
+
...typographyOption({
|
17 |
+
id: 'trendingBlockPostsFont',
|
18 |
+
selector: '.ct-trending-block .ct-item-title',
|
19 |
+
}),
|
20 |
+
|
21 |
trendingBlockFontColor: [
|
22 |
{
|
23 |
selector: '.ct-trending-block',
|
24 |
variable: 'color',
|
25 |
+
type: 'color:default',
|
26 |
+
responsive: true,
|
27 |
},
|
28 |
|
29 |
{
|
30 |
selector: '.ct-trending-block',
|
31 |
variable: 'linkHoverColor',
|
32 |
+
type: 'color:hover',
|
33 |
+
responsive: true,
|
34 |
+
},
|
35 |
],
|
36 |
|
37 |
...handleBackgroundOptionFor({
|
38 |
id: 'trending_block_background',
|
39 |
+
selector: '.ct-trending-block',
|
40 |
+
responsive: true,
|
41 |
+
}),
|
42 |
})
|
43 |
|
44 |
+
wp.customize('trending_block_visibility', (value) =>
|
45 |
+
value.bind((to) =>
|
46 |
responsiveClassesFor(
|
47 |
'trending_block_visibility',
|
48 |
document.querySelector('.ct-trending-block')
|
framework/extensions/widgets/static/bundle/main.css
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
/**
|
2 |
-
* - v1.7.
|
3 |
*
|
4 |
* Copyright (c) 2021
|
5 |
* Licensed GPLv2+
|
6 |
*/
|
7 |
|
8 |
-
.ct-posts-widget ul{--listItemSpacing: 20px}.ct-posts-widget ul a{display:var(--display, grid)}.ct-posts-widget ul .ct-image-container{align-self:start}.ct-posts-widget ul .ct-entry-content{align-self:center}.ct-posts-widget ul .ct-post-title{--fontSize: 15px;--lineHeight: 1.5;--fontWeight: 500;word-break:break-word}.ct-posts-widget ul .ct-entry-excerpt{margin-top:5px;font-size:13px;color:var(--color)}.ct-posts-widget ul .ct-entry-meta{color:var(--color)}.ct-posts-widget ul .ct-entry-meta span:not(:last-child):after{content:'/';margin:0 3px}.ct-posts-widget ul[data-type="rounded"] a,.ct-posts-widget ul[data-type="large-small"] a,.ct-posts-widget ul[data-type="small-thumbs"] a{grid-template-columns:25% 1fr;grid-column-gap:20px}.ct-posts-widget ul[data-type="no-thumbs"] a{--display: block}.ct-posts-widget ul[data-type="large-thumbs"]{--listItemSpacing: 25px}.ct-posts-widget ul[data-type="large-thumbs"] a{--display: block}.ct-posts-widget ul[data-type="large-thumbs"] a .ct-image-container{margin-bottom:12px}.ct-posts-widget ul[data-type="large-thumbs"] a .ct-post-title{--fontSize: 17px;--fontWeight: 600}.ct-posts-widget ul[data-type="large-small"] li:first-child{--listItemSpacing: 30px}.ct-posts-widget ul[data-type="large-small"] li:first-child a{--display: block}.ct-posts-widget ul[data-type="large-small"] li:first-child a .ct-image-container{margin-bottom:20px}.ct-posts-widget ul[data-type="large-small"] li:first-child a .ct-post-title{--fontSize: 17px;--fontWeight: 600}.ct-posts-widget ul[data-type="rounded"] .ct-image-container{overflow:hidden;border-radius:100%;-webkit-mask-image:-webkit-radial-gradient(white, black)}.ct-posts-widget ul[data-type="numbered"]{counter-reset:ct-counter}.ct-posts-widget ul[data-type="numbered"] a{grid-template-columns:34px 1fr;grid-column-gap:15px}.ct-posts-widget ul[data-type="numbered"] a:before{counter-increment:ct-counter;content:counter(ct-counter);display:flex;align-items:center;justify-content:center;width:34px;height:34px;font-size:12px;font-weight:700;border-radius:100%;border:1px solid #E5E5E5;transition:var(--transition)}.ct-posts-widget ul[data-type="numbered"] a:hover:before{color:#fff;border-color:var(--paletteColor1);background:var(--paletteColor1)}.ct-posts-widget ul[data-type="numbered"] .ct-post-title::before{content:'';display:block;height:0;width:0;margin-top:calc((1 - 1.65) * 0.5em)}.ct-quote-widget{--color: #fff;position:relative;min-height:250px;border-radius:7px;padding:70px 40px 60px 60px !important;background:var(--paletteColor1) !important}.ct-quote-widget:before{position:absolute;top:50px;left:35px;content:"”";font-family:"Helvetica Neue", Helvetica, Arial, sans-serif;font-weight:bold;font-size:200px;line-height:150px;opacity:0.3;width:80px;height:80px;display:flex;justify-content:center;transform:rotate(180deg)}.ct-quote-widget .ct-quote-author{display:grid;grid-template-columns:40px 1fr;grid-column-gap:15px;align-items:center;margin-top:25px;--fontWeight: 500}.ct-quote-widget .ct-quote-author figure{max-width:40px;border-radius:100%}.ct-about-me-widget figure{margin-bottom:15px}.ct-about-me-widget figure[data-size="small"]{max-width:90px}.ct-about-me-widget figure[data-size="medium"]{max-width:140px}.ct-about-me-widget figure[data-shape="square"]{border-radius:2px}.ct-about-me-widget figure[data-shape="rounded"]{border-radius:100%}.ct-about-me-widget .ct-about-me-name{display:flex;flex-direction:column}.ct-about-me-widget .ct-about-me-name:not(:last-child){margin-bottom:15px}.ct-about-me-widget .ct-about-me-text:not(:last-child){margin-bottom:25px}.ct-about-me-widget .ct-about-me-link{font-size:13px;font-weight:normal}.ct-about-me-widget [data-alignment="center"]{text-align:center}.ct-about-me-widget [data-alignment="center"] .ct-social-box{justify-content:center}.ct-about-me-widget [data-alignment="right"]{text-align:right}.ct-about-me-widget [data-alignment="right"] .ct-social-box{justify-content:flex-end}.ct-about-me-widget [data-type="bordered"]{padding:35px 25px;border-radius:7px;background:#fff;border:1px dashed rgba(0,0,0,0.1)}.ct-facebook-like-box{overflow:hidden;--fbHeader: 0px;--fbFacepile: 0px}.ct-facebook-like-box .fb-page{display:flex;justify-content:center}.ct-facebook-like-box .fb-page[data-small-header="false"]{--fbHeader: 130px}.ct-facebook-like-box .fb-page[data-small-header="true"]{--fbHeader: 70px}.ct-facebook-like-box .fb-page[data-show-facepile="true"]{--fbFacepile: 84px}.ct-facebook-like-box .fb-page:not([data-tabs="timeline"]){min-height:calc(var(--fbHeader) + var(--fbFacepile))}.ct-facebook-like-box .fb-page[data-tabs="timeline"]{min-height:500px}.ct-facebook-like-box iframe{max-width:500px;margin:0 auto}.ct-socials-widget [data-icons-type*="solid"],.ct-about-me-widget [data-icons-type*="solid"],.ct-contact-info-widget [data-icons-type*="solid"]{--icon-
|
1 |
/**
|
2 |
+
* - v1.7.63
|
3 |
*
|
4 |
* Copyright (c) 2021
|
5 |
* Licensed GPLv2+
|
6 |
*/
|
7 |
|
8 |
+
.ct-posts-widget ul{--listItemSpacing: 20px}.ct-posts-widget ul a{display:var(--display, grid)}.ct-posts-widget ul .ct-image-container{align-self:start}.ct-posts-widget ul .ct-entry-content{align-self:center}.ct-posts-widget ul .ct-post-title{--fontSize: 15px;--lineHeight: 1.5;--fontWeight: 500;word-break:break-word}.ct-posts-widget ul .ct-entry-excerpt{margin-top:5px;font-size:13px;color:var(--color)}.ct-posts-widget ul .ct-entry-meta{color:var(--color)}.ct-posts-widget ul .ct-entry-meta span:not(:last-child):after{content:'/';margin:0 3px}.ct-posts-widget ul[data-type="rounded"] a,.ct-posts-widget ul[data-type="large-small"] a,.ct-posts-widget ul[data-type="small-thumbs"] a{grid-template-columns:25% 1fr;grid-column-gap:20px}.ct-posts-widget ul[data-type="no-thumbs"] a{--display: block}.ct-posts-widget ul[data-type="large-thumbs"]{--listItemSpacing: 25px}.ct-posts-widget ul[data-type="large-thumbs"] a{--display: block}.ct-posts-widget ul[data-type="large-thumbs"] a .ct-image-container{margin-bottom:12px}.ct-posts-widget ul[data-type="large-thumbs"] a .ct-post-title{--fontSize: 17px;--fontWeight: 600}.ct-posts-widget ul[data-type="large-small"] li:first-child{--listItemSpacing: 30px}.ct-posts-widget ul[data-type="large-small"] li:first-child a{--display: block}.ct-posts-widget ul[data-type="large-small"] li:first-child a .ct-image-container{margin-bottom:20px}.ct-posts-widget ul[data-type="large-small"] li:first-child a .ct-post-title{--fontSize: 17px;--fontWeight: 600}.ct-posts-widget ul[data-type="rounded"] .ct-image-container{overflow:hidden;border-radius:100%;-webkit-mask-image:-webkit-radial-gradient(white, black)}.ct-posts-widget ul[data-type="numbered"]{counter-reset:ct-counter}.ct-posts-widget ul[data-type="numbered"] a{grid-template-columns:34px 1fr;grid-column-gap:15px}.ct-posts-widget ul[data-type="numbered"] a:before{counter-increment:ct-counter;content:counter(ct-counter);display:flex;align-items:center;justify-content:center;width:34px;height:34px;font-size:12px;font-weight:700;border-radius:100%;border:1px solid #E5E5E5;transition:var(--transition)}.ct-posts-widget ul[data-type="numbered"] a:hover:before{color:#fff;border-color:var(--paletteColor1);background:var(--paletteColor1)}.ct-posts-widget ul[data-type="numbered"] .ct-post-title::before{content:'';display:block;height:0;width:0;margin-top:calc((1 - 1.65) * 0.5em)}.ct-quote-widget{--color: #fff;position:relative;min-height:250px;border-radius:7px;padding:70px 40px 60px 60px !important;background:var(--paletteColor1) !important}.ct-quote-widget:before{position:absolute;top:50px;left:35px;content:"”";font-family:"Helvetica Neue", Helvetica, Arial, sans-serif;font-weight:bold;font-size:200px;line-height:150px;opacity:0.3;width:80px;height:80px;display:flex;justify-content:center;transform:rotate(180deg)}.ct-quote-widget .ct-quote-author{display:grid;grid-template-columns:40px 1fr;grid-column-gap:15px;align-items:center;margin-top:25px;--fontWeight: 500}.ct-quote-widget .ct-quote-author figure{max-width:40px;border-radius:100%}.ct-about-me-widget figure{margin-bottom:15px}.ct-about-me-widget figure[data-size="small"]{max-width:90px}.ct-about-me-widget figure[data-size="medium"]{max-width:140px}.ct-about-me-widget figure[data-shape="square"]{border-radius:2px}.ct-about-me-widget figure[data-shape="rounded"]{border-radius:100%}.ct-about-me-widget .ct-about-me-name{display:flex;flex-direction:column}.ct-about-me-widget .ct-about-me-name:not(:last-child){margin-bottom:15px}.ct-about-me-widget .ct-about-me-text:not(:last-child){margin-bottom:25px}.ct-about-me-widget .ct-about-me-link{font-size:13px;font-weight:normal}.ct-about-me-widget [data-alignment="center"]{text-align:center}.ct-about-me-widget [data-alignment="center"] .ct-social-box{justify-content:center}.ct-about-me-widget [data-alignment="right"]{text-align:right}.ct-about-me-widget [data-alignment="right"] .ct-social-box{justify-content:flex-end}.ct-about-me-widget [data-type="bordered"]{padding:35px 25px;border-radius:7px;background:#fff;border:1px dashed rgba(0,0,0,0.1)}.ct-facebook-like-box{overflow:hidden;--fbHeader: 0px;--fbFacepile: 0px}.ct-facebook-like-box .fb-page{display:flex;justify-content:center}.ct-facebook-like-box .fb-page[data-small-header="false"]{--fbHeader: 130px}.ct-facebook-like-box .fb-page[data-small-header="true"]{--fbHeader: 70px}.ct-facebook-like-box .fb-page[data-show-facepile="true"]{--fbFacepile: 84px}.ct-facebook-like-box .fb-page:not([data-tabs="timeline"]){min-height:calc(var(--fbHeader) + var(--fbFacepile))}.ct-facebook-like-box .fb-page[data-tabs="timeline"]{min-height:500px}.ct-facebook-like-box iframe{max-width:500px;margin:0 auto}.ct-socials-widget [data-icons-type*="solid"],.ct-about-me-widget [data-icons-type*="solid"],.ct-contact-info-widget [data-icons-type*="solid"]{--icon-hover-color: #fff;--background-color: rgba(218, 222, 228, 0.3);--background-hover-color: var(--paletteColor1)}.ct-socials-widget [data-icons-type*="outline"],.ct-about-me-widget [data-icons-type*="outline"],.ct-contact-info-widget [data-icons-type*="outline"]{--icon-hover-color: var(--paletteColor1);--background-color: rgba(218, 222, 228, 1);--background-hover-color: var(--paletteColor1)}
|
framework/extensions/widgets/static/sass/social-icons.scss
CHANGED
@@ -2,20 +2,13 @@
|
|
2 |
.ct-about-me-widget,
|
3 |
.ct-contact-info-widget {
|
4 |
|
5 |
-
// [data-icons-type*="simple"] {
|
6 |
-
// --icon-color: rgba(100, 110, 119, 1);
|
7 |
-
// --icon-hover-color: var(--paletteColor1);
|
8 |
-
// }
|
9 |
-
|
10 |
[data-icons-type*="solid"] {
|
11 |
-
--icon-color: rgba(100, 110, 119, 1);
|
12 |
--icon-hover-color: #fff;
|
13 |
--background-color: rgba(218, 222, 228, 0.3);
|
14 |
--background-hover-color: var(--paletteColor1);
|
15 |
}
|
16 |
|
17 |
[data-icons-type*="outline"] {
|
18 |
-
--icon-color: rgba(100, 110, 119, 1);
|
19 |
--icon-hover-color: var(--paletteColor1);
|
20 |
--background-color: rgba(218, 222, 228, 1);
|
21 |
--background-hover-color: var(--paletteColor1);
|
2 |
.ct-about-me-widget,
|
3 |
.ct-contact-info-widget {
|
4 |
|
|
|
|
|
|
|
|
|
|
|
5 |
[data-icons-type*="solid"] {
|
|
|
6 |
--icon-hover-color: #fff;
|
7 |
--background-color: rgba(218, 222, 228, 0.3);
|
8 |
--background-hover-color: var(--paletteColor1);
|
9 |
}
|
10 |
|
11 |
[data-icons-type*="outline"] {
|
|
|
12 |
--icon-hover-color: var(--paletteColor1);
|
13 |
--background-color: rgba(218, 222, 228, 1);
|
14 |
--background-hover-color: var(--paletteColor1);
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Requires PHP: 7.0
|
|
5 |
Tested up to: 5.6
|
6 |
License: GPLv2 or later
|
7 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
8 |
-
Stable tag: 1.7.
|
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.7.62: 2021-02-23
|
27 |
- Fix: Dashboard JavaScript fixes
|
28 |
|
5 |
Tested up to: 5.6
|
6 |
License: GPLv2 or later
|
7 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
8 |
+
Stable tag: 1.7.63
|
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.7.63: 2021-02-24
|
27 |
+
- Improvement: Cookies consent extension use SameSite=Lax in cookies
|
28 |
+
- Fix: Correctly order scripts in trending and cookies consent
|
29 |
+
|
30 |
1.7.62: 2021-02-23
|
31 |
- Fix: Dashboard JavaScript fixes
|
32 |
|
static/bundle/dashboard.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/**
|
2 |
-
* - v1.7.
|
3 |
*
|
4 |
* Copyright (c) 2021
|
5 |
* Licensed GPLv2+
|
1 |
/**
|
2 |
+
* - v1.7.63
|
3 |
*
|
4 |
* Copyright (c) 2021
|
5 |
* Licensed GPLv2+
|
static/bundle/options.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/**
|
2 |
-
* - v1.7.
|
3 |
*
|
4 |
* Copyright (c) 2021
|
5 |
* Licensed GPLv2+
|
1 |
/**
|
2 |
+
* - v1.7.63
|
3 |
*
|
4 |
* Copyright (c) 2021
|
5 |
* Licensed GPLv2+
|
trunk/LICENSE.txt
DELETED
@@ -1,339 +0,0 @@
|
|
1 |
-
GNU GENERAL PUBLIC LICENSE
|
2 |
-
Version 2, June 1991
|
3 |
-
|
4 |
-
Copyright (C) 1989, 1991 Free Software Foundation, Inc., <http://fsf.org/>
|
5 |
-
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
6 |
-
Everyone is permitted to copy and distribute verbatim copies
|
7 |
-
of this license document, but changing it is not allowed.
|
8 |
-
|
9 |
-
Preamble
|
10 |
-
|
11 |
-
The licenses for most software are designed to take away your
|
12 |
-
freedom to share and change it. By contrast, the GNU General Public
|
13 |
-
License is intended to guarantee your freedom to share and change free
|
14 |
-
software--to make sure the software is free for all its users. This
|
15 |
-
General Public License applies to most of the Free Software
|
16 |
-
Foundation's software and to any other program whose authors commit to
|
17 |
-
using it. (Some other Free Software Foundation software is covered by
|
18 |
-
the GNU Lesser General Public License instead.) You can apply it to
|
19 |
-
your programs, too.
|
20 |
-
|
21 |
-
When we speak of free software, we are referring to freedom, not
|
22 |
-
price. Our General Public Licenses are designed to make sure that you
|
23 |
-
have the freedom to distribute copies of free software (and charge for
|
24 |
-
this service if you wish), that you receive source code or can get it
|
25 |
-
if you want it, that you can change the software or use pieces of it
|
26 |
-
in new free programs; and that you know you can do these things.
|
27 |
-
|
28 |
-
To protect your rights, we need to make restrictions that forbid
|
29 |
-
anyone to deny you these rights or to ask you to surrender the rights.
|
30 |
-
These restrictions translate to certain responsibilities for you if you
|
31 |
-
distribute copies of the software, or if you modify it.
|
32 |
-
|
33 |
-
For example, if you distribute copies of such a program, whether
|
34 |
-
gratis or for a fee, you must give the recipients all the rights that
|
35 |
-
you have. You must make sure that they, too, receive or can get the
|
36 |
-
source code. And you must show them these terms so they know their
|
37 |
-
rights.
|
38 |
-
|
39 |
-
We protect your rights with two steps: (1) copyright the software, and
|
40 |
-
(2) offer you this license which gives you legal permission to copy,
|
41 |
-
distribute and/or modify the software.
|
42 |
-
|
43 |
-
Also, for each author's protection and ours, we want to make certain
|
44 |
-
that everyone understands that there is no warranty for this free
|
45 |
-
software. If the software is modified by someone else and passed on, we
|
46 |
-
want its recipients to know that what they have is not the original, so
|
47 |
-
that any problems introduced by others will not reflect on the origina
|
48 |
-
authors' reputations.
|
49 |
-
|
50 |
-
Finally, any free program is threatened constantly by software
|
51 |
-
patents. We wish to avoid the danger that redistributors of a free
|
52 |
-
program will individually obtain patent licenses, in effect making the
|
53 |
-
program proprietary. To prevent this, we have made it clear that any
|
54 |
-
patent must be licensed for everyone's free use or not licensed at all.
|
55 |
-
|
56 |
-
The precise terms and conditions for copying, distribution and
|
57 |
-
modification follow.
|
58 |
-
|
59 |
-
GNU GENERAL PUBLIC LICENSE
|
60 |
-
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
61 |
-
|
62 |
-
0. This License applies to any program or other work which contains
|
63 |
-
a notice placed by the copyright holder saying it may be distributed
|
64 |
-
under the terms of this General Public License. The "Program", below,
|
65 |
-
refers to any such program or work, and a "work based on the Program"
|
66 |
-
means either the Program or any derivative work under copyright law:
|
67 |
-
that is to say, a work containing the Program or a portion of it,
|
68 |
-
either verbatim or with modifications and/or translated into another
|
69 |
-
language. (Hereinafter, translation is included without limitation in
|
70 |
-
the term "modification".) Each licensee is addressed as "you".
|
71 |
-
|
72 |
-
Activities other than copying, distribution and modification are not
|
73 |
-
covered by this License; they are outside its scope. The act of
|
74 |
-
running the Program is not restricted, and the output from the Program
|
75 |
-
is covered only if its contents constitute a work based on the
|
76 |
-
Program (independent of having been made by running the Program).
|
77 |
-
Whether that is true depends on what the Program does.
|
78 |
-
|
79 |
-
1. You may copy and distribute verbatim copies of the Program's
|
80 |
-
source code as you receive it, in any medium, provided that you
|
81 |
-
conspicuously and appropriately publish on each copy an appropriate
|
82 |
-
copyright notice and disclaimer of warranty; keep intact all the
|
83 |
-
notices that refer to this License and to the absence of any warranty;
|
84 |
-
and give any other recipients of the Program a copy of this License
|
85 |
-
along with the Program.
|
86 |
-
|
87 |
-
You may charge a fee for the physical act of transferring a copy, and
|
88 |
-
you may at your option offer warranty protection in exchange for a fee.
|
89 |
-
|
90 |
-
2. You may modify your copy or copies of the Program or any portion
|
91 |
-
of it, thus forming a work based on the Program, and copy and
|
92 |
-
distribute such modifications or work under the terms of Section 1
|
93 |
-
above, provided that you also meet all of these conditions:
|
94 |
-
|
95 |
-
a) You must cause the modified files to carry prominent notices
|
96 |
-
stating that you changed the files and the date of any change.
|
97 |
-
|
98 |
-
b) You must cause any work that you distribute or publish, that in
|
99 |
-
whole or in part contains or is derived from the Program or any
|
100 |
-
part thereof, to be licensed as a whole at no charge to all third
|
101 |
-
parties under the terms of this License.
|
102 |
-
|
103 |
-
c) If the modified program normally reads commands interactively
|
104 |
-
when run, you must cause it, when started running for such
|
105 |
-
interactive use in the most ordinary way, to print or display an
|
106 |
-
announcement including an appropriate copyright notice and a
|
107 |
-
notice that there is no warranty (or else, saying that you provide
|
108 |
-
a warranty) and that users may redistribute the program under
|
109 |
-
these conditions, and telling the user how to view a copy of this
|
110 |
-
License. (Exception: if the Program itself is interactive but
|
111 |
-
does not normally print such an announcement, your work based on
|
112 |
-
the Program is not required to print an announcement.)
|
113 |
-
|
114 |
-
These requirements apply to the modified work as a whole. If
|
115 |
-
identifiable sections of that work are not derived from the Program,
|
116 |
-
and can be reasonably considered independent and separate works in
|
117 |
-
themselves, then this License, and its terms, do not apply to those
|
118 |
-
sections when you distribute them as separate works. But when you
|
119 |
-
distribute the same sections as part of a whole which is a work based
|
120 |
-
on the Program, the distribution of the whole must be on the terms of
|
121 |
-
this License, whose permissions for other licensees extend to the
|
122 |
-
entire whole, and thus to each and every part regardless of who wrote it.
|
123 |
-
|
124 |
-
Thus, it is not the intent of this section to claim rights or contest
|
125 |
-
your rights to work written entirely by you; rather, the intent is to
|
126 |
-
exercise the right to control the distribution of derivative or
|
127 |
-
collective works based on the Program.
|
128 |
-
|
129 |
-
In addition, mere aggregation of another work not based on the Program
|
130 |
-
with the Program (or with a work based on the Program) on a volume of
|
131 |
-
a storage or distribution medium does not bring the other work under
|
132 |
-
the scope of this License.
|
133 |
-
|
134 |
-
3. You may copy and distribute the Program (or a work based on it,
|
135 |
-
under Section 2) in object code or executable form under the terms of
|
136 |
-
Sections 1 and 2 above provided that you also do one of the following:
|
137 |
-
|
138 |
-
a) Accompany it with the complete corresponding machine-readable
|
139 |
-
source code, which must be distributed under the terms of Sections
|
140 |
-
1 and 2 above on a medium customarily used for software interchange; or,
|
141 |
-
|
142 |
-
b) Accompany it with a written offer, valid for at least three
|
143 |
-
years, to give any third party, for a charge no more than your
|
144 |
-
cost of physically performing source distribution, a complete
|
145 |
-
machine-readable copy of the corresponding source code, to be
|
146 |
-
distributed under the terms of Sections 1 and 2 above on a medium
|
147 |
-
customarily used for software interchange; or,
|
148 |
-
|
149 |
-
c) Accompany it with the information you received as to the offer
|
150 |
-
to distribute corresponding source code. (This alternative is
|
151 |
-
allowed only for noncommercial distribution and only if you
|
152 |
-
received the program in object code or executable form with such
|
153 |
-
an offer, in accord with Subsection b above.)
|
154 |
-
|
155 |
-
The source code for a work means the preferred form of the work for
|
156 |
-
making modifications to it. For an executable work, complete source
|
157 |
-
code means all the source code for all modules it contains, plus any
|
158 |
-
associated interface definition files, plus the scripts used to
|
159 |
-
control compilation and installation of the executable. However, as a
|
160 |
-
special exception, the source code distributed need not include
|
161 |
-
anything that is normally distributed (in either source or binary
|
162 |
-
form) with the major components (compiler, kernel, and so on) of the
|
163 |
-
operating system on which the executable runs, unless that component
|
164 |
-
itself accompanies the executable.
|
165 |
-
|
166 |
-
If distribution of executable or object code is made by offering
|
167 |
-
access to copy from a designated place, then offering equivalent
|
168 |
-
access to copy the source code from the same place counts as
|
169 |
-
distribution of the source code, even though third parties are not
|
170 |
-
compelled to copy the source along with the object code.
|
171 |
-
|
172 |
-
4. You may not copy, modify, sublicense, or distribute the Program
|
173 |
-
except as expressly provided under this License. Any attempt
|
174 |
-
otherwise to copy, modify, sublicense or distribute the Program is
|
175 |
-
void, and will automatically terminate your rights under this License.
|
176 |
-
However, parties who have received copies, or rights, from you under
|
177 |
-
this License will not have their licenses terminated so long as such
|
178 |
-
parties remain in full compliance.
|
179 |
-
|
180 |
-
5. You are not required to accept this License, since you have not
|
181 |
-
signed it. However, nothing else grants you permission to modify or
|
182 |
-
distribute the Program or its derivative works. These actions are
|
183 |
-
prohibited by law if you do not accept this License. Therefore, by
|
184 |
-
modifying or distributing the Program (or any work based on the
|
185 |
-
Program), you indicate your acceptance of this License to do so, and
|
186 |
-
all its terms and conditions for copying, distributing or modifying
|
187 |
-
the Program or works based on it.
|
188 |
-
|
189 |
-
6. Each time you redistribute the Program (or any work based on the
|
190 |
-
Program), the recipient automatically receives a license from the
|
191 |
-
original licensor to copy, distribute or modify the Program subject to
|
192 |
-
these terms and conditions. You may not impose any further
|
193 |
-
restrictions on the recipients' exercise of the rights granted herein.
|
194 |
-
You are not responsible for enforcing compliance by third parties to
|
195 |
-
this License.
|
196 |
-
|
197 |
-
7. If, as a consequence of a court judgment or allegation of patent
|
198 |
-
infringement or for any other reason (not limited to patent issues),
|
199 |
-
conditions are imposed on you (whether by court order, agreement or
|
200 |
-
otherwise) that contradict the conditions of this License, they do not
|
201 |
-
excuse you from the conditions of this License. If you cannot
|
202 |
-
distribute so as to satisfy simultaneously your obligations under this
|
203 |
-
License and any other pertinent obligations, then as a consequence you
|
204 |
-
may not distribute the Program at all. For example, if a patent
|
205 |
-
license would not permit royalty-free redistribution of the Program by
|
206 |
-
all those who receive copies directly or indirectly through you, then
|
207 |
-
the only way you could satisfy both it and this License would be to
|
208 |
-
refrain entirely from distribution of the Program.
|
209 |
-
|
210 |
-
If any portion of this section is held invalid or unenforceable under
|
211 |
-
any particular circumstance, the balance of the section is intended to
|
212 |
-
apply and the section as a whole is intended to apply in other
|
213 |
-
circumstances.
|
214 |
-
|
215 |
-
It is not the purpose of this section to induce you to infringe any
|
216 |
-
patents or other property right claims or to contest validity of any
|
217 |
-
such claims; this section has the sole purpose of protecting the
|
218 |
-
integrity of the free software distribution system, which is
|
219 |
-
implemented by public license practices. Many people have made
|
220 |
-
generous contributions to the wide range of software distributed
|
221 |
-
through that system in reliance on consistent application of that
|
222 |
-
system; it is up to the author/donor to decide if he or she is willing
|
223 |
-
to distribute software through any other system and a licensee cannot
|
224 |
-
impose that choice.
|
225 |
-
|
226 |
-
This section is intended to make thoroughly clear what is believed to
|
227 |
-
be a consequence of the rest of this License.
|
228 |
-
|
229 |
-
8. If the distribution and/or use of the Program is restricted in
|
230 |
-
certain countries either by patents or by copyrighted interfaces, the
|
231 |
-
original copyright holder who places the Program under this License
|
232 |
-
may add an explicit geographical distribution limitation excluding
|
233 |
-
those countries, so that distribution is permitted only in or among
|
234 |
-
countries not thus excluded. In such case, this License incorporates
|
235 |
-
the limitation as if written in the body of this License.
|
236 |
-
|
237 |
-
9. The Free Software Foundation may publish revised and/or new versions
|
238 |
-
of the General Public License from time to time. Such new versions will
|
239 |
-
be similar in spirit to the present version, but may differ in detail to
|
240 |
-
address new problems or concerns.
|
241 |
-
|
242 |
-
Each version is given a distinguishing version number. If the Program
|
243 |
-
specifies a version number of this License which applies to it and "any
|
244 |
-
later version", you have the option of following the terms and conditions
|
245 |
-
either of that version or of any later version published by the Free
|
246 |
-
Software Foundation. If the Program does not specify a version number of
|
247 |
-
this License, you may choose any version ever published by the Free Software
|
248 |
-
Foundation.
|
249 |
-
|
250 |
-
10. If you wish to incorporate parts of the Program into other free
|
251 |
-
programs whose distribution conditions are different, write to the author
|
252 |
-
to ask for permission. For software which is copyrighted by the Free
|
253 |
-
Software Foundation, write to the Free Software Foundation; we sometimes
|
254 |
-
make exceptions for this. Our decision will be guided by the two goals
|
255 |
-
of preserving the free status of all derivatives of our free software and
|
256 |
-
of promoting the sharing and reuse of software generally.
|
257 |
-
|
258 |
-
NO WARRANTY
|
259 |
-
|
260 |
-
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
261 |
-
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
262 |
-
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
263 |
-
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
264 |
-
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
265 |
-
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
266 |
-
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
267 |
-
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
268 |
-
REPAIR OR CORRECTION.
|
269 |
-
|
270 |
-
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
271 |
-
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
272 |
-
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
273 |
-
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
274 |
-
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
275 |
-
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
276 |
-
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
277 |
-
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
278 |
-
POSSIBILITY OF SUCH DAMAGES.
|
279 |
-
|
280 |
-
END OF TERMS AND CONDITIONS
|
281 |
-
|
282 |
-
How to Apply These Terms to Your New Programs
|
283 |
-
|
284 |
-
If you develop a new program, and you want it to be of the greatest
|
285 |
-
possible use to the public, the best way to achieve this is to make it
|
286 |
-
free software which everyone can redistribute and change under these terms.
|
287 |
-
|
288 |
-
To do so, attach the following notices to the program. It is safest
|
289 |
-
to attach them to the start of each source file to most effectively
|
290 |
-
convey the exclusion of warranty; and each file should have at least
|
291 |
-
the "copyright" line and a pointer to where the full notice is found.
|
292 |
-
|
293 |
-
{description}
|
294 |
-
Copyright (C) {year} {fullname}
|
295 |
-
|
296 |
-
This program is free software; you can redistribute it and/or modify
|
297 |
-
it under the terms of the GNU General Public License as published by
|
298 |
-
the Free Software Foundation; either version 2 of the License, or
|
299 |
-
(at your option) any later version.
|
300 |
-
|
301 |
-
This program is distributed in the hope that it will be useful,
|
302 |
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
303 |
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
304 |
-
GNU General Public License for more details.
|
305 |
-
|
306 |
-
You should have received a copy of the GNU General Public License along
|
307 |
-
with this program; if not, write to the Free Software Foundation, Inc.,
|
308 |
-
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
309 |
-
|
310 |
-
Also add information on how to contact you by electronic and paper mail.
|
311 |
-
|
312 |
-
If the program is interactive, make it output a short notice like this
|
313 |
-
when it starts in an interactive mode:
|
314 |
-
|
315 |
-
Gnomovision version 69, Copyright (C) year name of author
|
316 |
-
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
317 |
-
This is free software, and you are welcome to redistribute it
|
318 |
-
under certain conditions; type `show c' for details.
|
319 |
-
|
320 |
-
The hypothetical commands `show w' and `show c' should show the appropriate
|
321 |
-
parts of the General Public License. Of course, the commands you use may
|
322 |
-
be called something other than `show w' and `show c'; they could even be
|
323 |
-
mouse-clicks or menu items--whatever suits your program.
|
324 |
-
|
325 |
-
You should also get your employer (if you work as a programmer) or your
|
326 |
-
school, if any, to sign a "copyright disclaimer" for the program, if
|
327 |
-
necessary. Here is a sample; alter the names:
|
328 |
-
|
329 |
-
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
330 |
-
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
331 |
-
|
332 |
-
{signature of Ty Coon}, 1 April 1989
|
333 |
-
Ty Coon, President of Vice
|
334 |
-
|
335 |
-
This General Public License does not permit incorporating your program into
|
336 |
-
proprietary programs. If your program is a subroutine library, you may
|
337 |
-
consider it more useful to permit linking proprietary applications with the
|
338 |
-
library. If this is what you want to do, use the GNU Lesser General
|
339 |
-
Public License instead of this License
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/blocksy-companion.php
DELETED
@@ -1,131 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
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.7.62
|
7 |
-
Author: CreativeThemes
|
8 |
-
Author URI: https://creativethemes.com
|
9 |
-
Text Domain: blc
|
10 |
-
Domain Path: /languages/
|
11 |
-
License: GPLv2 or later
|
12 |
-
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
13 |
-
*/
|
14 |
-
|
15 |
-
if ( !defined( 'ABSPATH' ) ) {
|
16 |
-
exit;
|
17 |
-
// Exit if accessed directly.
|
18 |
-
}
|
19 |
-
|
20 |
-
|
21 |
-
if ( function_exists( 'blc_fs' ) ) {
|
22 |
-
blc_fs()->set_basename( false, __FILE__ );
|
23 |
-
} else {
|
24 |
-
|
25 |
-
if ( !function_exists( 'blc_fs' ) ) {
|
26 |
-
global $blc_fs ;
|
27 |
-
|
28 |
-
if ( !isset( $blc_fs ) ) {
|
29 |
-
if ( !defined( 'WP_FS__PRODUCT_5115_MULTISITE' ) ) {
|
30 |
-
define( 'WP_FS__PRODUCT_5115_MULTISITE', true );
|
31 |
-
}
|
32 |
-
require_once dirname( __FILE__ ) . '/freemius/start.php';
|
33 |
-
$has_account = true;
|
34 |
-
$instance = \Freemius::instance( 5115, 'blocksy-companion', true );
|
35 |
-
|
36 |
-
if ( in_array( 'white-label', get_option( 'blocksy_active_extensions', [] ) ) && $instance->is_plan( 'agency' ) ) {
|
37 |
-
$settings = get_option( 'blocksy_ext_white_label_settings', [] );
|
38 |
-
if ( $settings && isset( $settings['hide_billing_account'] ) && $settings['hide_billing_account'] ) {
|
39 |
-
$has_account = false;
|
40 |
-
}
|
41 |
-
}
|
42 |
-
|
43 |
-
$blc_fs = fs_dynamic_init( array(
|
44 |
-
'id' => '5115',
|
45 |
-
'slug' => 'blocksy-companion',
|
46 |
-
'premium_slug' => 'blocksy-companion-pro',
|
47 |
-
'type' => 'plugin',
|
48 |
-
'public_key' => 'pk_b00a5cbae90b2e948015a7d0710f5',
|
49 |
-
'premium_suffix' => 'PRO',
|
50 |
-
'is_premium' => false,
|
51 |
-
'has_addons' => false,
|
52 |
-
'has_paid_plans' => true,
|
53 |
-
'menu' => ( true ? [
|
54 |
-
'slug' => 'ct-dashboard',
|
55 |
-
'support' => false,
|
56 |
-
'contact' => false,
|
57 |
-
'pricing' => true,
|
58 |
-
'account' => $has_account,
|
59 |
-
] : [
|
60 |
-
'support' => false,
|
61 |
-
'contact' => false,
|
62 |
-
'pricing' => false,
|
63 |
-
'account' => false,
|
64 |
-
] ),
|
65 |
-
'is_live' => true,
|
66 |
-
) );
|
67 |
-
function blc_fs()
|
68 |
-
{
|
69 |
-
global $blc_fs ;
|
70 |
-
return $blc_fs;
|
71 |
-
}
|
72 |
-
|
73 |
-
blc_fs();
|
74 |
-
do_action( 'blc_fs_loaded' );
|
75 |
-
blc_fs()->add_filter( 'freemius_pricing_js_path', function ( $d ) {
|
76 |
-
// return BLOCKSY_PATH . 'freemius-pricing/freemius-pricing.js';
|
77 |
-
// Only in DEV!!
|
78 |
-
return WP_CONTENT_DIR . '/plugins/blocksy-companion/freemius-pricing/freemius-pricing.js';
|
79 |
-
} );
|
80 |
-
}
|
81 |
-
|
82 |
-
}
|
83 |
-
|
84 |
-
define( 'BLOCKSY__FILE__', __FILE__ );
|
85 |
-
define( 'BLOCKSY_PLUGIN_BASE', plugin_basename( BLOCKSY__FILE__ ) );
|
86 |
-
define( 'BLOCKSY_PATH', plugin_dir_path( BLOCKSY__FILE__ ) );
|
87 |
-
define( 'BLOCKSY_URL', plugin_dir_url( BLOCKSY__FILE__ ) );
|
88 |
-
add_action( 'init', function () {
|
89 |
-
/**
|
90 |
-
* Load Blocksy textdomain.
|
91 |
-
*
|
92 |
-
* Load gettext translate for Blocksy text domain.
|
93 |
-
*/
|
94 |
-
load_plugin_textdomain( 'blc', false, dirname( BLOCKSY_PLUGIN_BASE ) . '/languages' );
|
95 |
-
} );
|
96 |
-
|
97 |
-
if ( !version_compare( PHP_VERSION, '7.0', '>=' ) ) {
|
98 |
-
add_action( 'admin_notices', 'blc_fail_php_version' );
|
99 |
-
} elseif ( !version_compare( get_bloginfo( 'version' ), '5.0', '>=' ) ) {
|
100 |
-
add_action( 'admin_notices', 'blc_fail_wp_version' );
|
101 |
-
} else {
|
102 |
-
require BLOCKSY_PATH . 'plugin.php';
|
103 |
-
}
|
104 |
-
|
105 |
-
/**
|
106 |
-
* Blocksy admin notice for minimum PHP version.
|
107 |
-
*
|
108 |
-
* Warning when the site doesn't have the minimum required PHP version.
|
109 |
-
*/
|
110 |
-
function blc_fail_php_version()
|
111 |
-
{
|
112 |
-
/* translators: %s: PHP version */
|
113 |
-
$message = sprintf( esc_html__( 'Blocksy requires PHP version %s+, plugin is currently NOT RUNNING.', 'blc' ), '7.0' );
|
114 |
-
$html_message = sprintf( '<div class="error">%s</div>', wpautop( $message ) );
|
115 |
-
echo wp_kses_post( $html_message ) ;
|
116 |
-
}
|
117 |
-
|
118 |
-
/**
|
119 |
-
* Blocksy admin notice for minimum WordPress version.
|
120 |
-
*
|
121 |
-
* Warning when the site doesn't have the minimum required WordPress version.
|
122 |
-
*/
|
123 |
-
function blc_fail_wp_version()
|
124 |
-
{
|
125 |
-
/* translators: %s: WordPress version */
|
126 |
-
$message = sprintf( esc_html__( 'Blocksy requires WordPress version %s+. Because you are using an earlier version, the plugin is currently NOT RUNNING.', 'blc' ), '5.0' );
|
127 |
-
$html_message = sprintf( '<div class="error">%s</div>', wpautop( $message ) );
|
128 |
-
echo wp_kses_post( $html_message ) ;
|
129 |
-
}
|
130 |
-
|
131 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/framework/autoload.php
DELETED
@@ -1,135 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace Blocksy;
|
4 |
-
|
5 |
-
if (! defined('ABSPATH')) {
|
6 |
-
exit; // Exit if accessed directly.
|
7 |
-
}
|
8 |
-
|
9 |
-
/**
|
10 |
-
* Blocksy autoloader.
|
11 |
-
*/
|
12 |
-
class Autoloader {
|
13 |
-
|
14 |
-
/**
|
15 |
-
* Classes map.
|
16 |
-
*
|
17 |
-
* Maps Blocksy classes to file names.
|
18 |
-
*
|
19 |
-
* @static
|
20 |
-
*
|
21 |
-
* @var array Classes used by blocksy.
|
22 |
-
*/
|
23 |
-
private static function get_classes_map() {
|
24 |
-
return apply_filters('blocksy_autoloader_classes_map', [
|
25 |
-
'ExtensionsManager' => 'framework/extensions-manager.php',
|
26 |
-
'ExtensionsManagerApi' => 'framework/extensions-manager-api.php',
|
27 |
-
'Dashboard' => 'framework/dashboard.php',
|
28 |
-
'ThemeIntegration' => 'framework/theme-integration.php',
|
29 |
-
'CacheResetManager' => 'framework/cache-reset-manager.php',
|
30 |
-
|
31 |
-
'GoogleAnalytics' => 'framework/features/google-analytics.php',
|
32 |
-
'OpenGraphMetaData' => 'framework/features/opengraph-meta-data.php',
|
33 |
-
'HeaderAdditions' => 'framework/features/header.php',
|
34 |
-
'ConditionsManager' => 'framework/features/conditions-manager.php',
|
35 |
-
|
36 |
-
'Cli' => 'framework/cli.php',
|
37 |
-
|
38 |
-
'DynamicCss' => 'framework/features/dynamic-css.php',
|
39 |
-
'CustomizerOptionsManager' => 'framework/features/customizer-options-manager.php',
|
40 |
-
'DemoInstall' => 'framework/features/demo-install.php',
|
41 |
-
'DemoInstallContentExport' => 'framework/features/demo-install/content-export.php',
|
42 |
-
'DemoInstallWidgetsExport' => 'framework/features/demo-install/widgets-export.php',
|
43 |
-
'DemoInstallOptionsExport' => 'framework/features/demo-install/options-export.php',
|
44 |
-
|
45 |
-
'DemoInstallChildThemeInstaller' => 'framework/features/demo-install/child-theme.php',
|
46 |
-
'DemoInstallPluginsInstaller' => 'framework/features/demo-install/required-plugins.php',
|
47 |
-
'DemoInstallPluginsUninstaller' => 'framework/features/demo-install/plugins-uninstaller.php',
|
48 |
-
'DemoInstallContentInstaller' => 'framework/features/demo-install/content-installer.php',
|
49 |
-
'DemoInstallOptionsInstaller' => 'framework/features/demo-install/options-import.php',
|
50 |
-
'DemoInstallWidgetsInstaller' => 'framework/features/demo-install/widgets-import.php',
|
51 |
-
'DemoInstallContentEraser' => 'framework/features/demo-install/content-eraser.php',
|
52 |
-
'DemoInstallFakeContentEraser' => 'framework/features/demo-install/fake-content-eraser.php',
|
53 |
-
'DemoInstallFinalActions' => 'framework/features/demo-install/install-finish.php',
|
54 |
-
'Premium' => 'framework/premium/pro.php',
|
55 |
-
|
56 |
-
/**
|
57 |
-
* No namespace
|
58 |
-
*/
|
59 |
-
'_BlocksyWidgetFactory' => 'framework/widgets-manager.php',
|
60 |
-
'_Blocksy_WP_Import' => 'framework/features/demo-install/wp-importer.php',
|
61 |
-
]);
|
62 |
-
}
|
63 |
-
|
64 |
-
/**
|
65 |
-
* Run autoloader.
|
66 |
-
*
|
67 |
-
* Register a function as `__autoload()` implementation.
|
68 |
-
*
|
69 |
-
* @static
|
70 |
-
*/
|
71 |
-
public static function run() {
|
72 |
-
spl_autoload_register([__CLASS__, 'autoload']);
|
73 |
-
}
|
74 |
-
|
75 |
-
/**
|
76 |
-
* Load class.
|
77 |
-
*
|
78 |
-
* For a given class name, require the class file.
|
79 |
-
*
|
80 |
-
* @static
|
81 |
-
*
|
82 |
-
* @param string $relative_class_name Class name.
|
83 |
-
*/
|
84 |
-
private static function load_class($relative_class_name) {
|
85 |
-
if (isset( self::get_classes_map()[$relative_class_name])) {
|
86 |
-
$filename = BLOCKSY_PATH . '/' . self::get_classes_map()[$relative_class_name];
|
87 |
-
} else {
|
88 |
-
$filename = strtolower(
|
89 |
-
preg_replace(
|
90 |
-
['/([a-z])([A-Z])/', '/_/', '/\\\/'],
|
91 |
-
['$1-$2', '-', DIRECTORY_SEPARATOR],
|
92 |
-
$relative_class_name
|
93 |
-
)
|
94 |
-
);
|
95 |
-
|
96 |
-
$filename = BLOCKSY_PATH . $filename . '.php';
|
97 |
-
}
|
98 |
-
|
99 |
-
if (is_readable($filename)) {
|
100 |
-
require $filename;
|
101 |
-
}
|
102 |
-
}
|
103 |
-
|
104 |
-
/**
|
105 |
-
* Autoload.
|
106 |
-
*
|
107 |
-
* For a given class, check if it exist and load it.
|
108 |
-
*
|
109 |
-
* @static
|
110 |
-
*
|
111 |
-
* @param string $class Class name.
|
112 |
-
*/
|
113 |
-
private static function autoload($class) {
|
114 |
-
if (
|
115 |
-
0 !== strpos($class, __NAMESPACE__ . '\\')
|
116 |
-
&&
|
117 |
-
! isset(self::get_classes_map()['_' . $class])
|
118 |
-
) {
|
119 |
-
return;
|
120 |
-
}
|
121 |
-
|
122 |
-
$relative_class_name = preg_replace('/^' . __NAMESPACE__ . '\\\/', '', $class);
|
123 |
-
|
124 |
-
$final_class_name = __NAMESPACE__ . '\\' . $relative_class_name;
|
125 |
-
|
126 |
-
if (isset(self::get_classes_map()['_' . $relative_class_name])) {
|
127 |
-
$final_class_name = $relative_class_name;
|
128 |
-
$relative_class_name = '_' . $relative_class_name;
|
129 |
-
}
|
130 |
-
|
131 |
-
if (! class_exists($final_class_name)) {
|
132 |
-
self::load_class($relative_class_name);
|
133 |
-
}
|
134 |
-
}
|
135 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/framework/cache-reset-manager.php
DELETED
@@ -1,175 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace Blocksy;
|
4 |
-
|
5 |
-
class CacheResetManager {
|
6 |
-
public function __construct() {
|
7 |
-
add_action(
|
8 |
-
'blocksy:cache-manager:purge-all',
|
9 |
-
function () {
|
10 |
-
$this->run_cache_purge();
|
11 |
-
}
|
12 |
-
);
|
13 |
-
|
14 |
-
add_action(
|
15 |
-
'upgrader_process_complete',
|
16 |
-
[$this, 'handle_update'],
|
17 |
-
10, 2
|
18 |
-
);
|
19 |
-
}
|
20 |
-
|
21 |
-
public function handle_update($upgrader, $options) {
|
22 |
-
if ($options['action'] !== 'update') {
|
23 |
-
return;
|
24 |
-
}
|
25 |
-
|
26 |
-
if ($options['type'] === 'theme') {
|
27 |
-
if (in_array('blocksy', $options['themes'])) {
|
28 |
-
$this->run_cache_purge();
|
29 |
-
do_action('blocksy:dynamic-css:regenere_css_files');
|
30 |
-
}
|
31 |
-
}
|
32 |
-
|
33 |
-
if ($options['type'] === 'plugin') {
|
34 |
-
$plugins = [];
|
35 |
-
|
36 |
-
if (isset($options['plugins']) && is_array($options['plugins'])) {
|
37 |
-
$plugins = $options['plugins'];
|
38 |
-
}
|
39 |
-
|
40 |
-
if (in_array(BLOCKSY_PLUGIN_BASE, $plugins)) {
|
41 |
-
$this->run_cache_purge();
|
42 |
-
do_action('blocksy:dynamic-css:regenere_css_files');
|
43 |
-
}
|
44 |
-
}
|
45 |
-
}
|
46 |
-
|
47 |
-
public function run_cache_purge() {
|
48 |
-
# Purge all W3 Total Cache
|
49 |
-
if (function_exists('w3tc_pgcache_flush')) {
|
50 |
-
w3tc_pgcache_flush();
|
51 |
-
}
|
52 |
-
|
53 |
-
if (function_exists('w3tc_flush_all')) {
|
54 |
-
w3tc_flush_all();
|
55 |
-
}
|
56 |
-
|
57 |
-
# Purge WP Super Cache
|
58 |
-
if (function_exists('wp_cache_clear_cache')) {
|
59 |
-
wp_cache_clear_cache();
|
60 |
-
}
|
61 |
-
|
62 |
-
if (isset($GLOBALS['wp_fastest_cache'])) {
|
63 |
-
if (method_exists($GLOBALS['wp_fastest_cache'], 'deleteCache')) {
|
64 |
-
$GLOBALS['wp_fastest_cache']->deleteCache();
|
65 |
-
$GLOBALS['wp_fastest_cache']->deleteCache(true);
|
66 |
-
}
|
67 |
-
}
|
68 |
-
|
69 |
-
if (function_exists('cachify_flush_cache')) {
|
70 |
-
cachify_flush_cache();
|
71 |
-
}
|
72 |
-
|
73 |
-
if (class_exists("comet_cache")) {
|
74 |
-
\comet_cache::clear();
|
75 |
-
}
|
76 |
-
|
77 |
-
if (class_exists("zencache")) {
|
78 |
-
\zencache::clear();
|
79 |
-
}
|
80 |
-
|
81 |
-
if (class_exists('LiteSpeed_Cache_Tags')) {
|
82 |
-
\LiteSpeed_Cache_Tags::add_purge_tag('*');
|
83 |
-
}
|
84 |
-
|
85 |
-
if (function_exists('sg_cachepress_purge_cache')) {
|
86 |
-
sg_cachepress_purge_cache();
|
87 |
-
}
|
88 |
-
|
89 |
-
if (class_exists('LiteSpeed_Cache_Purge')) {
|
90 |
-
\LiteSpeed_Cache_Purge::purge_all('Clear Cache For Me');
|
91 |
-
}
|
92 |
-
|
93 |
-
if (class_exists('WP_Optimize') && defined('WPO_PLUGIN_MAIN_PATH')) {
|
94 |
-
if (! class_exists('WP_Optimize_Cache_Commands')) include_once(WPO_PLUGIN_MAIN_PATH . 'cache/class-cache-commands.php');
|
95 |
-
if (! class_exists('WP_Optimize_Minify_Commands')) include_once(WPO_PLUGIN_MAIN_PATH . 'minify/class-wp-optimize-minify-commands.php');
|
96 |
-
if (! class_exists('WP_Optimize_Minify_Cache_Functions')) include_once(WPO_PLUGIN_MAIN_PATH . 'minify/class-wp-optimize-minify-cache-functions.php');
|
97 |
-
|
98 |
-
if (class_exists('WP_Optimize_Cache_Commands')) {
|
99 |
-
$wpoptimize_cache_commands = new \WP_Optimize_Cache_Commands();
|
100 |
-
$wpoptimize_cache_commands->purge_page_cache();
|
101 |
-
}
|
102 |
-
|
103 |
-
if (class_exists('WP_Optimize_Minify_Commands')) {
|
104 |
-
$wpoptimize_minify_commands = new \WP_Optimize_Minify_Commands();
|
105 |
-
$wpoptimize_minify_commands->purge_minify_cache();
|
106 |
-
}
|
107 |
-
}
|
108 |
-
|
109 |
-
if (
|
110 |
-
class_exists('WPaaS\Plugin')
|
111 |
-
&&
|
112 |
-
function_exists('fastvelocity_godaddy_request')
|
113 |
-
) {
|
114 |
-
fastvelocity_godaddy_request('BAN');
|
115 |
-
}
|
116 |
-
|
117 |
-
# Purge WP Engine
|
118 |
-
if (class_exists("WpeCommon")) {
|
119 |
-
if (method_exists('WpeCommon', 'purge_memcached')) {
|
120 |
-
\WpeCommon::purge_memcached();
|
121 |
-
}
|
122 |
-
|
123 |
-
if (method_exists('WpeCommon', 'clear_maxcdn_cache')) {
|
124 |
-
\WpeCommon::clear_maxcdn_cache();
|
125 |
-
}
|
126 |
-
|
127 |
-
if (method_exists('WpeCommon', 'purge_varnish_cache')) {
|
128 |
-
\WpeCommon::purge_varnish_cache();
|
129 |
-
}
|
130 |
-
}
|
131 |
-
|
132 |
-
if (function_exists('rocket_clean_domain')) {
|
133 |
-
rocket_clean_domain();
|
134 |
-
}
|
135 |
-
|
136 |
-
if (function_exists('wp_cache_clean_cache')) {
|
137 |
-
global $file_prefix;
|
138 |
-
wp_cache_clean_cache( $file_prefix, true );
|
139 |
-
}
|
140 |
-
|
141 |
-
if (class_exists('autoptimizeCache')) {
|
142 |
-
\autoptimizeCache::clearall();
|
143 |
-
}
|
144 |
-
|
145 |
-
if (function_exists('fvm_purge_all')) {
|
146 |
-
fvm_purge_all();
|
147 |
-
}
|
148 |
-
|
149 |
-
if (function_exists('fastvelocity_purge_others')) {
|
150 |
-
fastvelocity_purge_others();
|
151 |
-
}
|
152 |
-
|
153 |
-
# wordpress default cache
|
154 |
-
if (function_exists('wp_cache_flush')) {
|
155 |
-
wp_cache_flush();
|
156 |
-
}
|
157 |
-
|
158 |
-
# https://wordpress.org/plugins/hummingbird-performance/
|
159 |
-
do_action('wphb_clear_page_cache');
|
160 |
-
|
161 |
-
if (class_exists('Swift_Performance_Cache')) {
|
162 |
-
\Swift_Performance_Cache::clear_all_cache();
|
163 |
-
}
|
164 |
-
|
165 |
-
if (class_exists('\SiteGround_Optimizer\Supercacher\Supercacher')) {
|
166 |
-
\SiteGround_Optimizer\Supercacher\Supercacher::get_instance()->purge_everything();
|
167 |
-
do_action('siteground_delete_assets');
|
168 |
-
}
|
169 |
-
|
170 |
-
if (class_exists('ShortPixelAI')) {
|
171 |
-
\ShortPixelAI::clear_css_cache();
|
172 |
-
}
|
173 |
-
}
|
174 |
-
}
|
175 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/framework/cli.php
DELETED
@@ -1,82 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace Blocksy;
|
4 |
-
|
5 |
-
class Cli {
|
6 |
-
public function __construct() {
|
7 |
-
\WP_CLI::add_command('blocksy demo plugins', function ($args) {
|
8 |
-
$plugins = [
|
9 |
-
'coblocks',
|
10 |
-
'elementor',
|
11 |
-
'contact-form-7',
|
12 |
-
'woocommerce'
|
13 |
-
];
|
14 |
-
|
15 |
-
foreach ($plugins as $plugin) {
|
16 |
-
\WP_CLI::runcommand('plugin install ' . $plugin, [] );
|
17 |
-
\WP_CLI::runcommand('plugin activate ' . $plugin, [] );
|
18 |
-
}
|
19 |
-
});
|
20 |
-
|
21 |
-
\WP_CLI::add_command('blocksy demo options', function ($args) {
|
22 |
-
$options = new DemoInstallOptionsInstaller([
|
23 |
-
'has_streaming' => false,
|
24 |
-
'demo_name' => 'Main:elementor'
|
25 |
-
]);
|
26 |
-
|
27 |
-
$options->import();
|
28 |
-
});
|
29 |
-
|
30 |
-
\WP_CLI::add_command('blocksy widgets drop', function ($args) {
|
31 |
-
$sidebars_widgets = get_option('sidebars_widgets', array());
|
32 |
-
|
33 |
-
if (! isset($sidebars_widgets['wp_inactive_widgets'])) {
|
34 |
-
$sidebars_widgets['wp_inactive_widgets'] = [];
|
35 |
-
}
|
36 |
-
|
37 |
-
foreach ($sidebars_widgets as $sidebar_id => $widgets) {
|
38 |
-
if (! $widgets) continue;
|
39 |
-
if ($sidebar_id === 'wp_inactive_widgets') {
|
40 |
-
continue;
|
41 |
-
}
|
42 |
-
|
43 |
-
if ($sidebar_id === 'array_version') {
|
44 |
-
continue;
|
45 |
-
}
|
46 |
-
|
47 |
-
foreach ($widgets as $widget_id) {
|
48 |
-
$sidebars_widgets['wp_inactive_widgets'][] = $widget_id;
|
49 |
-
}
|
50 |
-
|
51 |
-
$sidebars_widgets[$sidebar_id] = [];
|
52 |
-
}
|
53 |
-
|
54 |
-
update_option('sidebars_widgets', $sidebars_widgets);
|
55 |
-
unset($sidebars_widgets['array_version']);
|
56 |
-
|
57 |
-
set_theme_mod('sidebars_widgets', [
|
58 |
-
'time' => time(),
|
59 |
-
'data' => $sidebars_widgets
|
60 |
-
]);
|
61 |
-
});
|
62 |
-
|
63 |
-
\WP_CLI::add_command('blocksy demo widgets', function ($args) {
|
64 |
-
$options = new DemoInstallWidgetsInstaller([
|
65 |
-
'has_streaming' => false,
|
66 |
-
'demo_name' => 'Blocksy News:elementor'
|
67 |
-
]);
|
68 |
-
|
69 |
-
$options->import();
|
70 |
-
});
|
71 |
-
|
72 |
-
\WP_CLI::add_command('blocksy demo content', function ($args) {
|
73 |
-
$options = new DemoInstallContentInstaller([
|
74 |
-
'has_streaming' => false,
|
75 |
-
'demo_name' => 'Main:elementor'
|
76 |
-
]);
|
77 |
-
|
78 |
-
$options->import();
|
79 |
-
});
|
80 |
-
}
|
81 |
-
}
|
82 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/framework/dashboard.php
DELETED
@@ -1,149 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace Blocksy;
|
4 |
-
|
5 |
-
class Dashboard {
|
6 |
-
public function __construct() {
|
7 |
-
add_action(
|
8 |
-
'admin_enqueue_scripts',
|
9 |
-
[ $this, 'enqueue_static' ],
|
10 |
-
100
|
11 |
-
);
|
12 |
-
|
13 |
-
add_action('admin_body_class', function ($class) {
|
14 |
-
if (blc_fs()->is_activation_mode()) {
|
15 |
-
$class .= ' blocksy-fs-optin-dashboard';
|
16 |
-
}
|
17 |
-
|
18 |
-
return $class;
|
19 |
-
});
|
20 |
-
|
21 |
-
blc_fs()->add_filter(
|
22 |
-
'connect-message_on-premium',
|
23 |
-
function ($text) {
|
24 |
-
if (strpos($text, '<br>') !== false) {
|
25 |
-
$exploded_message = explode('<br>', $text);
|
26 |
-
|
27 |
-
$text = '<span>' . $exploded_message[0] . '</span>' . $exploded_message[1];
|
28 |
-
}
|
29 |
-
|
30 |
-
return $text;
|
31 |
-
}
|
32 |
-
);
|
33 |
-
|
34 |
-
blc_fs()->add_filter(
|
35 |
-
'connect_message_on_update',
|
36 |
-
function (
|
37 |
-
$message,
|
38 |
-
$user_first_name,
|
39 |
-
$product_title,
|
40 |
-
$user_login,
|
41 |
-
$site_link,
|
42 |
-
$freemius_link
|
43 |
-
) {
|
44 |
-
$is_network_upgrade_mode = ( fs_is_network_admin() && blc_fs()->is_network_upgrade_mode() );
|
45 |
-
$slug = blc_fs()->get_slug();
|
46 |
-
$is_gdpr_required = \FS_GDPR_Manager::instance()->is_required();
|
47 |
-
$hey_x_text = esc_html( sprintf( fs_text_x_inline( 'Hey %s,', 'greeting', 'hey-x', $slug ), $user_first_name ) );
|
48 |
-
|
49 |
-
$default_optin_message = $is_gdpr_required ?
|
50 |
-
fs_text_inline( 'Never miss an important update - opt in to our security & feature updates notifications, educational content, offers, and non-sensitive diagnostic tracking with %4$s. If you skip this, that\'s okay! %1$s will still work just fine.', 'connect-message_on-update', $slug ) :
|
51 |
-
fs_text_inline( 'Never miss an important update - opt in to our security & feature updates notifications, and non-sensitive diagnostic tracking with %4$s. If you skip this, that\'s okay! %1$s will still work just fine.', 'connect-message_on-update', $slug );
|
52 |
-
|
53 |
-
return (($is_network_upgrade_mode ?
|
54 |
-
'' :
|
55 |
-
/* translators: %s: name (e.g. Hey John,) */
|
56 |
-
'<span>' . $hey_x_text . '</span>'
|
57 |
-
) .
|
58 |
-
sprintf(
|
59 |
-
esc_html( $default_optin_message ),
|
60 |
-
'<b>' . esc_html( blc_fs()->get_plugin_name() ) . '</b>',
|
61 |
-
'<b>' . $user_login . '</b>',
|
62 |
-
$site_link,
|
63 |
-
$freemius_link
|
64 |
-
));
|
65 |
-
|
66 |
-
}, 10, 6
|
67 |
-
);
|
68 |
-
|
69 |
-
blc_fs()->add_action('connect/before', function () {
|
70 |
-
$path = dirname(__FILE__) . '/views/optin.php';
|
71 |
-
|
72 |
-
echo blc_call_fn(
|
73 |
-
['fn' => 'blocksy_render_view'],
|
74 |
-
$path,
|
75 |
-
[]
|
76 |
-
);
|
77 |
-
});
|
78 |
-
|
79 |
-
blc_fs()->add_action('connect/after', function () {
|
80 |
-
echo '</div>';
|
81 |
-
});
|
82 |
-
|
83 |
-
add_action(
|
84 |
-
'wp_ajax_blocksy_fs_connect_again',
|
85 |
-
function () {
|
86 |
-
if (! current_user_can('edit_theme_options')) {
|
87 |
-
wp_send_json_error();
|
88 |
-
}
|
89 |
-
|
90 |
-
blc_fs()->connect_again();
|
91 |
-
wp_send_json_success();
|
92 |
-
}
|
93 |
-
);
|
94 |
-
|
95 |
-
add_filter(
|
96 |
-
'blocksy_dashboard_localizations',
|
97 |
|