Skip to content

bobbingwide/oik-magnetic-poetry

Repository files navigation

oik-magnetic-poetry

banner

Description

Magnetic Poetry block for the WordPress Block Editor.

A Server Side Rendered WordPress block that makes your poem look like poetry written using fridge magnets.

It doesn't have to be a poem.

Installation

  1. Upload the contents of the oik-magnetic-poetry plugin to the `/wp-content/plugins/oik-magnetic-poetry' directory
  2. Activate the oik-magnetic-poetry plugin through the 'Plugins' menu in WordPress

Frequently Asked Questions

What if I leave the block blank?

If you don't write anything, and Hello Dolly is activated, then you'll see a randomly selected line from the song.

What if Hello Dolly is not activated?

If it's not activated then it'll be "Code is Poetry". No surprises there.

Can I choose the font size?

Yes. Use block's Typography settings

Can I change the amount each word is rotated?

Not using the block's settings.

Screenshots

  1. Magnetic poetry block - initial display
  2. Magnetic poetry block - default display front end

Upgrade Notice

0.4.0

Update to removes the dependency on the ep() shared library function which is being renamed in oik-bwtrace

0.3.0

Upgrade for improved styling capability.

0.2.2

Update to allow transforms from the Verse block. Now internationalized.

0.2.1

Refactored to load block.json from the block's src folder.

0.2.0

Now compatible with WordPress 5.8 block widget editor.

0.1.0

Now uses shared library functions for Server Side Rendered blocks.

0.0.0

First version developed for "My Favourite Block", a lightning talk by Herb Miller.

Changelog

0.4.0

  • Changed: Update to latest wp-scripts #6
  • Changed: Remove dependency on bobbfunc's ep() #13
  • Tested: With WordPress 6.6.2 and WordPress Multisite
  • Tested: With PHP 8.3
  • Tested: With Gutenberg 19.1.0
  • Tested: With PHPUnit 9.6

0.3.0

  • Changed: Update to latest wp-scripts #6
  • Changed: Update shared libraries for PHP 8.1 and PHP 8.2 and PHPUnit test #5
  • Changed: Enable Typography #3
  • Tested: With WordPress 6.4-RC2 and WordPress Multisite
  • Tested: With PHP 8.1 and PHP 8.2
  • Tested: With Gutenberg 16.8.1
  • Tested: With PHPUnit 9.6

0.2.2

  • Changed: Internationalized and localized #4
  • Fixed: Support transforms to/from the Verse block #4
  • Tested: With Gutenberg 11.4.1

0.2.1

  • Changed: Refactored to load block.json from the block's src folder.

0.2.0

  • Changed: Refactored to be compatible with WordPress 5.8. Built using wp-scripts #4
  • Tested: With WordPress 5.8 and WordPress Multi Site
  • Tested: With PHP 8.0
  • Tested: With Gutenberg 11.1.0

0.1.0

  • Changed: eliminate redundant code now we're using the shared libraries
  • Changed: update to remove deprecated messages from the console
  • Changed: use oik-blocks shared library logic for enqueuing block scripts and styles
  • Changed: Import ServerSideRender from wp.editor not wp.components
  • Tested: With WordPress 5.3.2 and WordPress Multi Site
  • Tested: With Gutenberg 7.3.0
  • Tested: With PHP 7.3 and PHP 7.4

0.0.0

  • Added: Based on oik-blocks, #1
  • Added: Operates as a standalone plugin, #2
  • Added: Screenshots for blocks.
  • Tested: With WordPress 5.1
  • Tested: With Gutenberg 5.1.1
  • Tested: With PHP 7.2

Further reading

For more useful blocks see oik-blocks.

If you want to read more about oik plugins then please visit oik plugins