Section Block - Version 1.1.0

Version Description

  • Fixed: issue with block height.
  • Added: CSS variables polyfill
  • Improved: Only modified styles are added as inline variables
Download this release

Release Info

Developer wedoplugins
Plugin Icon 128x128 Section Block
Version 1.1.0
Comparing to
See all releases

Code changes from version 1.0.0 to 1.1.0

assets/banner-1544x500.jpg DELETED
Binary file
assets/banner-772x250.jpg DELETED
Binary file
assets/icon-128x128.png DELETED
Binary file
assets/icon-256x256.png DELETED
Binary file
build/background-position-events.min.js CHANGED
@@ -1 +1,165 @@
1
- !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.d(t,"a",function(){return o});var o=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,o;return t=e,(n=[{key:"getOffsetLeft",value:function(e){var t=0;do{isNaN(e.offsetLeft)||(t+=e.offsetLeft)}while(e=e.offsetParent);return t}},{key:"update",value:function(e){var t,n=document.getElementById("adminmenuback"),r=0,o=this;null!==n&&(t="none"!==getComputedStyle(n,null).display,r=t?document.body.classList.contains("folded")?36:160:0),Array.from(document.querySelectorAll(".wp-block-wdp-section-block__background")).forEach(function(e){var t;e.style.marginLeft=null,t=o.getOffsetLeft(e),e.style.marginLeft=-1*(t-r)+"px"}),!0===e&&setTimeout(function(){o.update()})}}])&&r(t.prototype,n),o&&r(t,o),e}())},,function(e,t,n){"use strict";n.r(t);var r=n(0);jQuery(document).ready(function(){jQuery(window).on("load",function(){var e;r.a.update(),null!==(e=document.getElementById("editor"))&&new MutationObserver(function(e,t){var n=!0,o=!1,u=void 0;try{for(var a,i=e[Symbol.iterator]();!(n=(a=i.next()).done);n=!0)a.value.target.classList.contains("edit-post-layout")&&r.a.update()}catch(e){o=!0,u=e}finally{try{n||null==i.return||i.return()}finally{if(o)throw u}}}).observe(e,{attributes:!0,childList:!0,subtree:!0})}),jQuery(document).on("wp-collapse-menu",function(){r.a.update()}),jQuery(window).resize(function(){r.a.update()}),jQuery(window).on("orientationchange",function(){r.a.update()})})}]);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.d(t,"a",function(){return o});var o=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,o;return t=e,(n=[{key:"getOffsetLeft",value:function(e){var t=0;do{null!==e.offsetParent&&(null===(e=e.offsetParent)||0===typeof e.offsetLeft||isNaN(e.offsetLeft)||(t+=e.offsetLeft))}while(e.offsetParent);return t}},{key:"update",value:function(e){var t,n=document.getElementById("adminmenuback"),r=0,o=this;null!==n&&(t="none"!==getComputedStyle(n,null).display,r=t?document.body.classList.contains("folded")?36:160:0),Array.from(document.querySelectorAll(".wp-block-wdp-section-block__background")).forEach(function(e){var t;e.style.marginLeft=null,t=o.getOffsetLeft(e),e.style.marginLeft=-1*(t-r)+"px"}),!0===e&&setTimeout(function(){o.update()})}}])&&r(t.prototype,n),o&&r(t,o),e}())},,function(e,t,n){"use strict";
2
+ /*!
3
+ * css-vars-ponyfill
4
+ * v1.17.2
5
+ * https://github.com/jhildenbiddle/css-vars-ponyfill
6
+ * (c) 2018-2019 John Hildenbiddle <http://hildenbiddle.com>
7
+ * MIT license
8
+ */
9
+ function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}
10
+ /*!
11
+ * get-css-data
12
+ * v1.6.3
13
+ * https://github.com/jhildenbiddle/get-css-data
14
+ * (c) 2018-2019 John Hildenbiddle <http://hildenbiddle.com>
15
+ * MIT license
16
+ */()}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={mimeType:t.mimeType||null,onBeforeSend:t.onBeforeSend||Function.prototype,onSuccess:t.onSuccess||Function.prototype,onError:t.onError||Function.prototype,onComplete:t.onComplete||Function.prototype},r=Array.isArray(e)?e:[e],o=Array.apply(null,Array(r.length)).map(function(e){return null});function a(){return!("<"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").trim().charAt(0))}function s(e,t){n.onError(e,r[t],t)}function c(e,t){var a=n.onSuccess(e,r[t],t);e=!1===a?"":a||e,o[t]=e,-1===o.indexOf(null)&&n.onComplete(o)}var i=document.createElement("a");r.forEach(function(e,t){if(i.setAttribute("href",e),i.href=String(i.href),Boolean(document.all&&!window.atob)&&i.host.split(":")[0]!==location.host.split(":")[0]){if(i.protocol===location.protocol){var r=new XDomainRequest;r.open("GET",e),r.timeout=0,r.onprogress=Function.prototype,r.ontimeout=Function.prototype,r.onload=function(){a(r.responseText)?c(r.responseText,t):s(r,t)},r.onerror=function(e){s(r,t)},setTimeout(function(){r.send()},0)}else console.warn("Internet Explorer 9 Cross-Origin (CORS) requests must use the same protocol (".concat(e,")")),s(null,t)}else{var o=new XMLHttpRequest;o.open("GET",e),n.mimeType&&o.overrideMimeType&&o.overrideMimeType(n.mimeType),n.onBeforeSend(o,e,t),o.onreadystatechange=function(){4===o.readyState&&(200===o.status&&a(o.responseText)?c(o.responseText,t):s(o,t))},o.send()}})}
17
+ /**
18
+ * Gets CSS data from <style> and <link> nodes (including @imports), then
19
+ * returns data in order processed by DOM. Allows specifying nodes to
20
+ * include/exclude and filtering CSS data using RegEx.
21
+ *
22
+ * @preserve
23
+ * @param {object} [options] The options object
24
+ * @param {object} [options.rootElement=document] Root element to traverse for
25
+ * <link> and <style> nodes.
26
+ * @param {string} [options.include] CSS selector matching <link> and <style>
27
+ * nodes to include
28
+ * @param {string} [options.exclude] CSS selector matching <link> and <style>
29
+ * nodes to exclude
30
+ * @param {object} [options.filter] Regular expression used to filter node CSS
31
+ * data. Each block of CSS data is tested against the filter,
32
+ * and only matching data is included.
33
+ * @param {object} [options.useCSSOM=false] Determines if CSS data will be
34
+ * collected from a stylesheet's runtime values instead of its
35
+ * text content. This is required to get accurate CSS data
36
+ * when a stylesheet has been modified using the deleteRule()
37
+ * or insertRule() methods because these modifications will
38
+ * not be reflected in the stylesheet's text content.
39
+ * @param {function} [options.onBeforeSend] Callback before XHR is sent. Passes
40
+ * 1) the XHR object, 2) source node reference, and 3) the
41
+ * source URL as arguments.
42
+ * @param {function} [options.onSuccess] Callback on each CSS node read. Passes
43
+ * 1) CSS text, 2) source node reference, and 3) the source
44
+ * URL as arguments.
45
+ * @param {function} [options.onError] Callback on each error. Passes 1) the XHR
46
+ * object for inspection, 2) soure node reference, and 3) the
47
+ * source URL that failed (either a <link> href or an @import)
48
+ * as arguments
49
+ * @param {function} [options.onComplete] Callback after all nodes have been
50
+ * processed. Passes 1) concatenated CSS text, 2) an array of
51
+ * CSS text in DOM order, and 3) an array of nodes in DOM
52
+ * order as arguments.
53
+ *
54
+ * @example
55
+ *
56
+ * getCssData({
57
+ * rootElement: document,
58
+ * include : 'style,link[rel="stylesheet"]',
59
+ * exclude : '[href="skip.css"]',
60
+ * filter : /red/,
61
+ * useCSSOM : false,
62
+ * onBeforeSend(xhr, node, url) {
63
+ * // ...
64
+ * }
65
+ * onSuccess(cssText, node, url) {
66
+ * // ...
67
+ * }
68
+ * onError(xhr, node, url) {
69
+ * // ...
70
+ * },
71
+ * onComplete(cssText, cssArray, nodeArray) {
72
+ * // ...
73
+ * }
74
+ * });
75
+ */function s(e){var t={cssComments:/\/\*[\s\S]+?\*\//g,cssImports:/(?:@import\s*)(?:url\(\s*)?(?:['"])([^'"]*)(?:['"])(?:\s*\))?(?:[^;]*;)/g},n={rootElement:e.rootElement||document,include:e.include||'style,link[rel="stylesheet"]',exclude:e.exclude||null,filter:e.filter||null,useCSSOM:e.useCSSOM||!1,onBeforeSend:e.onBeforeSend||Function.prototype,onSuccess:e.onSuccess||Function.prototype,onError:e.onError||Function.prototype,onComplete:e.onComplete||Function.prototype},r=Array.apply(null,n.rootElement.querySelectorAll(n.include)).filter(function(e){return t=e,r=n.exclude,!(t.matches||t.matchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector).call(t,r);var t,r}),o=Array.apply(null,Array(r.length)).map(function(e){return null});function s(){if(-1===o.indexOf(null)){var e=o.join("");n.onComplete(e,o,r)}}function i(e,t,r,c){var i=n.onSuccess(e,r,c);(function e(t,r,o,s){var c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[];var l=u(t,o,i);l.rules.length?a(l.absoluteUrls,{onBeforeSend:function(e,t,o){n.onBeforeSend(e,r,t)},onSuccess:function(e,t,o){var a=n.onSuccess(e,r,t),s=u(e=!1===a?"":a||e,t,i);return s.rules.forEach(function(t,n){e=e.replace(t,s.absoluteRules[n])}),e},onError:function(n,a,u){c.push({xhr:n,url:a}),i.push(l.rules[u]),e(t,r,o,s,c,i)},onComplete:function(n){n.forEach(function(e,n){t=t.replace(l.rules[n],e)}),e(t,r,o,s,c,i)}}):s(t,c)})(e=void 0!==i&&!1===Boolean(i)?"":i||e,r,c,function(e,a){null===o[t]&&(a.forEach(function(e){return n.onError(e.xhr,r,e.url)}),!n.filter||n.filter.test(e)?o[t]=e:o[t]="",s())})}function u(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o={};return o.rules=(e.replace(t.cssComments,"").match(t.cssImports)||[]).filter(function(e){return-1===r.indexOf(e)}),o.urls=o.rules.map(function(e){return e.replace(t.cssImports,"$1")}),o.absoluteUrls=o.urls.map(function(e){return c(e,n)}),o.absoluteRules=o.rules.map(function(e,t){var r=o.urls[t],a=c(o.absoluteUrls[t],n);return e.replace(r,a)}),o}r.length?r.forEach(function(e,t){var r=e.getAttribute("href"),u=e.getAttribute("rel"),l="LINK"===e.nodeName&&r&&u&&"stylesheet"===u.toLowerCase(),f="STYLE"===e.nodeName;if(l)a(r,{mimeType:"text/css",onBeforeSend:function(t,r,o){n.onBeforeSend(t,e,r)},onSuccess:function(n,o,a){var s=c(r,location.href);i(n,t,e,s)},onError:function(r,a,c){o[t]="",n.onError(r,e,a),s()}});else if(f){var d=e.textContent;n.useCSSOM&&(d=Array.apply(null,e.sheet.cssRules).map(function(e){return e.cssText}).join("")),i(d,t,e,location.href)}else o[t]="",s()}):n.onComplete("",[])}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location.href,n=document.implementation.createHTMLDocument(""),r=n.createElement("base"),o=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(o),r.href=t,o.href=e,o.href}n.r(t);var i=u;function u(e,t,n){e instanceof RegExp&&(e=l(e,n)),t instanceof RegExp&&(t=l(t,n));var r=f(e,t,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+e.length,r[1]),post:n.slice(r[1]+t.length)}}function l(e,t){var n=t.match(e);return n?n[0]:null}function f(e,t,n){var r,o,a,s,c,i=n.indexOf(e),u=n.indexOf(t,i+1),l=i;if(i>=0&&u>0){for(r=[],a=n.length;l>=0&&!c;)l==i?(r.push(l),i=n.indexOf(e,l+1)):1==r.length?c=[r.pop(),u]:((o=r.pop())<a&&(a=o,s=u),u=n.indexOf(t,l+1)),l=i<u&&i>=0?i:u;r.length&&(c=[a,s])}return c}function d(e){var t=r({},{onlyVars:!1,removeComments:!1},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});function n(e){throw new Error("CSS parse error: ".concat(e))}function o(t){var n=t.exec(e);if(n)return e=e.slice(n[0].length),n}function a(){return o(/^{\s*/)}function s(){return o(/^}/)}function c(){o(/^\s*/)}function u(){if(c(),"/"===e[0]&&"*"===e[1]){for(var t=2;e[t]&&("*"!==e[t]||"/"!==e[t+1]);)t++;if(!e[t])return n("end of comment is missing");var r=e.slice(2,t);return e=e.slice(t+2),{type:"comment",comment:r}}}function l(){for(var e,n=[];e=u();)n.push(e);return t.removeComments?[]:n}function f(){for(c();"}"===e[0];)n("extra closing bracket");var t=o(/^(("(?:\\"|[^"])*"|'(?:\\'|[^'])*'|[^{])+)/);if(t)return t[0].trim().replace(/\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(e){return e.replace(/,/g,"‌")}).split(/\s*(?![^(]*\)),\s*/).map(function(e){return e.replace(/\u200C/g,",")})}function d(){o(/^([;\s]*)+/);var e=/\/\*[^*]*\*+([^\/*][^*]*\*+)*\//g,t=o(/^(\*?[-#\/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(t){if(t=t[0].trim(),!o(/^:\s*/))return n("property missing ':'");var r=o(/^((?:\/\*.*?\*\/|'(?:\\'|.)*?'|"(?:\\"|.)*?"|\((\s*'(?:\\'|.)*?'|"(?:\\"|.)*?"|[^)]*?)\s*\)|[^};])+)/),a={type:"declaration",property:t.replace(e,""),value:r?r[0].replace(e,"").trim():""};return o(/^[;\s]*/),a}}function p(){if(!a())return n("missing '{'");for(var e,t=l();e=d();)t.push(e),t=t.concat(l());return s()?t:n("missing '}'")}function m(){c();for(var e,t=[];e=o(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),o(/^,\s*/);if(t.length)return{type:"keyframe",values:t,declarations:p()}}function y(){if(c(),"@"===e[0]){var r=function(){var e=o(/^@([-\w]+)?keyframes\s*/);if(e){var t=e[1];if(!(e=o(/^([-\w]+)\s*/)))return n("@keyframes missing name");var r,c=e[1];if(!a())return n("@keyframes missing '{'");for(var i=l();r=m();)i.push(r),i=i.concat(l());return s()?{type:"keyframes",name:c,vendor:t,keyframes:i}:n("@keyframes missing '}'")}}()||function(){var e=o(/^@supports *([^{]+)/);if(e)return{type:"supports",supports:e[1].trim(),rules:h()}}()||function(){if(o(/^@host\s*/))return{type:"host",rules:h()}}()||function(){var e=o(/^@media *([^{]+)/);if(e)return{type:"media",media:e[1].trim(),rules:h()}}()||function(){var e=o(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(e)return{type:"custom-media",name:e[1].trim(),media:e[2].trim()}}()||function(){if(o(/^@page */))return{type:"page",selectors:f()||[],declarations:p()}}()||function(){var e=o(/^@([-\w]+)?document *([^{]+)/);if(e)return{type:"document",document:e[2].trim(),vendor:e[1]?e[1].trim():null,rules:h()}}()||function(){if(o(/^@font-face\s*/))return{type:"font-face",declarations:p()}}()||function(){var e=o(/^@(import|charset|namespace)\s*([^;]+);/);if(e)return{type:e[1],name:e[2].trim()}}();if(r&&t.onlyVars){var i=!1;if(r.declarations)i=r.declarations.some(function(e){return/var\(/.test(e.value)});else i=(r.keyframes||r.rules||[]).some(function(e){return(e.declarations||[]).some(function(e){return/var\(/.test(e.value)})});return i?r:{}}return r}}function v(){if(t.onlyVars){var r=i("{","}",e);if(r){var o=-1!==r.pre.indexOf(":root")&&/--\S*\s*:/.test(r.body),a=/var\(/.test(r.body);if(!o&&!a)return e=e.slice(r.end+1),{}}}var s=f()||[],c=t.onlyVars?p().filter(function(e){var t=s.some(function(e){return-1!==e.indexOf(":root")})&&/^--\S/.test(e.property),n=/var\(/.test(e.value);return t||n}):p();return s.length||n("selector missing"),{type:"rule",selectors:s,declarations:c}}function h(t){if(!t&&!a())return n("missing '{'");for(var r,o=l();e.length&&(t||"}"!==e[0])&&(r=y()||v());)r.type&&o.push(r),o=o.concat(l());return t||s()?o:n("missing '}'")}return{type:"stylesheet",stylesheet:{rules:h(!0),errors:[]}}}u.range=f;var p="--",m="var",y={dom:{},temp:{},user:{}};function v(e){var t,n,o=r({},{fixNestedCalc:!0,onlyVars:!1,persist:!1,preserve:!1,variables:{},onWarning:function(){}},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),a=o.persist?y.dom:y.temp=JSON.parse(JSON.stringify(y.dom)),s=d(e,{onlyVars:o.onlyVars});if(s.stylesheet.rules.forEach(function(e){var t=[];if("rule"===e.type&&1===e.selectors.length&&":root"===e.selectors[0]&&(e.declarations.forEach(function(e,n){var r=e.property,o=e.value;r&&0===r.indexOf(p)&&(a[r]=o,t.push(n))}),!o.preserve))for(var n=t.length-1;n>=0;n--)e.declarations.splice(t[n],1)}),Object.keys(y.user).forEach(function(e){a[e]=y.user[e]}),Object.keys(o.variables).length){var c={declarations:[],selectors:[":root"],type:"rule"};Object.keys(o.variables).forEach(function(e){var t="--".concat(e.replace(/^-+/,"")),n=o.variables[e];o.persist&&(y.user[t]=n),a[t]!==n&&(a[t]=n,c.declarations.push({type:"declaration",property:t,value:n}))}),o.preserve&&c.declarations.length&&s.stylesheet.rules.push(c)}return function e(t,n){t.rules.forEach(function(r){r.rules?e(r,n):r.keyframes?r.keyframes.forEach(function(e){"keyframe"===e.type&&n(e.declarations,r)}):r.declarations&&n(r.declarations,t)})}(s.stylesheet,function(e,t){for(var n,r,s,c=0;c<e.length;c++)s=(n=e[c]).value,"declaration"===n.type&&s&&-1!==s.indexOf(m+"(")&&(r=h(s,a,o))!==n.value&&(o.preserve?(e.splice(c,0,{type:n.type,property:n.property,value:r}),c++):n.value=r)}),o.fixNestedCalc&&(t=s.stylesheet.rules,n=/(-[a-z]+-)?calc\(/,t.forEach(function(e){e.declarations&&e.declarations.forEach(function(e){for(var t=e.value,r="";n.test(t);){var o=i("calc(",")",t||"");for(t=t.slice(o.end);n.test(o.body);){var a=i(n,")",o.body);o.body="".concat(a.pre,"(").concat(a.body,")").concat(a.post)}r+="".concat(o.pre,"calc(").concat(o.body),r+=n.test(t)?"":")".concat(o.post)}e.value=r||e.value})})),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r={charset:function(e){return"@charset "+e.name+";"},comment:function(e){return 0===e.comment.indexOf("__CSSVARSPONYFILL")?"/*"+e.comment+"*/":""},"custom-media":function(e){return"@custom-media "+e.name+" "+e.media+";"},declaration:function(e){return e.property+":"+e.value+";"},document:function(e){return"@"+(e.vendor||"")+"document "+e.document+"{"+o(e.rules)+"}"},"font-face":function(e){return"@font-face{"+o(e.declarations)+"}"},host:function(e){return"@host{"+o(e.rules)+"}"},import:function(e){return"@import "+e.name+";"},keyframe:function(e){return e.values.join(",")+"{"+o(e.declarations)+"}"},keyframes:function(e){return"@"+(e.vendor||"")+"keyframes "+e.name+"{"+o(e.keyframes)+"}"},media:function(e){return"@media "+e.media+"{"+o(e.rules)+"}"},namespace:function(e){return"@namespace "+e.name+";"},page:function(e){return"@page "+(e.selectors.length?e.selectors.join(", "):"")+"{"+o(e.declarations)+"}"},rule:function(e){var t=e.declarations;if(t.length)return e.selectors.join(",")+"{"+o(t)+"}"},supports:function(e){return"@supports "+e.supports+"{"+o(e.rules)+"}"}};function o(e){for(var o="",a=0;a<e.length;a++){var s=e[a];n&&n(s);var c=r[s.type](s);c&&(o+=c,c.length&&s.selectors&&(o+=t))}return o}return o(e.stylesheet.rules)}(s)}function h(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(-1===e.indexOf("var("))return e;var o=i("(",")",e);return o?"var"===o.pre.slice(-3)?0===o.body.trim().length?(n.onWarning("var() must contain a non-whitespace string"),e):o.pre.slice(0,-3)+function(e){var o=e.split(",")[0].replace(/[\s\n\t]/g,""),a=(e.match(/(?:\s*,\s*){1}(.*)?/)||[])[1],s=t.hasOwnProperty(o)?String(t[o]):void 0,c=s||(a?String(a):void 0),i=r||e;return s||n.onWarning('variable "'.concat(o,'" is undefined')),c&&"undefined"!==c&&c.length>0?h(c,t,n,i):"var(".concat(i,")")}(o.body)+h(o.post,t,n):o.pre+"(".concat(h(o.body,t,n),")")+h(o.post,t,n):(-1!==e.indexOf("var(")&&n.onWarning('missing closing ")" in the value "'.concat(e,'"')),e)}var g="css-vars-ponyfill",b="undefined"!=typeof window,S=b&&window.CSS&&window.CSS.supports&&window.CSS.supports("(--a: 0)"),E="cssVars(): ",w={rootElement:b?document:null,shadowDOM:!1,include:"style,link[rel=stylesheet]",exclude:"",variables:{},fixNestedCalc:!0,onlyLegacy:!0,onlyVars:!1,preserve:!1,silent:!1,updateDOM:!0,updateURLs:!0,watch:null,onBeforeSend:function(){},onSuccess:function(){},onWarning:function(){},onError:function(){},onComplete:function(){}},x={cssComments:/\/\*[\s\S]+?\*\//g,cssKeyframes:/@(?:-\w*-)?keyframes/,cssRootRules:/(?::root\s*{\s*[^}]*})/g,cssUrls:/url\((?!['"]?(?:data|http|\/\/):)['"]?([^'")]*)['"]?\)/g,cssVars:/(?:(?::root\s*{\s*[^;]*;*\s*)|(?:var\(\s*))(--[^:)]+)(?:\s*[:)])/},O=null,C=null,L=!1;
76
+ /**
77
+ * Fetches, parses, and transforms CSS custom properties from specified
78
+ * <style> and <link> elements into static values, then appends a new <style>
79
+ * element with static values to the DOM to provide CSS custom property
80
+ * compatibility for legacy browsers. Also provides a single interface for
81
+ * live updates of runtime values in both modern and legacy browsers.
82
+ *
83
+ * @preserve
84
+ * @param {object} [options] Options object
85
+ * @param {object} [options.rootElement=document] Root element to traverse for
86
+ * <link> and <style> nodes.
87
+ * @param {boolean} [options.shadowDOM=false] Determines if shadow DOM <link>
88
+ * and <style> nodes will be processed.
89
+ * @param {string} [options.include="style,link[rel=stylesheet]"] CSS selector
90
+ * matching <link re="stylesheet"> and <style> nodes to
91
+ * process
92
+ * @param {string} [options.exclude] CSS selector matching <link
93
+ * rel="stylehseet"> and <style> nodes to exclude from those
94
+ * matches by options.include
95
+ * @param {object} [options.variables] A map of custom property name/value
96
+ * pairs. Property names can omit or include the leading
97
+ * double-hyphen (—), and values specified will override
98
+ * previous values.
99
+ * @param {boolean} [options.fixNestedCalc=true] Removes nested 'calc' keywords
100
+ * for legacy browser compatibility.
101
+ * @param {boolean} [options.onlyLegacy=true] Determines if the ponyfill will
102
+ * only generate legacy-compatible CSS in browsers that lack
103
+ * native support (i.e., legacy browsers)
104
+ * @param {boolean} [options.onlyVars=false] Determines if CSS rulesets and
105
+ * declarations without a custom property value should be
106
+ * removed from the ponyfill-generated CSS
107
+ * @param {boolean} [options.preserve=false] Determines if the original CSS
108
+ * custom property declaration will be retained in the
109
+ * ponyfill-generated CSS.
110
+ * @param {boolean} [options.silent=false] Determines if warning and error
111
+ * messages will be displayed on the console
112
+ * @param {boolean} [options.updateDOM=true] Determines if the ponyfill will
113
+ * update the DOM after processing CSS custom properties
114
+ * @param {boolean} [options.updateURLs=true] Determines if the ponyfill will
115
+ * convert relative url() paths to absolute urls.
116
+ * @param {boolean} [options.watch=false] Determines if a MutationObserver will
117
+ * be created that will execute the ponyfill when a <link> or
118
+ * <style> DOM mutation is observed.
119
+ * @param {function} [options.onBeforeSend] Callback before XHR is sent. Passes
120
+ * 1) the XHR object, 2) source node reference, and 3) the
121
+ * source URL as arguments.
122
+ * @param {function} [options.onSuccess] Callback after CSS data has been
123
+ * collected from each node and before CSS custom properties
124
+ * have been transformed. Allows modifying the CSS data before
125
+ * it is transformed by returning any string value (or false
126
+ * to skip). Passes 1) CSS text, 2) source node reference, and
127
+ * 3) the source URL as arguments.
128
+ * @param {function} [options.onWarning] Callback after each CSS parsing warning
129
+ * has occurred. Passes 1) a warning message as an argument.
130
+ * @param {function} [options.onError] Callback after a CSS parsing error has
131
+ * occurred or an XHR request has failed. Passes 1) an error
132
+ * message, and 2) source node reference, 3) xhr, and 4 url as
133
+ * arguments.
134
+ * @param {function} [options.onComplete] Callback after all CSS has been
135
+ * processed, legacy-compatible CSS has been generated, and
136
+ * (optionally) the DOM has been updated. Passes 1) a CSS
137
+ * string with CSS variable values resolved, 2) a reference to
138
+ * the appended <style> node, 3) an object containing all
139
+ * custom properies names and values, and 4) the ponyfill
140
+ * execution time in milliseconds.
141
+ *
142
+ * @example
143
+ *
144
+ * cssVars({
145
+ * rootElement : document,
146
+ * shadowDOM : false,
147
+ * include : 'style,link[rel="stylesheet"]',
148
+ * exclude : '',
149
+ * variables : {},
150
+ * fixNestedCalc: true,
151
+ * onlyLegacy : true,
152
+ * onlyVars : false,
153
+ * preserve : false,
154
+ * silent : false,
155
+ * updateDOM : true,
156
+ * updateURLs : true,
157
+ * watch : false,
158
+ * onBeforeSend(xhr, node, url) {},
159
+ * onSuccess(cssText, node, url) {},
160
+ * onWarning(message) {},
161
+ * onError(message, node, xhr, url) {},
162
+ * onComplete(cssText, styleNode, cssVariables, benchmark) {}
163
+ * });
164
+ */
165
+ function k(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r({},w,e),n=g;function a(e,n,r,o){t.silent||console.error("".concat(E).concat(e,"\n"),n),t.onError(e,n,r,o)}function c(e){t.silent||console.warn("".concat(E).concat(e)),t.onWarning(e)}if(t.exclude="#".concat(n)+(t.exclude?",".concat(t.exclude):""),t._benchmark=t._benchmark?t._benchmark:T(),b)if(!1===t.watch&&O&&O.disconnect(),t.watch)!function(e,t){if(!window.MutationObserver)return;var n=function(e){return"LINK"===e.tagName&&-1!==(e.getAttribute("rel")||"").indexOf("stylesheet")},r=function(e){return"STYLE"===e.tagName&&(!t||e.id!==t)};O&&O.disconnect();e.watch=w.watch,(O=new MutationObserver(function(t){var o=t.some(function(e){var t=!1;if("attributes"===e.type)t=n(e.target)||r(e.target);else if("childList"===e.type){var o=Array.apply(null,e.addedNodes),a=Array.apply(null,e.removedNodes);t=[].concat(o,a).some(function(e){var t=n(e)&&!e.disabled,o=r(e)&&x.cssVars.test(e.textContent);return t||o})}return t});o&&_(e)})).observe(document.documentElement,{attributes:!0,attributeFilter:["disabled","href"],childList:!0,subtree:!0})}(t,n),_(t);else if("loading"!==document.readyState){var i=t.shadowDOM||t.rootElement.shadowRoot||t.rootElement.host;if(S&&t.onlyLegacy){if(t.updateDOM){var u=t.rootElement.host||(t.rootElement===document?document.documentElement:t.rootElement);Object.keys(t.variables).forEach(function(e){var n="--".concat(e.replace(/^-+/,"")),r=t.variables[e];u.style.setProperty(n,r)})}}else s(i&&!L?{rootElement:w.rootElement,include:w.include,exclude:t.exclude,onSuccess:function(e,t,n){return(e.match(x.cssRootRules)||[]).join("")||!1},onComplete:function(e,n,r){v(e,{persist:!0}),L=!0,k(t)}}:{rootElement:t.rootElement,include:t.include,exclude:t.exclude,filter:t.onlyVars?x.cssVars:null,onBeforeSend:t.onBeforeSend,onSuccess:function(e,n,r){var o=t.onSuccess(e,n,r);(e=void 0!==o&&!1===Boolean(o)?"":o||e,n.setAttribute("data-cssvars",""),t.updateURLs)&&(e.replace(x.cssComments,"").match(x.cssUrls)||[]).forEach(function(t){var n=t.replace(x.cssUrls,"$1"),o=A(n,r);e=e.replace(t,t.replace(n,o))});return e},onError:function(e,t,n){var r=e.responseURL||A(n,location.href),o=e.statusText?"(".concat(e.statusText,")"):"Unspecified Error"+(0===e.status?" (possibly CORS related)":"");a("CSS XHR Error: ".concat(r," ").concat(e.status," ").concat(o),t,e,r)},onComplete:function(e,s,i){var u,l=JSON.stringify({include:t.include,exclude:t.exclude,variables:t.variables,fixNestedCalc:t.fixNestedCalc,onlyVars:t.onlyVars,preserve:t.preserve,silent:t.silent,updateURLs:t.updateURLs}),f=t.rootElement.querySelector("#".concat(n))||document.createElement("style"),d=f.__cssVars||{},p=d.cssText===e&&d.settings===l;if(p)e=f.textContent,t.silent||console.info("".concat(E,"No changes"),f);else{f.__cssVars={cssText:e,settings:l},e=s.map(function(e,t){return x.cssVars.test(e)?e:"/*__CSSVARSPONYFILL-".concat(t,"__*/")}).join("");try{e=v(e,{fixNestedCalc:t.fixNestedCalc,onlyVars:t.onlyVars,persist:t.updateDOM,preserve:t.preserve,variables:t.variables,onWarning:c}),u=x.cssKeyframes.test(e),e=e.replace(/\/\*__CSSVARSPONYFILL-(\d+)__\*\//g,function(e,t){return s[t]})}catch(e){var m=!1;s.forEach(function(e,n){try{e=v(e,t)}catch(e){var r=i[n-0];m=!0,a(e.message,r)}}),m||a(e.message||e)}}if(t.shadowDOM)for(var h,g=[t.rootElement].concat(o(t.rootElement.querySelectorAll("*"))),b=0;h=g[b];++b){if(h.shadowRoot&&h.shadowRoot.querySelector("style"))k(r({},t,{rootElement:h.shadowRoot,variables:y.dom}))}if(!p&&i&&i.length){var S=t.rootElement.querySelectorAll("link[data-cssvars],style[data-cssvars]")||t.rootElement.querySelectorAll('link[rel+="stylesheet"],style'),w=S?S[S.length-1]:null;if(w)w.parentNode.insertBefore(f,w.nextSibling);else(t.rootElement.head||t.rootElement.body||t.rootElement).appendChild(f);t.updateDOM&&(f.setAttribute("id",n),f.textContent=e,u&&function(e){var t=["animation-name","-moz-animation-name","-webkit-animation-name"].filter(function(e){return getComputedStyle(document.body)[e]})[0];if(t){for(var n=e.getElementsByTagName("*"),r=[],o=0,a=n.length;o<a;o++){var s=n[o],c=getComputedStyle(s)[t];"none"!==c&&(s.style[t]+="__CSSVARSPONYFILL-KEYFRAMES__",r.push(s))}document.body.offsetHeight;for(var i=0,u=r.length;i<u;i++){var l=r[i].style;l[t]=l[t].replace("__CSSVARSPONYFILL-KEYFRAMES__","")}}}(t.rootElement)),t.onComplete(e,f,JSON.parse(JSON.stringify(t.updateDOM?y.dom:y.temp)),T()-t._benchmark)}}})}else document.addEventListener("DOMContentLoaded",function t(n){k(e),document.removeEventListener("DOMContentLoaded",t)})}function _(e){clearTimeout(C),C=setTimeout(function(){e._benchmark=null,k(e)},100)}function A(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location.href,n=document.implementation.createHTMLDocument(""),r=n.createElement("base"),o=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(o),r.href=t,o.href=e,o.href}function T(){return b&&(window.performance||{}).now?window.performance.now():(new Date).getTime()}var M=k,N=n(0);M(),jQuery(document).ready(function(){jQuery(window).on("load",function(){var e;N.a.update(),null!==(e=document.getElementById("editor"))&&new MutationObserver(function(e,t){var n=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done);n=!0)a.value.target.classList.contains("edit-post-layout")&&N.a.update()}catch(e){r=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw o}}}).observe(e,{attributes:!0,childList:!0,subtree:!0})}),jQuery(document).on("wp-collapse-menu",function(){N.a.update()}),jQuery(window).resize(function(){N.a.update()}),jQuery(window).on("orientationchange",function(){N.a.update()})})}]);
build/block-editor.css CHANGED
@@ -1 +1 @@
1
- .wp-block-wdp-section-block{padding:var(--wdpsb-padding) 0;position:relative}.wp-block-wdp-section-block>*{position:relative}.wp-block-wdp-section-block__background{position:absolute;top:0;left:0;height:100%;width:100vw;z-index:0;overflow:hidden;border:none;border-radius:0;box-shadow:var(--wdpsb-box-shadow-xoffset) var(--wdpsb-box-shadow-yoffset) var(--wdpsb-box-shadow-blurradius) var(--wdpsb-box-shadow-spreadradius) var(--wdpsb-box-shadow-color);background-image:var(--wdpsb-background-image);background-size:cover;background-position:var(--wdpsb-background-image-position-x) var(--wdpsb-background-image-position-y)}.wp-block-wdp-section-block__background::before{position:absolute;content:'';width:100%;height:100%;left:0;top:0;background-color:var(--wdpsb-overlay-background-color);opacity:var(--wdpsb-overlay-opacity);border:none;border-radius:0}.wp-block-wdp-section-block__background::after{position:absolute;content:'';width:100%;height:100%;left:0;top:0;opacity:1;border-width:var(--wdpsb-border-width);border-style:var(--wdpsb-border-style);border-color:var(--wdpsb-border-color);border-radius:0;border-left:none;border-right:none}@media (min-width:783px){body:not(.folded) .edit-post-layout:not(.is-sidebar-opened) .wp-block-wdp-section-block__background{width:calc(100vw - 160px)}body:not(.folded) .edit-post-layout.is-sidebar-opened .wp-block-wdp-section-block__background{width:calc(100vw - 440px)}body.folded .edit-post-layout:not(.is-sidebar-opened) .wp-block-wdp-section-block__background{width:calc(100vw - 36px)}body.folded .edit-post-layout.is-sidebar-opened .wp-block-wdp-section-block__background{width:calc(100vw - 316px)}}.block-editor-block-list__layout [data-type="wdp/section-block"].block-editor-block-list__block .block-editor-block-list__block-edit:before{z-index:1}
1
+ .wp-block-wdp-section-block{padding:var(--wdpsb-padding) 0;position:relative}.wp-block-wdp-section-block>*{position:relative}.wp-block-wdp-section-block__background{position:absolute;top:0;left:0;height:100%;width:100vw;z-index:0;overflow:hidden;border:none;border-radius:0;box-shadow:var(--wdpsb-box-shadow-xoffset) var(--wdpsb-box-shadow-yoffset) var(--wdpsb-box-shadow-blurradius) var(--wdpsb-box-shadow-spreadradius) var(--wdpsb-box-shadow-color);background-image:var(--wdpsb-background-image);background-size:cover;background-position:var(--wdpsb-background-image-position-x) var(--wdpsb-background-image-position-y)}.wp-block-wdp-section-block__background::before{position:absolute;content:'';width:100%;height:100%;left:0;top:0;background-color:var(--wdpsb-overlay-background-color);opacity:var(--wdpsb-overlay-opacity);border:none;border-radius:0}.wp-block-wdp-section-block__background::after{position:absolute;content:'';width:100%;height:100%;left:0;top:0;opacity:1;border-width:var(--wdpsb-border-width);border-style:var(--wdpsb-border-style);border-color:var(--wdpsb-border-color);border-radius:0;border-left:none;border-right:none;box-sizing:border-box}@media (min-width:783px){body:not(.folded) .edit-post-layout:not(.is-sidebar-opened) .wp-block-wdp-section-block__background{width:calc(100vw - 160px)}body:not(.folded) .edit-post-layout.is-sidebar-opened .wp-block-wdp-section-block__background{width:calc(100vw - 440px)}body.folded .edit-post-layout:not(.is-sidebar-opened) .wp-block-wdp-section-block__background{width:calc(100vw - 36px)}body.folded .edit-post-layout.is-sidebar-opened .wp-block-wdp-section-block__background{width:calc(100vw - 316px)}}.block-editor-block-list__layout [data-type="wdp/section-block"].block-editor-block-list__block .block-editor-block-list__block-edit:before{z-index:1}
build/block.css CHANGED
@@ -1 +1 @@
1
- .wp-block-wdp-section-block{padding:var(--wdpsb-padding) 0;position:relative}.wp-block-wdp-section-block>*{position:relative}.wp-block-wdp-section-block__background{position:absolute;top:0;left:0;height:100%;width:100vw;z-index:0;overflow:hidden;border:none;border-radius:0;box-shadow:var(--wdpsb-box-shadow-xoffset) var(--wdpsb-box-shadow-yoffset) var(--wdpsb-box-shadow-blurradius) var(--wdpsb-box-shadow-spreadradius) var(--wdpsb-box-shadow-color);background-image:var(--wdpsb-background-image);background-size:cover;background-position:var(--wdpsb-background-image-position-x) var(--wdpsb-background-image-position-y)}.wp-block-wdp-section-block__background::before{position:absolute;content:'';width:100%;height:100%;left:0;top:0;background-color:var(--wdpsb-overlay-background-color);opacity:var(--wdpsb-overlay-opacity);border:none;border-radius:0}.wp-block-wdp-section-block__background::after{position:absolute;content:'';width:100%;height:100%;left:0;top:0;opacity:1;border-width:var(--wdpsb-border-width);border-style:var(--wdpsb-border-style);border-color:var(--wdpsb-border-color);border-radius:0;border-left:none;border-right:none}
1
+ .wp-block-wdp-section-block{padding:var(--wdpsb-padding) 0;position:relative}.wp-block-wdp-section-block>*{position:relative}.wp-block-wdp-section-block__background{position:absolute;top:0;left:0;height:100%;width:100vw;z-index:0;overflow:hidden;border:none;border-radius:0;box-shadow:var(--wdpsb-box-shadow-xoffset) var(--wdpsb-box-shadow-yoffset) var(--wdpsb-box-shadow-blurradius) var(--wdpsb-box-shadow-spreadradius) var(--wdpsb-box-shadow-color);background-image:var(--wdpsb-background-image);background-size:cover;background-position:var(--wdpsb-background-image-position-x) var(--wdpsb-background-image-position-y)}.wp-block-wdp-section-block__background::before{position:absolute;content:'';width:100%;height:100%;left:0;top:0;background-color:var(--wdpsb-overlay-background-color);opacity:var(--wdpsb-overlay-opacity);border:none;border-radius:0}.wp-block-wdp-section-block__background::after{position:absolute;content:'';width:100%;height:100%;left:0;top:0;opacity:1;border-width:var(--wdpsb-border-width);border-style:var(--wdpsb-border-style);border-color:var(--wdpsb-border-color);border-radius:0;border-left:none;border-right:none;box-sizing:border-box}
build/block.min.js CHANGED
@@ -1 +1 @@
1
- !function(e){var o={};function t(a){if(o[a])return o[a].exports;var n=o[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,t),n.l=!0,n.exports}t.m=e,t.c=o,t.d=function(e,o,a){t.o(e,o)||Object.defineProperty(e,o,{enumerable:!0,get:a})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,o){if(1&o&&(e=t(e)),8&o)return e;if(4&o&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(t.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&o&&"string"!=typeof e)for(var n in e)t.d(a,n,function(o){return e[o]}.bind(null,n));return a},t.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(o,"a",o),o},t.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},t.p="",t(t.s=1)}([function(e,o,t){"use strict";function a(e,o){for(var t=0;t<o.length;t++){var a=o[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}t.d(o,"a",function(){return n});var n=new(function(){function e(){!function(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}(this,e)}var o,t,n;return o=e,(t=[{key:"getOffsetLeft",value:function(e){var o=0;do{isNaN(e.offsetLeft)||(o+=e.offsetLeft)}while(e=e.offsetParent);return o}},{key:"update",value:function(e){var o,t=document.getElementById("adminmenuback"),a=0,n=this;null!==t&&(o="none"!==getComputedStyle(t,null).display,a=o?document.body.classList.contains("folded")?36:160:0),Array.from(document.querySelectorAll(".wp-block-wdp-section-block__background")).forEach(function(e){var o;e.style.marginLeft=null,o=n.getOffsetLeft(e),e.style.marginLeft=-1*(o-a)+"px"}),!0===e&&setTimeout(function(){n.update()})}}])&&a(o.prototype,t),n&&a(o,n),e}())},function(e,o,t){"use strict";t.r(o);var a=t(0);function n(e,o){for(var t=0;t<o.length;t++){var a=o[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var l=new(function(){function e(){!function(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}(this,e)}var o,t,a;return o=e,(t=[{key:"convert",value:function(e,o){var t;return e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,o,t,a){return o+o+t+t+a+a}),(t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e))?"rgba(".concat(parseInt(t[1],16),",").concat(parseInt(t[2],16),",").concat(parseInt(t[3],16),",").concat(parseFloat(o,10),")"):e}}])&&n(o.prototype,t),a&&n(o,a),e}()),r=wp.i18n.__,c=wp.blocks.registerBlockType,i=wp.editor,d=i.InnerBlocks,s=i.InspectorControls,u=i.MediaUpload,b=wp.element.Fragment,p=wp.components,f=p.PanelBody,m=p.RangeControl,g=p.SelectControl,y=p.ToggleControl,w=p.ColorPalette,k=p.FocalPointPicker;c("wdp/section-block",{title:r("Section Block (by We Do Plugins)","section-block"),description:r("Cool Section Block for new Block Editor.","section-block"),icon:"index-card",category:"widgets",supports:{align:["wide","full"]},attributes:{useCustomStyles:{type:"boolean",default:!1},padding:{type:"integer",default:parseInt(WDPSectionBlock.padding,10)},overlayBackgroundColor:{type:"string",default:WDPSectionBlock.overlayBackgroundColor},overlayOpacity:{type:"float",default:parseFloat(WDPSectionBlock.overlayOpacity,10)},borderColor:{type:"string",default:WDPSectionBlock.borderColor},borderStyle:{type:"string",default:WDPSectionBlock.borderStyle},borderWidth:{type:"integer",default:parseInt(WDPSectionBlock.borderWidth,10)},boxShadowXOffset:{type:"integer",default:parseInt(WDPSectionBlock.boxShadowXOffset,10)},boxShadowYOffset:{type:"integer",default:parseInt(WDPSectionBlock.boxShadowYOffset,10)},boxShadowBlurRadius:{type:"integer",default:parseInt(WDPSectionBlock.boxShadowBlurRadius,10)},boxShadowSpreadRadius:{type:"integer",default:parseInt(WDPSectionBlock.boxShadowSpreadRadius,10)},boxShadowColor:{type:"string",default:WDPSectionBlock.boxShadowColor},boxShadowOpacity:{type:"float",default:parseFloat(WDPSectionBlock.boxShadowOpacity,10)},backgroundImage:{type:"string",default:null},backgroundImageFocalPos:{type:"object",default:{x:.5,y:.5}}},edit:function(e){var o=e.attributes,t=e.setAttributes,n=e.className,c=o.useCustomStyles,i=o.padding,p=o.overlayBackgroundColor,h=o.overlayOpacity,x=o.borderColor,v=o.borderStyle,S=o.borderWidth,R=o.boxShadowXOffset,C=o.boxShadowYOffset,E=o.boxShadowBlurRadius,B=o.boxShadowSpreadRadius,O=o.boxShadowColor,P=o.boxShadowOpacity,I=o.backgroundImage,W=o.backgroundImageFocalPos,D={"--wdpsb-padding":i+"px","--wdpsb-overlay-background-color":p,"--wdpsb-overlay-opacity":h,"--wdpsb-border-color":x,"--wdpsb-border-style":v,"--wdpsb-border-width":S+"px","--wdpsb-box-shadow-xoffset":R+"px","--wdpsb-box-shadow-yoffset":C+"px","--wdpsb-box-shadow-blurradius":E+"px","--wdpsb-box-shadow-spreadradius":B+"px","--wdpsb-box-shadow-color":l.convert(O,P),"--wdpsb-background-image":null!==I?"url('".concat(I,"')"):"none","--wdpsb-background-image-position-x":100*W.x+"%","--wdpsb-background-image-position-y":100*W.y+"%"};return React.createElement(b,null,React.createElement(s,null,React.createElement(f,{title:r("Use custom styles?","section-block")},React.createElement(y,{label:r("Use custom styles?","section-block"),checked:c,onChange:function(e){t({useCustomStyles:e})}})),!0===c&&React.createElement("div",null,React.createElement(f,{title:r("Overlay","section-block"),initialOpen:!1},React.createElement(b,null,React.createElement("p",null,r("Overlay background color","section-block")),React.createElement(w,{label:r("Overlay background color","section-block"),value:p,colors:WDPSectionBlock.themeColors,onChange:function(e){t({overlayBackgroundColor:e})}})),React.createElement(m,{label:r("Overlay opacity","section-block"),value:h,onChange:function(e){t({overlayOpacity:e})},min:0,max:1,step:.01})),React.createElement(f,{title:r("Padding","section-block"),initialOpen:!1},React.createElement(m,{label:r("Padding","section-block"),value:i,onChange:function(e){t({padding:e})},min:0,max:120})),React.createElement(f,{title:r("Border","section-block"),initialOpen:!1},React.createElement(b,null,React.createElement("p",null,r("Border color","section-block")),React.createElement(w,{label:r("Border color","section-block"),value:x,colors:WDPSectionBlock.themeColors,onChange:function(e){t({borderColor:e})}})),React.createElement(g,{label:r("Border style","section-block"),value:v,onChange:function(e){t({borderStyle:e})},options:[{value:"solid",label:r("Solid","section-block")},{value:"dashed",label:r("Dashed","section-block")},{value:"dotted",label:r("Dotted","section-block")}]}),React.createElement(m,{label:r("Border width","section-block"),value:S,onChange:function(e){t({borderWidth:e})},min:0,max:30})),React.createElement(f,{title:r("Box shadow","section-block"),initialOpen:!1},React.createElement(m,{label:r("X offset","section-block"),value:R,onChange:function(e){t({boxShadowXOffset:e})},min:-100,max:100}),React.createElement(m,{label:r("Y offset","section-block"),value:C,onChange:function(e){t({boxShadowYOffset:e})},min:-100,max:100}),React.createElement(m,{label:r("Blur radius","section-block"),value:E,onChange:function(e){t({boxShadowBlurRadius:e})},min:0,max:100}),React.createElement(m,{label:r("Spread radius","section-block"),value:B,onChange:function(e){t({boxShadowSpreadRadius:e})},min:-100,max:100}),React.createElement(b,null,React.createElement("p",null,r("Box shadow color","section-block")),React.createElement(w,{label:r("Box shadow color","section-block"),value:O,colors:WDPSectionBlock.themeColors,onChange:function(e){t({boxShadowColor:e})}})),React.createElement(m,{label:r("Box shadow color opacity","section-block"),value:P,onChange:function(e){t({boxShadowOpacity:e})},min:0,max:1,step:.01})),React.createElement(f,{title:r("Background image","section-block"),initialOpen:!1},React.createElement(u,{onSelect:function(e){t({backgroundImage:e.sizes.full.url})},type:"image",value:I,render:function(e){var o=e.open;return React.createElement("button",{className:"button",onClick:o},r("Upload image","section-block"))}}),null!==I&&React.createElement(b,null,React.createElement("h4",null,r("Image focal point","section-block")),React.createElement(k,{url:I,value:W,onChange:function(e){t({backgroundImageFocalPos:e})}}))))),React.createElement("div",{className:n,style:!0===c?D:{}},React.createElement("div",{className:"wp-block-wdp-section-block__background"}),React.createElement(d,null)),a.a.update(!0))},save:function(e){var o=e.attributes,t=e.className,a=o.useCustomStyles,n=o.padding,r=o.overlayBackgroundColor,c=o.overlayOpacity,i=o.borderColor,s=o.borderStyle,u=o.borderWidth,b=o.boxShadowXOffset,p=o.boxShadowYOffset,f=o.boxShadowBlurRadius,m=o.boxShadowSpreadRadius,g=o.boxShadowColor,y=o.boxShadowOpacity,w=o.backgroundImage,k=o.backgroundImageFocalPos,h={"--wdpsb-padding":n+"px","--wdpsb-overlay-background-color":r,"--wdpsb-overlay-opacity":c.toString(),"--wdpsb-border-color":i,"--wdpsb-border-style":s,"--wdpsb-border-width":u+"px","--wdpsb-box-shadow-xoffset":b+"px","--wdpsb-box-shadow-yoffset":p+"px","--wdpsb-box-shadow-blurradius":f+"px","--wdpsb-box-shadow-spreadradius":m+"px","--wdpsb-box-shadow-color":l.convert(g,y),"--wdpsb-background-image":null!==w?"url('".concat(w,"')"):"none","--wdpsb-background-image-position-x":100*k.x+"%","--wdpsb-background-image-position-y":100*k.y+"%"};return React.createElement("div",{className:t,style:!0===a?h:{}},React.createElement("div",{className:"wp-block-wdp-section-block__background"}),React.createElement(d.Content,null))}})}]);
1
+ !function(e){var o={};function t(a){if(o[a])return o[a].exports;var n=o[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,t),n.l=!0,n.exports}t.m=e,t.c=o,t.d=function(e,o,a){t.o(e,o)||Object.defineProperty(e,o,{enumerable:!0,get:a})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,o){if(1&o&&(e=t(e)),8&o)return e;if(4&o&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(t.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&o&&"string"!=typeof e)for(var n in e)t.d(a,n,function(o){return e[o]}.bind(null,n));return a},t.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(o,"a",o),o},t.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},t.p="",t(t.s=1)}([function(e,o,t){"use strict";function a(e,o){for(var t=0;t<o.length;t++){var a=o[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}t.d(o,"a",function(){return n});var n=new(function(){function e(){!function(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}(this,e)}var o,t,n;return o=e,(t=[{key:"getOffsetLeft",value:function(e){var o=0;do{null!==e.offsetParent&&(null===(e=e.offsetParent)||0===typeof e.offsetLeft||isNaN(e.offsetLeft)||(o+=e.offsetLeft))}while(e.offsetParent);return o}},{key:"update",value:function(e){var o,t=document.getElementById("adminmenuback"),a=0,n=this;null!==t&&(o="none"!==getComputedStyle(t,null).display,a=o?document.body.classList.contains("folded")?36:160:0),Array.from(document.querySelectorAll(".wp-block-wdp-section-block__background")).forEach(function(e){var o;e.style.marginLeft=null,o=n.getOffsetLeft(e),e.style.marginLeft=-1*(o-a)+"px"}),!0===e&&setTimeout(function(){n.update()})}}])&&a(o.prototype,t),n&&a(o,n),e}())},function(e,o,t){"use strict";t.r(o);var a=t(0);function n(e,o){for(var t=0;t<o.length;t++){var a=o[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var l=new(function(){function e(){!function(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}(this,e)}var o,t,a;return o=e,(t=[{key:"convert",value:function(e,o){var t;return e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,o,t,a){return o+o+t+t+a+a}),(t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e))?"rgba(".concat(parseInt(t[1],16),",").concat(parseInt(t[2],16),",").concat(parseInt(t[3],16),",").concat(parseFloat(o,10),")"):e}}])&&n(o.prototype,t),a&&n(o,a),e}());function c(e,o){for(var t=0;t<o.length;t++){var a=o[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var r=new(function(){function e(){!function(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}(this,e)}var o,t,a;return o=e,(t=[{key:"get",value:function(e){var o=e.useCustomStyles,t=e.padding,a=e.overlayBackgroundColor,n=e.overlayOpacity,c=e.borderColor,r=e.borderStyle,i=e.borderWidth,d=e.boxShadowXOffset,s=e.boxShadowYOffset,u=e.boxShadowBlurRadius,b=e.boxShadowSpreadRadius,f=e.boxShadowColor,p=e.boxShadowOpacity,m=e.backgroundImage,y=e.backgroundImageFocalPos,k={};return!1===o?k:(t!==parseInt(WDPSectionBlock.padding,10)&&(k["--wdpsb-padding"]=t+"px"),void 0!==a&&a!==WDPSectionBlock.overlayBackgroundColor&&(k["--wdpsb-overlay-background-color"]=a),n!==parseFloat(WDPSectionBlock.overlayOpacity,10)&&(k["--wdpsb-overlay-opacity"]=n),void 0!==c&&c!==WDPSectionBlock.borderColor&&(k["--wdpsb-border-color"]=c),r!==WDPSectionBlock.borderStyle&&(k["--wdpsb-border-style"]=r),i!==parseInt(WDPSectionBlock.borderWidth,10)&&(k["--wdpsb-border-width"]=i+"px"),d!==parseInt(WDPSectionBlock.boxShadowXOffset,10)&&(k["--wdpsb-box-shadow-xoffset"]=d+"px"),s!==parseInt(WDPSectionBlock.boxShadowYOffset,10)&&(k["--wdpsb-box-shadow-yoffset"]=s+"px"),u!==parseInt(WDPSectionBlock.boxShadowBlurRadius,10)&&(k["--wdpsb-box-shadow-blurradius"]=u+"px"),b!==parseInt(WDPSectionBlock.boxShadowSpreadRadius,10)&&(k["--wdpsb-box-shadow-spreadradius"]=b+"px"),void 0!==f?f===WDPSectionBlock.boxShadowColor&&p===parseFloat(WDPSectionBlock.boxShadowOpacity,10)||(k["--wdpsb-box-shadow-color"]=l.convert(f,p)):p!==parseFloat(WDPSectionBlock.boxShadowOpacity,10)&&(k["--wdpsb-box-shadow-color"]=l.convert(WDPSectionBlock.boxShadowColor,p)),null!==m&&(k["--wdpsb-background-image"]="url('".concat(m,"')")),.5!==y.x&&(k["--wdpsb-background-image-position-x"]=100*y.x+"%"),.5!==y.y&&(k["--wdpsb-background-image-position-y"]=100*y.y+"%"),k)}}])&&c(o.prototype,t),a&&c(o,a),e}()),i=wp.i18n.__,d=wp.blocks.registerBlockType,s=wp.editor,u=s.InnerBlocks,b=s.InspectorControls,f=s.MediaUpload,p=wp.element.Fragment,m=wp.components,y=m.PanelBody,k=m.RangeControl,g=m.SelectControl,S=m.ToggleControl,w=m.ColorPalette,h=m.FocalPointPicker;d("wdp/section-block",{title:i("Section Block (by We Do Plugins)","section-block"),description:i("Cool Section Block for new Block Editor.","section-block"),icon:"index-card",category:"widgets",supports:{align:["wide","full"]},attributes:{useCustomStyles:{type:"boolean",default:!1},padding:{type:"integer",default:parseInt(WDPSectionBlock.padding,10)},overlayBackgroundColor:{type:"string",default:WDPSectionBlock.overlayBackgroundColor},overlayOpacity:{type:"float",default:parseFloat(WDPSectionBlock.overlayOpacity,10)},borderColor:{type:"string",default:WDPSectionBlock.borderColor},borderStyle:{type:"string",default:WDPSectionBlock.borderStyle},borderWidth:{type:"integer",default:parseInt(WDPSectionBlock.borderWidth,10)},boxShadowXOffset:{type:"integer",default:parseInt(WDPSectionBlock.boxShadowXOffset,10)},boxShadowYOffset:{type:"integer",default:parseInt(WDPSectionBlock.boxShadowYOffset,10)},boxShadowBlurRadius:{type:"integer",default:parseInt(WDPSectionBlock.boxShadowBlurRadius,10)},boxShadowSpreadRadius:{type:"integer",default:parseInt(WDPSectionBlock.boxShadowSpreadRadius,10)},boxShadowColor:{type:"string",default:WDPSectionBlock.boxShadowColor},boxShadowOpacity:{type:"float",default:parseFloat(WDPSectionBlock.boxShadowOpacity,10)},backgroundImage:{type:"string",default:null},backgroundImageFocalPos:{type:"object",default:{x:.5,y:.5}}},edit:function(e){var o=e.attributes,t=e.setAttributes,n=e.className,l=o.useCustomStyles,c=o.padding,d=o.overlayBackgroundColor,s=o.overlayOpacity,m=o.borderColor,v=o.borderStyle,x=o.borderWidth,B=o.boxShadowXOffset,C=o.boxShadowYOffset,R=o.boxShadowBlurRadius,P=o.boxShadowSpreadRadius,O=o.boxShadowColor,E=o.boxShadowOpacity,W=o.backgroundImage,D=o.backgroundImageFocalPos;return React.createElement(p,null,React.createElement(b,null,React.createElement(y,{title:i("Use custom styles?","section-block")},React.createElement(S,{label:i("Use custom styles?","section-block"),checked:l,onChange:function(e){t({useCustomStyles:e})}})),!0===l&&React.createElement("div",null,React.createElement(y,{title:i("Overlay","section-block"),initialOpen:!1},React.createElement(p,null,React.createElement("p",null,i("Overlay background color","section-block")),React.createElement(w,{label:i("Overlay background color","section-block"),value:d,colors:WDPSectionBlock.themeColors,onChange:function(e){t({overlayBackgroundColor:e})}})),React.createElement(k,{label:i("Overlay opacity","section-block"),value:s,onChange:function(e){t({overlayOpacity:e})},min:0,max:1,step:.01})),React.createElement(y,{title:i("Padding","section-block"),initialOpen:!1},React.createElement(k,{label:i("Padding","section-block"),value:c,onChange:function(e){t({padding:e})},min:0,max:120})),React.createElement(y,{title:i("Border","section-block"),initialOpen:!1},React.createElement(p,null,React.createElement("p",null,i("Border color","section-block")),React.createElement(w,{label:i("Border color","section-block"),value:m,colors:WDPSectionBlock.themeColors,onChange:function(e){t({borderColor:e})}})),React.createElement(g,{label:i("Border style","section-block"),value:v,onChange:function(e){t({borderStyle:e})},options:[{value:"solid",label:i("Solid","section-block")},{value:"dashed",label:i("Dashed","section-block")},{value:"dotted",label:i("Dotted","section-block")}]}),React.createElement(k,{label:i("Border width","section-block"),value:x,onChange:function(e){t({borderWidth:e})},min:0,max:30})),React.createElement(y,{title:i("Box shadow","section-block"),initialOpen:!1},React.createElement(k,{label:i("X offset","section-block"),value:B,onChange:function(e){t({boxShadowXOffset:e})},min:-100,max:100}),React.createElement(k,{label:i("Y offset","section-block"),value:C,onChange:function(e){t({boxShadowYOffset:e})},min:-100,max:100}),React.createElement(k,{label:i("Blur radius","section-block"),value:R,onChange:function(e){t({boxShadowBlurRadius:e})},min:0,max:100}),React.createElement(k,{label:i("Spread radius","section-block"),value:P,onChange:function(e){t({boxShadowSpreadRadius:e})},min:-100,max:100}),React.createElement(p,null,React.createElement("p",null,i("Box shadow color","section-block")),React.createElement(w,{label:i("Box shadow color","section-block"),value:O,colors:WDPSectionBlock.themeColors,onChange:function(e){t({boxShadowColor:e})}})),React.createElement(k,{label:i("Box shadow color opacity","section-block"),value:E,onChange:function(e){t({boxShadowOpacity:e})},min:0,max:1,step:.01})),React.createElement(y,{title:i("Background image","section-block"),initialOpen:!1},React.createElement(f,{onSelect:function(e){t({backgroundImage:e.sizes.full.url})},type:"image",value:W,render:function(e){var o=e.open;return React.createElement("button",{className:"button",onClick:o},i("Upload image","section-block"))}}),null!==W&&React.createElement(p,null,React.createElement("h4",null,i("Image focal point","section-block")),React.createElement(h,{url:W,value:D,onChange:function(e){t({backgroundImageFocalPos:e})}}))))),React.createElement("div",{className:n,style:!0===l?r.get(o):{}},React.createElement("div",{className:"wp-block-wdp-section-block__background"}),React.createElement(u,null)),a.a.update(!0))},save:function(e){var o=e.attributes,t=e.className,a=o.useCustomStyles;return React.createElement("div",{className:t,style:!0===a?r.get(o):{}},React.createElement("div",{className:"wp-block-wdp-section-block__background"}),React.createElement(u.Content,null))}})}]);
readme.txt CHANGED
@@ -6,7 +6,7 @@ Tested up to: 5.1
6
  Requires PHP: 5.6
7
  License: GPLv2 or later
8
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
9
- Stable tag: 1.0.0
10
 
11
  Section Block for new WordPress Block Editor allow you to add Sections to your website and customize it.
12
 
@@ -33,5 +33,10 @@ Please note that this plugin so far require [Gutenberg plugin](https://wordpress
33
 
34
  == Changelog ==
35
 
 
 
 
 
 
36
  = 1.0.0 =
37
  * Initial release.
6
  Requires PHP: 5.6
7
  License: GPLv2 or later
8
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
9
+ Stable tag: 1.1.0
10
 
11
  Section Block for new WordPress Block Editor allow you to add Sections to your website and customize it.
12
 
33
 
34
  == Changelog ==
35
 
36
+ = 1.1.0 =
37
+ * Fixed: issue with block height.
38
+ * Added: CSS variables polyfill
39
+ * Improved: Only modified styles are added as inline variables
40
+
41
  = 1.0.0 =
42
  * Initial release.
section-block.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Adds a Section Block to new WordPress Blocks editor.
6
  * Author: We Do Plugins
7
  * Author URI: http://wedoplugins.com/
8
- * Version: 1.0.0
9
  * License: GPL2+
10
  * Text Domain: section-block
11
  *
@@ -17,7 +17,7 @@ if ( ! defined( 'ABSPATH' ) ) {
17
  }
18
 
19
  define( 'WDPSB_MAIN_FILE', __FILE__ );
20
- define( 'WDPSB_VERSION', '1.0.0' );
21
 
22
  require_once dirname( WDPSB_MAIN_FILE ) . '/classes/class-wdpsb-config.php';
23
  require_once dirname( WDPSB_MAIN_FILE ) . '/classes/class-wdpsb-enqueue.php';
5
  * Description: Adds a Section Block to new WordPress Blocks editor.
6
  * Author: We Do Plugins
7
  * Author URI: http://wedoplugins.com/
8
+ * Version: 1.1.0
9
  * License: GPL2+
10
  * Text Domain: section-block
11
  *
17
  }
18
 
19
  define( 'WDPSB_MAIN_FILE', __FILE__ );
20
+ define( 'WDPSB_VERSION', '1.1.0' );
21
 
22
  require_once dirname( WDPSB_MAIN_FILE ) . '/classes/class-wdpsb-config.php';
23
  require_once dirname( WDPSB_MAIN_FILE ) . '/classes/class-wdpsb-enqueue.php';