PluginProbe ʕ •ᴥ•ʔ
Author Website Templates – Create Writer, Author & Publisher Websites Easily / 1.1.9
Author Website Templates – Create Writer, Author & Publisher Websites Easily v1.1.9
trunk 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 1.1.9
author-website-templates / build / blocks / author-pro / book-hero / index.js
author-website-templates / build / blocks / author-pro / book-hero Last commit date
block.json 1 month ago index.asset.php 1 month ago index.js 1 month ago render.php 1 month ago style-index-rtl.css 1 month ago style-index.css 1 month ago
index.js
1 lines
1 (()=>{"use strict";var e,t={5899:(e,t,a)=>{const o=window.wp.blocks,l=window.wp.i18n,r=window.wp.blockEditor,n=window.wp.components,s=window.wp.serverSideRender;var i=a.n(s);const b=window.wp.element,u=window.ReactJSXRuntime,g=JSON.parse('{"apiVersion":3,"name":"awt/author-pro-book-hero","version":"1.0.2","title":"Book Hero [Author Pro]","category":"author-website-templates","icon":"book-alt","description":"A dynamic hero section for the single book template.","supports":{"html":false,"anchor":true,"align":["full"]},"textdomain":"author-website-templates","attributes":{"blockId":{"type":"string"},"anchor":{"type":"string"},"showBreadcrumbs":{"type":"boolean","default":true},"showStats":{"type":"boolean","default":true},"showBadge":{"type":"boolean","default":true},"showReviewCount":{"type":"boolean","default":true},"badgeText":{"type":"string","default":"#1 New York Times Bestseller"},"subTitle":{"type":"string","default":""},"formatsText":{"type":"string","default":"Available in Hardcover, Paperback, Audiobook & Kindle"},"formatsTitle":{"type":"string","default":"Available Formats"},"pagesLabel":{"type":"string","default":"Pages"},"yearLabel":{"type":"string","default":"Year"},"languageLabel":{"type":"string","default":"Language"},"reviewLinkText":{"type":"string","default":"Read %s Reviews"},"readingAgeLabel":{"type":"string","default":"Reading Age"},"sectionBg":{"type":"string","default":""},"titleColor":{"type":"string","default":""},"primaryColor":{"type":"string","default":""},"secondaryColor":{"type":"string","default":""},"accentColor":{"type":"string","default":""},"btnBg":{"type":"string","default":""},"btnText":{"type":"string","default":""},"btnHoverBg":{"type":"string","default":""},"btnHoverText":{"type":"string","default":""},"align":{"type":"string","default":"full"}},"editorScript":"file:./index.js","render":"file:./render.php","style":"file:./style-index.css"}');(0,o.registerBlockType)(g.name,{...g,edit:function({attributes:e,setAttributes:t,clientId:a}){const{blockId:o,showBreadcrumbs:s,showStats:g,showBadge:h,showReviewCount:p,badgeText:d,subTitle:w,formatsText:c,formatsTitle:m,pagesLabel:_,yearLabel:v,languageLabel:x,reviewLinkText:C,readingAgeLabel:f,sectionBg:y,titleColor:T,primaryColor:k,secondaryColor:B,textColor:j,accentColor:L,btnBg:S,btnText:A,btnHoverBg:O,btnHoverText:R,anchor:P}=e;return(0,b.useEffect)(()=>{o||t({blockId:`awt-book-hero-${a}`})},[o,a]),(0,u.jsxs)("div",{...(0,r.useBlockProps)({id:P?void 0:o}),children:[(0,u.jsxs)(r.InspectorControls,{children:[(0,u.jsxs)(n.PanelBody,{title:(0,l.__)("Content Visibility","author-website-templates"),initialOpen:!0,children:[(0,u.jsx)(n.ToggleControl,{label:(0,l.__)("Show Breadcrumbs","author-website-templates"),checked:s,onChange:e=>t({showBreadcrumbs:e})}),(0,u.jsx)(n.ToggleControl,{label:(0,l.__)("Show Stats","author-website-templates"),checked:g,onChange:e=>t({showStats:e})}),(0,u.jsx)(n.ToggleControl,{label:(0,l.__)("Show Badge","author-website-templates"),checked:h,onChange:e=>t({showBadge:e})}),(0,u.jsx)(n.ToggleControl,{label:(0,l.__)("Show Review Count","author-website-templates"),checked:p,onChange:e=>t({showReviewCount:e})})]}),(0,u.jsxs)(n.PanelBody,{title:(0,l.__)("Text Content","author-website-templates"),initialOpen:!1,children:[(0,u.jsx)(n.TextControl,{label:(0,l.__)("Badge Text","author-website-templates"),value:d,onChange:e=>t({badgeText:e}),help:(0,l.__)("Leave empty to hide badge if toggle is on.","author-website-templates")}),(0,u.jsx)(n.TextControl,{label:(0,l.__)("Subtitle / Tagline","author-website-templates"),value:w,onChange:e=>t({subTitle:e}),help:(0,l.__)("Appears below the main title. Falls back to Reading Age if empty.","author-website-templates")}),(0,u.jsx)(n.TextControl,{label:(0,l.__)("Formats Bottom Text","author-website-templates"),value:c,onChange:e=>t({formatsText:e}),help:(0,l.__)('Text below buttons ("Available in...")',"author-website-templates")}),(0,u.jsx)(n.TextControl,{label:(0,l.__)("Formats List Title","author-website-templates"),value:m,onChange:e=>t({formatsTitle:e}),help:(0,l.__)("Title for the sidebar formats list","author-website-templates")})]}),(0,u.jsxs)(n.PanelBody,{title:(0,l.__)("Labels","author-website-templates"),initialOpen:!1,children:[(0,u.jsx)(n.TextControl,{label:(0,l.__)("Pages Label","author-website-templates"),value:_,onChange:e=>t({pagesLabel:e})}),(0,u.jsx)(n.TextControl,{label:(0,l.__)("Year Label","author-website-templates"),value:v,onChange:e=>t({yearLabel:e})}),(0,u.jsx)(n.TextControl,{label:(0,l.__)("Language Label","author-website-templates"),value:x,onChange:e=>t({languageLabel:e})}),(0,u.jsx)(n.TextControl,{label:(0,l.__)("Review Link Text","author-website-templates"),value:C,onChange:e=>t({reviewLinkText:e})}),(0,u.jsx)(n.TextControl,{label:(0,l.__)("Reading Age Label","author-website-templates"),value:f,onChange:e=>t({readingAgeLabel:e}),help:(0,l.__)("Shown when Subtitle is empty and Reading Age meta exists.","author-website-templates")})]}),(0,u.jsx)(r.PanelColorSettings,{title:(0,l.__)("Design Settings","author-website-templates"),initialOpen:!1,colorSettings:[{value:y,onChange:e=>t({sectionBg:e}),label:(0,l.__)("Section Background","author-website-templates")},{value:L,onChange:e=>t({accentColor:e}),label:(0,l.__)("Accent Color","author-website-templates")},{value:k,onChange:e=>t({primaryColor:e}),label:(0,l.__)("Primary Color (Headings)","author-website-templates")},{value:B,onChange:e=>t({secondaryColor:e}),label:(0,l.__)("Secondary Color (Body)","author-website-templates")},{value:S,onChange:e=>t({btnBg:e}),label:(0,l.__)("Button Background","author-website-templates")},{value:A,onChange:e=>t({btnText:e}),label:(0,l.__)("Button Text","author-website-templates")},{value:O,onChange:e=>t({btnHoverBg:e}),label:(0,l.__)("Button Hover Background","author-website-templates")},{value:R,onChange:e=>t({btnHoverText:e}),label:(0,l.__)("Button Hover Text","author-website-templates")}]})]}),(0,u.jsx)(i(),{block:"awt/author-pro-book-hero",attributes:e})]})}})}},a={};function o(e){var l=a[e];if(void 0!==l)return l.exports;var r=a[e]={exports:{}};return t[e](r,r.exports,o),r.exports}o.m=t,e=[],o.O=(t,a,l,r)=>{if(!a){var n=1/0;for(u=0;u<e.length;u++){for(var[a,l,r]=e[u],s=!0,i=0;i<a.length;i++)(!1&r||n>=r)&&Object.keys(o.O).every(e=>o.O[e](a[i]))?a.splice(i--,1):(s=!1,r<n&&(n=r));if(s){e.splice(u--,1);var b=l();void 0!==b&&(t=b)}}return t}r=r||0;for(var u=e.length;u>0&&e[u-1][2]>r;u--)e[u]=e[u-1];e[u]=[a,l,r]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var a in t)o.o(t,a)&&!o.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={5137:0,4245:0};o.O.j=t=>0===e[t];var t=(t,a)=>{var l,r,[n,s,i]=a,b=0;if(n.some(t=>0!==e[t])){for(l in s)o.o(s,l)&&(o.m[l]=s[l]);if(i)var u=i(o)}for(t&&t(a);b<n.length;b++)r=n[b],o.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return o.O(u)},a=globalThis.webpackChunkauthor_website_templates=globalThis.webpackChunkauthor_website_templates||[];a.forEach(t.bind(null,0)),a.push=t.bind(null,a.push.bind(a))})();var l=o.O(void 0,[4245],()=>o(5899));l=o.O(l)})();