9 changed files with 34 additions and 33 deletions
@ -1,8 +1,8 @@
|
||||
{ |
||||
"/scripts/aldine.js": "/scripts/aldine.js?id=28a2ebcb9ae510032b59", |
||||
"/scripts/aldine.js": "/scripts/aldine.js?id=23474d19014434f02b3f", |
||||
"/styles/aldine.css": "/styles/aldine.css?id=00b0c10d93f464c01cc5", |
||||
"/styles/editor.css": "/styles/editor.css?id=10e3f4b144847aa8d75e", |
||||
"/styles/blocks/hero-unit/editor.css": "/styles/blocks/hero-unit/editor.css?id=d41d8cd98f00b204e980", |
||||
"/styles/blocks/page-section/editor.css": "/styles/blocks/page-section/editor.css?id=d41d8cd98f00b204e980", |
||||
"/scripts/customizer.js": "/scripts/customizer.js?id=decf119933e3b2d4b210", |
||||
"/scripts/blocks/hero-unit/block.js": "/scripts/blocks/hero-unit/block.js?id=68feac0df91f56d02826" |
||||
"/scripts/blocks/page-section/block.js": "/scripts/blocks/page-section/block.js?id=28da8f65e0922aad6041" |
||||
} |
||||
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
!function(e){var t={};function a(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=t,a.d=function(e,t,o){a.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=2)}({2:function(e,t,a){e.exports=a("wSxJ")},wSxJ:function(e,t){var a,o,n,l,c;a=window.wp.blocks,o=window.wp.i18n,n=window.wp.element,l=window._,c=n.createElement,wp.blocks.registerBlockType("aldine/hero-unit",{title:o.__("Hero Unit","pressbooks-aldine"),icon:"flag",category:"layout",attributes:{title:{type:"array",source:"children",selector:"h2"},content:{type:"array",source:"children",selector:"p"}},edit:function(e){var t=e.focus?e.focus.editable||"title":null,n=e.attributes;return c("div",{className:e.className},c(a.Editable,{tagName:"h2",className:"hero__title",inline:!1,placeholder:o.__("About Pressbooks","pressbooks-aldine"),value:n.title,onChange:function(t){e.setAttributes({title:t})},focus:"title"===t?focus:null,onFocus:function(t){e.setFocus(l.extend({},t,{editable:"title"}))}}),c(a.Editable,{tagName:"p",className:"hero__content",inline:!1,placeholder:o.__("Kogi ennui ugh plaid, hella neutra kitsch cloud bread next level twee taiyaki. Live-edge paleo fixie whatever farm-to-table snackwave, meditation fam man braid next level viral. Four loko waistcoat mustache cloud bread activated charcoal food truck pabst roof party ugh kitsch raw denim edison bulb man braid 8-bit try-hard. Activated charcoal put a bird on it tilde meggings farm-to-table coloring book. Before they sold out four dollar toast stumptown actually.","pressbooks-gutenberg"),value:n.content,onChange:function(t){e.setAttributes({content:t})},focus:"content"===t?focus:null,onFocus:function(t){e.setFocus(l.extend({},t,{editable:"content"}))}}),c("p",{classname:"hero__cta"},c(a.Editable,{tagName:"a",className:"call-to-action",inline:!1,placeholder:o.__("Learn More","pressbooks-aldine"),value:n.cta,onChange:function(t){e.setAttributes({cta:t})},focus:"cta"===t?focus:null,onFocus:function(t){e.setFocus(l.extend({},t,{editable:"cta"}))}})))},save:function(e){var t=e.attributes;return c("div",{className:e.className},c("h2",{className:"hero__title"},t.title),c("p",{className:"hero__content"},t.content),c("p",{classname:"hero__cta"},c("a",{classname:"call-to-action"},t.cta)))}})}}); |
||||
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=2)}({2:function(e,t,r){!function(){throw new Error('Cannot find module "/Users/ned/Projects/pressbooks/development/pressbooks.test/site/web/app/themes/pressbooks-aldine/assets/scripts/blocks/hero-unit/block.js"')}()}}); |
||||
@ -0,0 +1 @@
|
||||
!function(e){var t={};function a(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=t,a.d=function(e,t,o){a.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=2)}({2:function(e,t,a){e.exports=a("plbo")},plbo:function(e,t){var a,o,n,c,l;a=window.wp.blocks,o=window.wp.i18n,n=window.wp.element,c=window._,l=n.createElement,wp.blocks.registerBlockType("aldine/page-section",{title:o.__("Page Section","pressbooks-aldine"),icon:"flag",category:"layout",attributes:{title:{type:"array",source:"children",selector:"h2"},content:{type:"array",source:"children",selector:"p"}},edit:function(e){var t=e.focus?e.focus.editable||"title":null,n=e.attributes;return l("div",{className:e.className},l(a.Editable,{tagName:"h2",className:"page-section__title",inline:!1,placeholder:o.__("About Pressbooks","pressbooks-aldine"),value:n.title,onChange:function(t){e.setAttributes({title:t})},focus:"title"===t?focus:null,onFocus:function(t){e.setFocus(c.extend({},t,{editable:"title"}))}}),l(a.Editable,{tagName:"p",className:"page-section__content",inline:!1,placeholder:o.__("Kogi ennui ugh plaid, hella neutra kitsch cloud bread next level twee taiyaki. Live-edge paleo fixie whatever farm-to-table snackwave, meditation fam man braid next level viral. Four loko waistcoat mustache cloud bread activated charcoal food truck pabst roof party ugh kitsch raw denim edison bulb man braid 8-bit try-hard. Activated charcoal put a bird on it tilde meggings farm-to-table coloring book. Before they sold out four dollar toast stumptown actually.","pressbooks-gutenberg"),value:n.content,onChange:function(t){e.setAttributes({content:t})},focus:"content"===t?focus:null,onFocus:function(t){e.setFocus(c.extend({},t,{editable:"content"}))}}),l("p",{classname:"page-section__cta"},l(a.Editable,{tagName:"a",className:"call-to-action",inline:!1,placeholder:o.__("Learn More","pressbooks-aldine"),value:n.cta,onChange:function(t){e.setAttributes({cta:t})},focus:"cta"===t?focus:null,onFocus:function(t){e.setFocus(c.extend({},t,{editable:"cta"}))}})))},save:function(e){var t=e.attributes;return l("div",{className:e.className},l("h2",{className:"page-section__title"},t.title),l("p",{className:"page-section__content"},t.content),l("p",{classname:"page-section__cta"},l("a",{classname:"call-to-action"},t.cta)))}})}}); |
||||
Loading…
Reference in new issue