Version Description
- Blocks Summary page updated
- block editor styles improved
Download this release
Release Info
Developer | wedoplugins |
Plugin | Section Block |
Version | 1.3.3 |
Comparing to | |
See all releases |
Code changes from version 1.3.2 to 1.3.3
- build/background-position-events.min.js +1 -1
- build/block.min.js +1 -1
- build/blocks-summary.css +1 -1
- classes/class-wdpsb-blockssummarypage.php +17 -16
- readme.txt +6 -2
- section-block.php +2 -2
build/background-position-events.min.js
CHANGED
@@ -72,7 +72,7 @@ function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;
|
|
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({},{preserveStatic:!0,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 v(){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.preserveStatic){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 y(){if(!t.preserveStatic){var r=i("{","}",e);if(r){var o=/:(?:root|host)(?![.:#(])/.test(r.pre)&&/--\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.preserveStatic?p():p().filter((function(e){var t=s.some((function(e){return/:(?:root|host)(?![.:#(])/.test(e)}))&&/^--\S/.test(e.property),n=/var\(/.test(e.value);return t||n}));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=v()||y());)r.type&&o.push(r),o=o.concat(l());return t||s()?o:n("missing '}'")}return{type:"stylesheet",stylesheet:{rules:h(!0),errors:[]}}}function p(e){var t=r({},{parseHost:!1,store:{},onWarning:function(){}},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),n=new RegExp(":".concat(t.parseHost?"host":"root","(?![.:#(])"));return"string"==typeof e&&(e=d(e,t)),e.stylesheet.rules.forEach((function(e){"rule"===e.type&&e.selectors.some((function(e){return n.test(e)}))&&e.declarations.forEach((function(e,n){var r=e.property,o=e.value;r&&0===r.indexOf("--")&&(t.store[r]=o)}))})),t.store}function m(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)}u.range=f;var v="--",y="var";function h(e){var t=r({},{preserveStatic:!0,preserveVars:!1,variables:{},onWarning:function(){}},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});return"string"==typeof e&&(e=d(e,t)),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)}))}(e.stylesheet,(function(e,n){for(var r=0;r<e.length;r++){var o=e[r],a=o.type,s=o.property,c=o.value;if("declaration"===a)if(t.preserveVars||!s||0!==s.indexOf(v)){if(-1!==c.indexOf(y+"(")){var i=b(c,t);i!==o.value&&(i=g(i),t.preserveVars?(e.splice(r,0,{type:a,property:s,value:i}),r++):o.value=i)}}else e.splice(r,1),r--}})),m(e)}function g(e){return(e.match(/calc\(([^)]+)\)/g)||[]).forEach((function(t){var n="calc".concat(t.split("calc").join(""));e=e.replace(t,n)})),e}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if(-1===e.indexOf("var("))return e;var r=i("(",")",e);return r?"var"===r.pre.slice(-3)?0===r.body.trim().length?(t.onWarning("var() must contain a non-whitespace string"),e):r.pre.slice(0,-3)+function(e){var r=e.split(",")[0].replace(/[\s\n\t]/g,""),o=(e.match(/(?:\s*,\s*){1}(.*)?/)||[])[1],a=Object.prototype.hasOwnProperty.call(t.variables,r)?String(t.variables[r]):void 0,s=a||(o?String(o):void 0),c=n||e;return a||t.onWarning('variable "'.concat(r,'" is undefined')),s&&"undefined"!==s&&s.length>0?b(s,t,c):"var(".concat(c,")")}(r.body)+b(r.post,t):r.pre+"(".concat(b(r.body,t),")")+b(r.post,t):(-1!==e.indexOf("var(")&&t.onWarning('missing closing ")" in the value "'.concat(e,'"')),e)}var S="undefined"!=typeof window,E=S&&window.CSS&&window.CSS.supports&&window.CSS.supports("(--a: 0)"),w={group:0,job:0},O={rootElement:S?document:null,shadowDOM:!1,include:"style,link[rel=stylesheet]",exclude:"",variables:{},onlyLegacy:!0,preserveStatic:!0,preserveVars:!1,silent:!1,updateDOM:!0,updateURLs:!0,watch:null,onBeforeSend:function(){},onWarning:function(){},onError:function(){},onSuccess:function(){},onComplete:function(){}},C={cssComments:/\/\*[\s\S]+?\*\//g,cssKeyframes:/@(?:-\w*-)?keyframes/,cssMediaQueries:/@media[^{]+\{([\s\S]+?})\s*}/g,cssUrls:/url\((?!['"]?(?:data|http|\/\/):)['"]?([^'")]*)['"]?\)/g,cssVarDeclRules:/(?::(?:root|host)(?![.:#(])[\s,]*[^{]*{\s*[^}]*})/g,cssVarDecls:/(?:[\s;]*)(-{2}\w[\w-]*)(?:\s*:\s*)([^;]*);/g,cssVarFunc:/var\(\s*--[\w-]/,cssVars:/(?:(?::(?:root|host)(?![.:#(])[\s,]*[^{]*{\s*[^;]*;*\s*)|(?:var\(\s*))(--[^:)]+)(?:\s*[:)])/},x={dom:{},job:{},user:{}},A=!1,j=null,k=0,_=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>
|
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]:[],i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],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({},{preserveStatic:!0,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 v(){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.preserveStatic){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 y(){if(!t.preserveStatic){var r=i("{","}",e);if(r){var o=/:(?:root|host)(?![.:#(])/.test(r.pre)&&/--\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.preserveStatic?p():p().filter((function(e){var t=s.some((function(e){return/:(?:root|host)(?![.:#(])/.test(e)}))&&/^--\S/.test(e.property),n=/var\(/.test(e.value);return t||n}));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=v()||y());)r.type&&o.push(r),o=o.concat(l());return t||s()?o:n("missing '}'")}return{type:"stylesheet",stylesheet:{rules:h(!0),errors:[]}}}function p(e){var t=r({},{parseHost:!1,store:{},onWarning:function(){}},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),n=new RegExp(":".concat(t.parseHost?"host":"root","(?![.:#(])"));return"string"==typeof e&&(e=d(e,t)),e.stylesheet.rules.forEach((function(e){"rule"===e.type&&e.selectors.some((function(e){return n.test(e)}))&&e.declarations.forEach((function(e,n){var r=e.property,o=e.value;r&&0===r.indexOf("--")&&(t.store[r]=o)}))})),t.store}function m(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)}u.range=f;var v="--",y="var";function h(e){var t=r({},{preserveStatic:!0,preserveVars:!1,variables:{},onWarning:function(){}},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});return"string"==typeof e&&(e=d(e,t)),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)}))}(e.stylesheet,(function(e,n){for(var r=0;r<e.length;r++){var o=e[r],a=o.type,s=o.property,c=o.value;if("declaration"===a)if(t.preserveVars||!s||0!==s.indexOf(v)){if(-1!==c.indexOf(y+"(")){var i=b(c,t);i!==o.value&&(i=g(i),t.preserveVars?(e.splice(r,0,{type:a,property:s,value:i}),r++):o.value=i)}}else e.splice(r,1),r--}})),m(e)}function g(e){return(e.match(/calc\(([^)]+)\)/g)||[]).forEach((function(t){var n="calc".concat(t.split("calc").join(""));e=e.replace(t,n)})),e}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if(-1===e.indexOf("var("))return e;var r=i("(",")",e);return r?"var"===r.pre.slice(-3)?0===r.body.trim().length?(t.onWarning("var() must contain a non-whitespace string"),e):r.pre.slice(0,-3)+function(e){var r=e.split(",")[0].replace(/[\s\n\t]/g,""),o=(e.match(/(?:\s*,\s*){1}(.*)?/)||[])[1],a=Object.prototype.hasOwnProperty.call(t.variables,r)?String(t.variables[r]):void 0,s=a||(o?String(o):void 0),c=n||e;return a||t.onWarning('variable "'.concat(r,'" is undefined')),s&&"undefined"!==s&&s.length>0?b(s,t,c):"var(".concat(c,")")}(r.body)+b(r.post,t):r.pre+"(".concat(b(r.body,t),")")+b(r.post,t):(-1!==e.indexOf("var(")&&t.onWarning('missing closing ")" in the value "'.concat(e,'"')),e)}var S="undefined"!=typeof window,E=S&&window.CSS&&window.CSS.supports&&window.CSS.supports("(--a: 0)"),w={group:0,job:0},O={rootElement:S?document:null,shadowDOM:!1,include:"style,link[rel=stylesheet]",exclude:"",variables:{},onlyLegacy:!0,preserveStatic:!0,preserveVars:!1,silent:!1,updateDOM:!0,updateURLs:!0,watch:null,onBeforeSend:function(){},onWarning:function(){},onError:function(){},onSuccess:function(){},onComplete:function(){}},C={cssComments:/\/\*[\s\S]+?\*\//g,cssKeyframes:/@(?:-\w*-)?keyframes/,cssMediaQueries:/@media[^{]+\{([\s\S]+?})\s*}/g,cssUrls:/url\((?!['"]?(?:data|http|\/\/):)['"]?([^'")]*)['"]?\)/g,cssVarDeclRules:/(?::(?:root|host)(?![.:#(])[\s,]*[^{]*{\s*[^}]*})/g,cssVarDecls:/(?:[\s;]*)(-{2}\w[\w-]*)(?:\s*:\s*)([^;]*);/g,cssVarFunc:/var\(\s*--[\w-]/,cssVars:/(?:(?::(?:root|host)(?![.:#(])[\s,]*[^{]*{\s*[^;]*;*\s*)|(?:var\(\s*))(--[^:)]+)(?:\s*[:)])/},x={dom:{},job:{},user:{}},A=!1,j=null,k=0,_=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>
|
build/block.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){var t={};function o(a){if(t[a])return t[a].exports;var n=t[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=e,o.c=t,o.d=function(e,t,a){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(o.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(a,n,function(t){return e[t]}.bind(null,n));return a},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=1)}([function(e,t,o){"use strict";function a(e,t){for(var o=0;o<t.length;o++){var a=t[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}o.d(t,"a",(function(){return n}));var n=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,o,n;return t=e,(o=[{key:"getOffsetLeft",value:function(e){var t=0;do{null!==e.offsetParent&&(null===(e=e.offsetParent)||void 0===e.offsetLeft||isNaN(e.offsetLeft)||(t+=e.offsetLeft))}while(e.offsetParent);return t}},{key:"update",value:function(e){var t=document.getElementById("adminmenuback"),o=this,a=0;null!==t&&"none"!==getComputedStyle(t,null).display&&(a=document.body.classList.contains("folded")?36:160),Array.from(document.querySelectorAll(".wp-block-wdp-section-block__background")).forEach((function(e){e.style.marginLeft=null,e.style.marginLeft="".concat(-1*(o.getOffsetLeft(e)-a),"px")})),!0===e&&setTimeout((function(){o.update()}),25)}}])&&a(t.prototype,o),n&&a(t,n),e}())},function(e,t,o){"use strict";o.r(t);var a=o(0),n=function(e,t){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,o,a){return t+t+o+o+a+a}));var o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return o?"rgba(".concat(parseInt(o[1],16),",").concat(parseInt(o[2],16),",").concat(parseInt(o[3],16),",").concat(parseFloat(t,10),")"):e},l=function(e){var t=e.useCustomStyles,o=e.padding,a=e.overlayBackgroundColor,l=e.overlayOpacity,r=e.borderColor,c=e.borderStyle,d=e.borderWidth,s=e.boxShadowXOffset,i=e.boxShadowYOffset,u=e.boxShadowBlurRadius,b=e.boxShadowSpreadRadius,p=e.boxShadowColor,f=e.boxShadowOpacity,w=e.backgroundImage,m=e.backgroundImageFocalPos,y={};return!1===t?y:(o!==parseInt(wdpsb.padding,10)&&(y["--wdpsb-padding"]="".concat(o,"px")),void 0!==a&&a!==wdpsb.overlayBackgroundColor&&(y["--wdpsb-overlay-background-color"]=a),l!==parseFloat(wdpsb.overlayOpacity,10)&&(y["--wdpsb-overlay-opacity"]=l.toString()),void 0!==r&&r!==wdpsb.borderColor&&(y["--wdpsb-border-color"]=r),c!==wdpsb.borderStyle&&(y["--wdpsb-border-style"]=c),d!==parseInt(wdpsb.borderWidth,10)&&(y["--wdpsb-border-width"]="".concat(d,"px")),s!==parseInt(wdpsb.boxShadowXOffset,10)&&(y["--wdpsb-box-shadow-xoffset"]="".concat(s,"px")),i!==parseInt(wdpsb.boxShadowYOffset,10)&&(y["--wdpsb-box-shadow-yoffset"]="".concat(i,"px")),u!==parseInt(wdpsb.boxShadowBlurRadius,10)&&(y["--wdpsb-box-shadow-blurradius"]="".concat(u,"px")),b!==parseInt(wdpsb.boxShadowSpreadRadius,10)&&(y["--wdpsb-box-shadow-spreadradius"]="".concat(b,"px")),void 0===p||p===wdpsb.boxShadowColor&&f===parseFloat(wdpsb.boxShadowOpacity,10)||(y["--wdpsb-box-shadow-color"]=n(p,f)),void 0===p&&f!==parseFloat(wdpsb.boxShadowOpacity,10)&&(y["--wdpsb-box-shadow-color"]=n(wdpsb.boxShadowColor,f)),null!==w&&(y["--wdpsb-background-image"]="url('".concat(w,"')")),.5!==m.x&&(y["--wdpsb-background-image-position-x"]="".concat(100*m.x,"%")),.5!==m.y&&(y["--wdpsb-background-image-position-y"]="".concat(100*m.y,"%")),y)},r=wp.i18n.__,c=wp.blocks.registerBlockType,d=wp.blockEditor,s=d.InnerBlocks,i=d.InspectorControls,u=d.MediaUpload,b=wp.element.Fragment,p=wp.components,f=p.
|
1 |
+
!function(e){var t={};function o(a){if(t[a])return t[a].exports;var n=t[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=e,o.c=t,o.d=function(e,t,a){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(o.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(a,n,function(t){return e[t]}.bind(null,n));return a},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=1)}([function(e,t,o){"use strict";function a(e,t){for(var o=0;o<t.length;o++){var a=t[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}o.d(t,"a",(function(){return n}));var n=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,o,n;return t=e,(o=[{key:"getOffsetLeft",value:function(e){var t=0;do{null!==e.offsetParent&&(null===(e=e.offsetParent)||void 0===e.offsetLeft||isNaN(e.offsetLeft)||(t+=e.offsetLeft))}while(e.offsetParent);return t}},{key:"update",value:function(e){var t=document.getElementById("adminmenuback"),o=this,a=0;null!==t&&"none"!==getComputedStyle(t,null).display&&(a=document.body.classList.contains("folded")?36:160),Array.from(document.querySelectorAll(".wp-block-wdp-section-block__background")).forEach((function(e){e.style.marginLeft=null,e.style.marginLeft="".concat(-1*(o.getOffsetLeft(e)-a),"px")})),!0===e&&setTimeout((function(){o.update()}),25)}}])&&a(t.prototype,o),n&&a(t,n),e}())},function(e,t,o){"use strict";o.r(t);var a=o(0),n=function(e,t){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,o,a){return t+t+o+o+a+a}));var o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return o?"rgba(".concat(parseInt(o[1],16),",").concat(parseInt(o[2],16),",").concat(parseInt(o[3],16),",").concat(parseFloat(t,10),")"):e},l=function(e){var t=e.useCustomStyles,o=e.padding,a=e.overlayBackgroundColor,l=e.overlayOpacity,r=e.borderColor,c=e.borderStyle,d=e.borderWidth,s=e.boxShadowXOffset,i=e.boxShadowYOffset,u=e.boxShadowBlurRadius,b=e.boxShadowSpreadRadius,p=e.boxShadowColor,f=e.boxShadowOpacity,w=e.backgroundImage,m=e.backgroundImageFocalPos,y={};return!1===t?y:(o!==parseInt(wdpsb.padding,10)&&(y["--wdpsb-padding"]="".concat(o,"px")),void 0!==a&&a!==wdpsb.overlayBackgroundColor&&(y["--wdpsb-overlay-background-color"]=a),l!==parseFloat(wdpsb.overlayOpacity,10)&&(y["--wdpsb-overlay-opacity"]=l.toString()),void 0!==r&&r!==wdpsb.borderColor&&(y["--wdpsb-border-color"]=r),c!==wdpsb.borderStyle&&(y["--wdpsb-border-style"]=c),d!==parseInt(wdpsb.borderWidth,10)&&(y["--wdpsb-border-width"]="".concat(d,"px")),s!==parseInt(wdpsb.boxShadowXOffset,10)&&(y["--wdpsb-box-shadow-xoffset"]="".concat(s,"px")),i!==parseInt(wdpsb.boxShadowYOffset,10)&&(y["--wdpsb-box-shadow-yoffset"]="".concat(i,"px")),u!==parseInt(wdpsb.boxShadowBlurRadius,10)&&(y["--wdpsb-box-shadow-blurradius"]="".concat(u,"px")),b!==parseInt(wdpsb.boxShadowSpreadRadius,10)&&(y["--wdpsb-box-shadow-spreadradius"]="".concat(b,"px")),void 0===p||p===wdpsb.boxShadowColor&&f===parseFloat(wdpsb.boxShadowOpacity,10)||(y["--wdpsb-box-shadow-color"]=n(p,f)),void 0===p&&f!==parseFloat(wdpsb.boxShadowOpacity,10)&&(y["--wdpsb-box-shadow-color"]=n(wdpsb.boxShadowColor,f)),null!==w&&(y["--wdpsb-background-image"]="url('".concat(w,"')")),.5!==m.x&&(y["--wdpsb-background-image-position-x"]="".concat(100*m.x,"%")),.5!==m.y&&(y["--wdpsb-background-image-position-y"]="".concat(100*m.y,"%")),y)},r=wp.i18n.__,c=wp.blocks.registerBlockType,d=wp.blockEditor,s=d.InnerBlocks,i=d.InspectorControls,u=d.MediaUpload,b=wp.element.Fragment,p=wp.components,f=p.Button,w=p.PanelBody,m=p.RangeControl,y=p.SelectControl,g=p.ToggleControl,h=p.ColorPalette,k=p.FocalPointPicker,x={useCustomStyles:{type:"boolean",default:!1},padding:{type:"integer",default:parseInt(wdpsb.padding,10)},overlayBackgroundColor:{type:"string",default:wdpsb.overlayBackgroundColor},overlayOpacity:{type:"float",default:parseFloat(wdpsb.overlayOpacity,10)},borderColor:{type:"string",default:wdpsb.borderColor},borderStyle:{type:"string",default:wdpsb.borderStyle},borderWidth:{type:"integer",default:parseInt(wdpsb.borderWidth,10)},boxShadowXOffset:{type:"integer",default:parseInt(wdpsb.boxShadowXOffset,10)},boxShadowYOffset:{type:"integer",default:parseInt(wdpsb.boxShadowYOffset,10)},boxShadowBlurRadius:{type:"integer",default:parseInt(wdpsb.boxShadowBlurRadius,10)},boxShadowSpreadRadius:{type:"integer",default:parseInt(wdpsb.boxShadowSpreadRadius,10)},boxShadowColor:{type:"string",default:wdpsb.boxShadowColor},boxShadowOpacity:{type:"float",default:parseFloat(wdpsb.boxShadowOpacity,10)},backgroundImage:{type:"string",default:null},backgroundImageFocalPos:{type:"object",default:{x:.5,y:.5}}};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:x,example:{attributes:{defaultAttributes:x}},edit:function(e){var t=e.attributes,o=e.setAttributes,n=e.className,c=t.useCustomStyles,d=t.padding,p=t.overlayBackgroundColor,x=t.overlayOpacity,v=t.borderColor,S=t.borderStyle,R=t.borderWidth,C=t.boxShadowXOffset,E=t.boxShadowYOffset,O=t.boxShadowBlurRadius,B=t.boxShadowSpreadRadius,I=t.boxShadowColor,P=t.boxShadowOpacity,_=t.backgroundImage,F=t.backgroundImageFocalPos;return React.createElement(b,null,React.createElement(i,null,React.createElement(w,{title:r("Use custom styles?","section-block")},React.createElement(g,{label:r("Use custom styles?","section-block"),checked:c,onChange:function(e){o({useCustomStyles:e})}})),!0===c&&React.createElement("div",null,React.createElement(w,{title:r("Overlay","section-block"),initialOpen:!1},React.createElement(b,null,React.createElement("p",null,r("Overlay background color","section-block")),React.createElement(h,{label:r("Overlay background color","section-block"),value:p,colors:wdpsb.themeColors,onChange:function(e){o({overlayBackgroundColor:e})}})),React.createElement(m,{label:r("Overlay opacity","section-block"),value:x,onChange:function(e){o({overlayOpacity:e})},min:0,max:1,step:.01})),React.createElement(w,{title:r("Padding","section-block"),initialOpen:!1},React.createElement(m,{label:r("Padding","section-block"),value:d,onChange:function(e){o({padding:e})},min:0,max:120})),React.createElement(w,{title:r("Border","section-block"),initialOpen:!1},React.createElement(b,null,React.createElement("p",null,r("Border color","section-block")),React.createElement(h,{label:r("Border color","section-block"),value:v,colors:wdpsb.themeColors,onChange:function(e){o({borderColor:e})}})),React.createElement(y,{label:r("Border style","section-block"),value:S,onChange:function(e){o({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:R,onChange:function(e){o({borderWidth:e})},min:0,max:30})),React.createElement(w,{title:r("Box shadow","section-block"),initialOpen:!1},React.createElement(m,{label:r("X offset","section-block"),value:C,onChange:function(e){o({boxShadowXOffset:e})},min:-100,max:100}),React.createElement(m,{label:r("Y offset","section-block"),value:E,onChange:function(e){o({boxShadowYOffset:e})},min:-100,max:100}),React.createElement(m,{label:r("Blur radius","section-block"),value:O,onChange:function(e){o({boxShadowBlurRadius:e})},min:0,max:100}),React.createElement(m,{label:r("Spread radius","section-block"),value:B,onChange:function(e){o({boxShadowSpreadRadius:e})},min:-100,max:100}),React.createElement(b,null,React.createElement("p",null,r("Box shadow color","section-block")),React.createElement(h,{label:r("Box shadow color","section-block"),value:I,colors:wdpsb.themeColors,onChange:function(e){o({boxShadowColor:e})}})),React.createElement(m,{label:r("Box shadow color opacity","section-block"),value:P,onChange:function(e){o({boxShadowOpacity:e})},min:0,max:1,step:.01})),React.createElement(w,{title:r("Background image","section-block"),initialOpen:!1},React.createElement(u,{onSelect:function(e){o({backgroundImage:e.sizes.full.url})},type:"image",value:_,render:function(e){var t=e.open;return React.createElement(f,{isDefault:!0,onClick:t},r("Upload image","section-block"))}}),null!==_&&React.createElement(b,null,React.createElement("span",{className:"wp-block-wdp-section-block__or-span"},r("or","section-block")),React.createElement(f,{isDefault:!0,onClick:function(e){e.preventDefault(),o({backgroundImage:null})}},r("Remove current","section-block")),React.createElement("h4",null,r("Image focal point","section-block")),React.createElement(k,{url:_,value:F,onChange:function(e){o({backgroundImageFocalPos:e})}}))))),React.createElement("div",{className:n,style:!0===c?l(t):{}},React.createElement("div",{className:"wp-block-wdp-section-block__background"}),React.createElement(s,null)),a.a.update(!0))},save:function(e){var t=e.attributes,o=e.className,a=t.useCustomStyles;return React.createElement("div",{className:o,style:!0===a?l(t):{}},React.createElement("div",{className:"wp-block-wdp-section-block__background"}),React.createElement(s.Content,null))}})}]);
|
build/blocks-summary.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
@charset "UTF-8";body.settings_page_wdp-blocks-summary
|
1 |
+
@charset "UTF-8";body.settings_page_wdp-blocks-summary:not(.rtl) #wpcontent{padding-left:0}body.settings_page_wdp-blocks-summary.rtl #wpcontent{padding-right:0}body.settings_page_wdp-blocks-summary .notice:not(.wdp-blocks-summary-notice),body.settings_page_wdp-blocks-summary .update-nag{display:none}.wdp-blocks-summary{margin:0}.wdp-blocks-summary__heading{border-top:5px solid #0073aa;background:#fff;padding:50px}.wdp-blocks-summary__heading h1{margin:0 0 0 20px;padding:0;font-size:32px;font-weight:700;display:inline-block;vertical-align:middle}.wdp-blocks-summary__heading img{width:64px;height:64px;display:inline-block;vertical-align:middle;border-radius:100%}.wdp-blocks-summary__heading>p{margin:30px 0;padding:0;font-size:16px;line-height:1.5}.wdp-blocks-summary__heading>p:last-child{margin-bottom:0}.wdp-blocks-summary__container{position:relative;font-size:0;padding:0 50px 10px 50px}.wdp-blocks-summary__container__content h2{font-size:24px;font-weight:700;margin:50px 0 30px 0;padding:0}.wdp-blocks-summary__container__content h2 a{text-decoration:none;display:inline-block;padding-top:70px;outline:0;box-shadow:none}body:not(.rtl) .wdp-blocks-summary__container__content h2 a{margin-right:10px}body.rtl .wdp-blocks-summary__container__content h2 a{margin-left:10px}.wdp-blocks-summary__container__content li{font-size:13px;line-height:1.5}.wdp-blocks-summary__container__content ul li{list-style-type:disc;margin:0 0 30px 0}body:not(.rtl) .wdp-blocks-summary__container__content ul li{margin-left:1em}body.rtl .wdp-blocks-summary__container__content ul li{margin-right:1em}.wdp-blocks-summary__container__content ul li img{margin-top:30px;display:block}.wdp-blocks-summary__container__content img{max-width:100%}.wdp-blocks-summary__settings>h2:only-child{display:none}.wdp-blocks-summary__setting{border:1px solid #ccd0d4;box-shadow:0 1px 1px rgba(0,0,0,.04);padding:30px;background:#fff}.wdp-blocks-summary__setting h3{font-size:1rem;font-weight:700;cursor:auto;margin:0 0 10px 0}.wdp-blocks-summary__setting input[type=text]{width:100%;font-size:13px;padding:10px;margin:15px 0 0 0}.wdp-blocks-summary__setting p{font-style:italic;font-size:13px}.wdp-blocks-summary__setting p.wdp-blocks-summary__setting__loading-notice{margin:0}.wdp-blocks-summary__setting .wdp-blocks-summary-notice{margin:20px 0 5px 0}.wdp-blocks-summary__setting .wdp-blocks-summary-notice p{font-style:normal;margin:0}.wdp-blocks-summary__setting .components-button+.components-button{margin-left:15px}.wdp-blocks-summary__setting+.wdp-blocks-summary__setting{margin-top:30px}p.wdp-blocks-summary__plugins-table__summary{font-size:13px;margin:-15px 0 30px 0}p.wdp-blocks-summary__plugins-table__summary--fetching{font-style:italic;margin-bottom:0}.wdp-blocks-summary__plugins-table__plugins{border:1px solid #ccd0d4;box-shadow:0 1px 1px rgba(0,0,0,.04);background:#fff}.wdp-blocks-summary__plugins-table__plugins:empty{display:none}.wdp-blocks-summary__plugins-table__plugin{padding:20px}.wdp-blocks-summary__plugins-table__plugin:not(:last-child){border-bottom:1px solid #e1e1e1}.wdp-blocks-summary__plugins-table__plugin__description,.wdp-blocks-summary__plugins-table__plugin__image{display:inline-block;vertical-align:middle}.wdp-blocks-summary__plugins-table__plugin__image{width:64px;height:64px;border-radius:100%;font-size:0;background:#ccd0d4}.wdp-blocks-summary__plugins-table__plugin__image a{font-size:0;line-height:1;display:block;border:none;box-shadow:none;text-decoration:none;background:0 0}.wdp-blocks-summary__plugins-table__plugin__image img{width:64px;height:64px;border-radius:100%;margin:0}.wdp-blocks-summary__plugins-table__plugin__description{width:calc(100% - 90px);margin-left:20px}.wdp-blocks-summary__plugins-table__plugin__description p{font-size:13px;margin:0;padding:0}.wdp-blocks-summary__plugins-table__plugin__description p:first-child{color:#23282d}p.wdp-blocks-summary__plugins-table__plugin__installation-status{margin-top:10px;font-size:13px;color:#46b450}p.wdp-blocks-summary__plugins-table__plugin__installation-status span{font-style:italic;color:#23282d}
|
classes/class-wdpsb-blockssummarypage.php
CHANGED
@@ -17,17 +17,17 @@ if ( defined( 'WDP_SUMMARY_PAGE' ) ) {
|
|
17 |
|
18 |
define( 'WDP_SUMMARY_PAGE', true ); // Tell the other plugins that summary page is already rendered.
|
19 |
define( 'WDP_BSP_MAIN_FILE', WDPSB_MAIN_FILE );
|
20 |
-
define( 'WDP_BSP_VERSION', '1.0.
|
21 |
|
22 |
// phpcs:enable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedConstantFound
|
23 |
|
24 |
-
add_action( 'admin_menu', array( '
|
25 |
-
add_action( 'admin_enqueue_scripts', array( '
|
26 |
|
27 |
/**
|
28 |
* Blocks summary page class
|
29 |
*/
|
30 |
-
abstract class
|
31 |
|
32 |
/**
|
33 |
* Register blocks summary page
|
@@ -107,20 +107,21 @@ abstract class WDP_BlocksSummaryPage {
|
|
107 |
|
108 |
?>
|
109 |
<div class="wrap wdp-blocks-summary">
|
110 |
-
<div class="wdp-blocks-summary__heading"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
111 |
<div class="wdp-blocks-summary__container">
|
112 |
<div class="wdp-blocks-summary__container__content">
|
113 |
-
<img src="<?php echo esc_url( plugins_url( 'img/wedoplugins.png', WDP_BSP_MAIN_FILE ) ); ?>" alt="<?php echo esc_html( __( 'We Do Plugins', 'section-block' ) ); ?>" class="wdp-blocks-summary__container__content__icon" />
|
114 |
-
<h1><?php echo esc_html( __( 'Blocks by We Do Plugins', 'section-block' ) ); ?></h1>
|
115 |
-
<p>
|
116 |
-
<?php echo esc_html( __( 'We offer plugins that helps you build and maintain your website.', 'section-block' ) ); ?><br>
|
117 |
-
<?php echo esc_html( __( 'If you haven\'t already, check our plugins portfolio and improve your website today.', 'section-block' ) ); ?>
|
118 |
-
</p>
|
119 |
-
<p>
|
120 |
-
<a href="https://wedoplugins.com" target="_blank" rel="noopener noreferrer"><?php echo esc_html( __( 'Visit our website', 'section-block' ) ); ?></a>
|
121 |
-
<?php echo esc_html( __( 'or', 'section-block' ) ); ?>
|
122 |
-
<a href="https://twitter.com/wedoplugins" target="_blank" rel="noopener noreferrer"><?php echo esc_html( __( 'follow us on Twitter', 'section-block' ) ); ?></a>
|
123 |
-
</p>
|
124 |
<?php
|
125 |
|
126 |
// Display plugins settings, only if any exists.
|
17 |
|
18 |
define( 'WDP_SUMMARY_PAGE', true ); // Tell the other plugins that summary page is already rendered.
|
19 |
define( 'WDP_BSP_MAIN_FILE', WDPSB_MAIN_FILE );
|
20 |
+
define( 'WDP_BSP_VERSION', '1.0.10' );
|
21 |
|
22 |
// phpcs:enable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedConstantFound
|
23 |
|
24 |
+
add_action( 'admin_menu', array( 'WDPSB_BlocksSummaryPage', 'register_blocks_summary_page' ) );
|
25 |
+
add_action( 'admin_enqueue_scripts', array( 'WDPSB_BlocksSummaryPage', 'enqueue_scripts' ) );
|
26 |
|
27 |
/**
|
28 |
* Blocks summary page class
|
29 |
*/
|
30 |
+
abstract class WDPSB_BlocksSummaryPage {
|
31 |
|
32 |
/**
|
33 |
* Register blocks summary page
|
107 |
|
108 |
?>
|
109 |
<div class="wrap wdp-blocks-summary">
|
110 |
+
<div class="wdp-blocks-summary__heading">
|
111 |
+
<img src="<?php echo esc_url( plugins_url( 'img/wedoplugins.png', WDP_BSP_MAIN_FILE ) ); ?>" alt="<?php echo esc_html( __( 'We Do Plugins', 'section-block' ) ); ?>" class="wdp-blocks-summary__heading__icon" />
|
112 |
+
<h1><?php echo esc_html( __( 'Blocks by We Do Plugins', 'section-block' ) ); ?></h1>
|
113 |
+
<p>
|
114 |
+
<?php echo esc_html( __( 'We offer plugins that helps you to build and maintain your website.', 'section-block' ) ); ?><br>
|
115 |
+
<?php echo esc_html( __( 'Check our plugins portfolio and improve your website today.', 'section-block' ) ); ?>
|
116 |
+
</p>
|
117 |
+
<p>
|
118 |
+
<a href="https://wedoplugins.com" target="_blank" rel="noopener noreferrer"><?php echo esc_html( __( 'Visit our website', 'section-block' ) ); ?></a>
|
119 |
+
<?php echo esc_html( __( 'or', 'section-block' ) ); ?>
|
120 |
+
<a href="https://twitter.com/wedoplugins" target="_blank" rel="noopener noreferrer"><?php echo esc_html( __( 'follow us on Twitter', 'section-block' ) ); ?></a>
|
121 |
+
</p>
|
122 |
+
</div>
|
123 |
<div class="wdp-blocks-summary__container">
|
124 |
<div class="wdp-blocks-summary__container__content">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
125 |
<?php
|
126 |
|
127 |
// Display plugins settings, only if any exists.
|
readme.txt
CHANGED
@@ -2,11 +2,11 @@
|
|
2 |
Contributors: wedoplugins
|
3 |
Tags: block, section, section block, gutenberg, block editor, block library, blocks
|
4 |
Requires at least: 5.1
|
5 |
-
Tested up to: 5.2
|
6 |
Requires PHP: 7.1
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl.html
|
9 |
-
Stable tag: 1.3.
|
10 |
|
11 |
Section Block for new WordPress Block Editor allow you to add Sections to your website and customize it.
|
12 |
|
@@ -36,6 +36,10 @@ Blocks inside this Section Block can be wide- or full-aligned, but section itsel
|
|
36 |
|
37 |
== Changelog ==
|
38 |
|
|
|
|
|
|
|
|
|
39 |
= 1.3.2 =
|
40 |
* fixed SSL issue
|
41 |
|
2 |
Contributors: wedoplugins
|
3 |
Tags: block, section, section block, gutenberg, block editor, block library, blocks
|
4 |
Requires at least: 5.1
|
5 |
+
Tested up to: 5.3.2
|
6 |
Requires PHP: 7.1
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl.html
|
9 |
+
Stable tag: 1.3.3
|
10 |
|
11 |
Section Block for new WordPress Block Editor allow you to add Sections to your website and customize it.
|
12 |
|
36 |
|
37 |
== Changelog ==
|
38 |
|
39 |
+
= 1.3.3 =
|
40 |
+
* Blocks Summary page updated
|
41 |
+
* block editor styles improved
|
42 |
+
|
43 |
= 1.3.2 =
|
44 |
* fixed SSL issue
|
45 |
|
section-block.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: This plugin brings a Section Block to new WordPress Blocks editor.
|
6 |
* Author: We Do Plugins
|
7 |
* Author URI: http://wedoplugins.com/
|
8 |
-
* Version: 1.3.
|
9 |
* License: GPLv3
|
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.3.
|
21 |
|
22 |
/**
|
23 |
* Require plugin classes
|
5 |
* Description: This plugin brings a Section Block to new WordPress Blocks editor.
|
6 |
* Author: We Do Plugins
|
7 |
* Author URI: http://wedoplugins.com/
|
8 |
+
* Version: 1.3.3
|
9 |
* License: GPLv3
|
10 |
* Text Domain: section-block
|
11 |
*
|
17 |
}
|
18 |
|
19 |
define( 'WDPSB_MAIN_FILE', __FILE__ );
|
20 |
+
define( 'WDPSB_VERSION', '1.3.3' );
|
21 |
|
22 |
/**
|
23 |
* Require plugin classes
|