Contributors: sergeykuzmich, gadswan
Tags: shortcode, spoiler
Stable tag: 2.0.0
Tested up to: 6.5.0
Requires at least: 5.2
Requires PHP: 7.1
License: GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
The plugin allows to create content spoilers with simple shortcode & guttenberg block.
The plugin allows to create content spoilers with simple shortcode & guttenberg block.
[spoiler title="Expand Me"]Spoiler content[/spoiler]
- Install via WordPress Dashboard or upload
inline-spoiler.zip
; - Activate the plugin through the 'Plugins' menu in WordPress;
- Use shortcode & block in your content;
Just override classes defined in public/css/inline-spoilers-default.css
with your theme styles.
- More semantic HTML layout for spoilers is used
- IMPORTANT: All previously created spoilers will work as before, but the new ones will have different HTML structure
- WARNING: In case you have custom styles for spoilers, you may need to update them
- Extended Guttenberg block with available options
- DEPRECATED PHP less than 7.1
OLDER VERSIONS
- Minify assets
- Update WordPress "Requires at least" version
- Update WordPress "Tested up to" version
- Fix
Inline Spoiler
block doesn't appear in Guttenberg editor (https://wordpress.org/support/topic/block-folder-is-missing/).
- Make flag for non-optimized script & style loading to prevent issues on some child themes ( see https://wordpress.org/support/topic/spoiler-doesnt-show-up/ for more information)
wp-config.php:
...
/** Set FALSE to disable 'Inline Spoliers' plugin script & style optimization
define( 'IS_OPTIMIZE_LOADER', false );
/* That's all, stop editing! Happy publishing. */
...
- Introduce Guttenberg block to create spoilers (special thanks to Sergey Zaytsev for doing most of things)
- Allow empty spoiler title by default
- Refactor deployment strategy to support multiply revisions for the same plugin version
- Compatibility up to Wordpress 4.9.8
- Always show spoiler contents while javascript is disabled
- Setup automated deployment with TravisCI
- Balance content html tags
- Add WP_DEBUG mode
- Fix incorrect paragraph tags inside the spoiler
- JavaScript bug fix
- Update spoiler default behaviour
- Update Russian translation
- Add attribute 'initial_state' to define default state of a spoiler
initial_state=(expanded|collapsed)
. Default state is 'collapsed' - Security updates
- Update Russian translation
- Release the plugin