bobbingwide / oik-nivo-slider

jQuery nivo slider
https://www.oik-plugins.com/oik-plugins/oik-nivo-slider-jquery-nivo-slider/
GNU General Public License v2.0
0 stars 0 forks source link

Add Nivo slider block #14

Open bobbingwide opened 3 months ago

bobbingwide commented 3 months ago

In oik-blocks I developed a prototype Nivo slider block called oik-block/nivo which generates a simple [nivo] shortcode. Now I want to replace it with a block delivered by the oik-nivo-slider plugin.

Requirements

Proposed solution

bobbingwide commented 3 months ago

Question:

If server side rendered code includes some inline script, how does this get invoked in the block editor?

bobbingwide commented 3 months ago

Consider the pros and cons of enabling the following attributes to the [nivo] shortcode by copying and cobbling code from oik's Dynamic content block ( oik/contentblock ), and any other block that already supports these controls.

Attribute Type
post_type SelectControl
orderby SelectControl and TextControl
order SelectControl
format SelectControl and TextControl
advanced parameters TextControl eg thumbnail=80x80
thumbs Toggle
nav Toggle
pause Number
manual Toggle
numberposts Number
offset Number
post_mime_type SelectControl
post_parent Number
post_status SelectControl
id Text
posts_per_page Number