diff --git a/js/editor.js b/js/editor.js index 32d07c0..95b3aae 100644 --- a/js/editor.js +++ b/js/editor.js @@ -21,12 +21,78 @@ wp.domReady( () => { isDefault: false } ); + // Adding Random Rotation to Various Blocks + wp.blocks.registerBlockStyle('core/group', { name: 'rotate-random', label: 'Random Rotation', isDefault: false } ); + wp.blocks.registerBlockStyle('core/image', { + name: 'rotate-random', + label: 'Random Rotation', + isDefault: false + } ); + + wp.blocks.registerBlockStyle('core/button', { + name: 'rotate-random', + label: 'Random Rotation', + isDefault: false + } ); + + wp.blocks.registerBlockStyle('core/cover', { + name: 'rotate-random', + label: 'Random Rotation', + isDefault: false + } ); + + wp.blocks.registerBlockStyle('core/column', { + name: 'rotate-random', + label: 'Random Rotation', + isDefault: false + } ); + + wp.blocks.registerBlockStyle('core/list', { + name: 'rotate-random', + label: 'Random Rotation', + isDefault: false + } ); + + wp.blocks.registerBlockStyle('core/media-text', { + name: 'rotate-random', + label: 'Random Rotation', + isDefault: false + } ); + + wp.blocks.registerBlockStyle('core/paragraph', { + name: 'rotate-random', + label: 'Random Rotation', + isDefault: false + } ); + + wp.blocks.registerBlockStyle('core/post-featured-image', { + name: 'rotate-random', + label: 'Random Rotation', + isDefault: false + } ); + + wp.blocks.registerBlockStyle('core/quote', { + name: 'rotate-random', + label: 'Random Rotation', + isDefault: false + } ); + + wp.blocks.registerBlockStyle('core/separator', { + name: 'rotate-random', + label: 'Random Rotation', + isDefault: false + } ); + + + // Query Loop Block Styles + // these cycle through background colors for the group blocks within them. + wp.blocks.registerBlockStyle('core/query', { name: 'cycle-primary', label: 'Primary Cycle',