{"id":29693,"date":"2014-05-27T20:05:32","date_gmt":"2014-05-27T20:05:32","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/inline-spoilers\/"},"modified":"2025-02-17T18:15:32","modified_gmt":"2025-02-17T18:15:32","slug":"inline-spoilers","status":"publish","type":"plugin","link":"https:\/\/is.wordpress.org\/plugins\/inline-spoilers\/","author":14336435,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.1.0","stable_tag":"2.1.0","tested":"6.7.5","requires":"6.6","requires_php":"7.2","requires_plugins":null,"header_name":"Inline Spoilers","header_author":"Sergey Kuzmich","header_description":"","assets_banners_color":"","last_updated":"2025-02-17 18:15:32","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/sergeykuzmich\/inline-spoilers","header_author_uri":"https:\/\/kuzmi.ch","rating":4.6,"author_block_rating":0,"active_installs":1000,"downloads":76653,"num_ratings":14,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.1":{"tag":"1.0.1","author":"sergeykuzmich","date":"2017-10-15 17:37:22"},"1.0.2":{"tag":"1.0.2","author":"sergeykuzmich","date":"2017-10-15 17:37:22"},"1.1.2":{"tag":"1.1.2","author":"sergeykuzmich","date":"2017-10-15 17:37:22"},"1.2.2":{"tag":"1.2.2","author":"sergeykuzmich","date":"2017-10-15 17:37:22"},"1.2.3":{"tag":"1.2.3","author":"sergeykuzmich","date":"2017-10-15 17:37:22"},"1.2.4":{"tag":"1.2.4","author":"sergeykuzmich","date":"2017-10-15 17:37:22"},"1.2.5":{"tag":"1.2.5","author":"sergeykuzmich","date":"2017-10-15 17:37:22"},"1.2.8":{"tag":"1.2.8","author":"sergeykuzmich","date":"2017-10-15 21:14:39"},"1.3.0":{"tag":"1.3.0","author":"sergeykuzmich","date":"2017-12-21 20:25:02"},"1.3.1":{"tag":"1.3.1","author":"sergeykuzmich","date":"2017-12-21 20:30:16"},"1.3.2":{"tag":"1.3.2","author":"sergeykuzmich","date":"2018-09-02 09:57:59"},"1.3.3":{"tag":"1.3.3","author":"sergeykuzmich","date":"2018-10-24 18:51:20"},"1.3.7":{"tag":"1.3.7","author":"sergeykuzmich","date":"2019-01-31 20:03:55"},"1.3.8":{"tag":"1.3.8","author":"sergeykuzmich","date":"2019-03-11 10:21:28"},"1.4.0":{"tag":"1.4.0","author":"sergeykuzmich","date":"2019-04-23 12:44:46"},"1.4.1":{"tag":"1.4.1","author":"sergeykuzmich","date":"2019-04-24 09:37:03"},"1.5.0":{"tag":"1.5.0","author":"sergeykuzmich","date":"2020-01-04 13:35:05"},"1.5.1":{"tag":"1.5.1","author":"sergeykuzmich","date":"2020-06-18 13:21:06"},"1.5.2":{"tag":"1.5.2","author":"sergeykuzmich","date":"2023-08-01 17:51:10"},"1.5.3":{"tag":"1.5.3","author":"sergeykuzmich","date":"2023-08-01 18:09:59"},"1.5.4":{"tag":"1.5.4","author":"sergeykuzmich","date":"2023-08-01 18:56:49"},"1.5.5":{"tag":"1.5.5","author":"sergeykuzmich","date":"2024-05-31 22:54:19"},"2.0.0":{"tag":"2.0.0","author":"sergeykuzmich","date":"2025-02-15 11:38:08"},"2.1.0":{"tag":"2.1.0","author":"sergeykuzmich","date":"2025-02-17 18:15:32"}},"upgrade_notice":[],"ratings":{"1":1,"2":0,"3":0,"4":2,"5":11},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":1115839,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":1115839,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":[],"assets_blueprints":{},"all_blocks":{"inline-spoilers\/block":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","apiVersion":3,"name":"inline-spoilers\/block","version":"2.1.0","title":"Inline Spoiler","category":"text","icon":"hidden","description":"Hide text that can be revealed by clicking a button.","example":{},"supports":{"html":false},"attributes":{"open":{"type":"boolean","default":false},"title":{"type":"string","default":""}},"textdomain":"inline-spoilers","editorScript":"file:.\/index.js","editorStyle":"file:.\/index.css","style":"file:.\/style-index.css","render":"file:.\/render.php","viewScript":"file:.\/view.js"}},"tagged_versions":["1.0.1","1.0.2","1.1.2","1.2.2","1.2.3","1.2.4","1.2.5","1.2.8","1.3.0","1.3.1","1.3.2","1.3.3","1.3.7","1.3.8","1.4.0","1.4.1","1.5.0","1.5.1","1.5.2","1.5.3","1.5.4","1.5.5","2.0.0","2.1.0"],"block_files":[],"assets_screenshots":{"screenshot-1.gif":{"filename":"screenshot-1.gif","revision":2073202,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2073199,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":2073199,"resolution":"3","location":"assets","locale":""},"screenshot-4.png":{"filename":"screenshot-4.png","revision":2073202,"resolution":"4","location":"assets","locale":""}},"screenshots":{"1":"Guttenberg block","2":"Spoiler shortcode <code>[spoiler][\/spoiler]<\/code>","3":"Collapsed spoiler","4":"Expanded spoiler"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[6966,1220,198281,80,5048],"plugin_category":[43],"plugin_contributors":[170566,81251],"plugin_business_model":[],"class_list":["post-29693","plugin","type-plugin","status-publish","hentry","plugin_tags-bbcode","plugin_tags-block","plugin_tags-guttenberg","plugin_tags-shortcode","plugin_tags-spoiler","plugin_category-customization","plugin_contributors-gadswan","plugin_contributors-sergeykuzmich","plugin_committers-gadswan","plugin_committers-sergeykuzmich"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/inline-spoilers\/assets\/icon-128x128.png?rev=1115839","icon_2x":"https:\/\/ps.w.org\/inline-spoilers\/assets\/icon-256x256.png?rev=1115839","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/inline-spoilers\/assets\/screenshot-1.gif?rev=2073202","caption":"Guttenberg block"},{"src":"https:\/\/ps.w.org\/inline-spoilers\/assets\/screenshot-2.png?rev=2073199","caption":"Spoiler shortcode <code>[spoiler][\/spoiler]<\/code>"},{"src":"https:\/\/ps.w.org\/inline-spoilers\/assets\/screenshot-3.png?rev=2073199","caption":"Collapsed spoiler"},{"src":"https:\/\/ps.w.org\/inline-spoilers\/assets\/screenshot-4.png?rev=2073202","caption":"Expanded spoiler"}],"raw_content":"<!--section=description-->\n<p>The plugin allows to create content spoilers with Guttenberg block or simple shortcode.<\/p>\n\n<pre><code>[spoiler title=\"Expand Me\"]Spoiler content[\/spoiler]\n<\/code><\/pre>\n\n<!--section=installation-->\n<ol>\n<li>Install via WordPress Dashboard or upload <code>inline-spoiler.zip<\/code>;<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress;<\/li>\n<li>Use Guttenberg block or shortcode in your content;<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='how%20can%20i%20customize%20design%20of%20the%20spoiler%3F'><h3>How can I customize design of the spoiler?<\/h3><\/dt>\n<dd><p>Just override classes defined in <code>build\/style-index.css<\/code> with your theme styles.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>2.1.0<\/h4>\n\n<ul>\n<li>Fixed interaction with links &amp; other interactive elements inside the spoiler<\/li>\n<li>Fixed styling for the spoiler made with the shortcode, when there is no spoiler block<\/li>\n<\/ul>\n\n<p><strong><em>EXPERIMENTAL<\/em><\/strong><\/p>\n\n<ul>\n<li>Provide support for dynamic shortcodes <code>[spoiler-{variable}]<\/code> (e.g. <code>[spoiler-alpha]<\/code>, <code>[spoiler-beta]<\/code>, etc.)<\/li>\n<\/ul>\n\n<blockquote>\n  <p>Set <code>IS_DYNAMIC_SHORTCODE<\/code> to <code>true<\/code> in <code>wp-config.php<\/code> to enable the feature: <code>define('IS_DYNAMIC_SHORTCODE', true);<\/code><\/p>\n<\/blockquote>\n\n<p>Usage example:<\/p>\n\n<pre><code>[spoiler-alpha title=\"Parent\"]\n    [spoiler-beta title=\"The First Child\"]\n        Hello World!\n        [spoiler-gamma title=\"Grand Child\"]\n            I was born!\n        [\/spoiler-gamma]\n    [\/spoiler-beta]\n    [spoiler-beta title=\"The Second Child\"]\n        Goodbye World!\n    [\/spoiler-beta]\n[\/spoiler-alpha]\n<\/code><\/pre>\n\n<h4>2.0.0<\/h4>\n\n<ul>\n<li>Change spoiler HTML semantic (from <code>div<\/code> to <code>details<\/code> &amp; <code>summary<\/code>)\n\n<ul>\n<li>All blocks created with the previous version of Guttenberg block will be the same as before, until you edit them<\/li>\n<\/ul><\/li>\n<li>Allow spoilers inside spoilers (as well as any other Guttengerg blocks allowed in post)<\/li>\n<\/ul>\n\n<p><strong>WARNING<\/strong>\n* Minimal required WordPress version is 6.6 (for JSX support, <a href=\"https:\/\/make.wordpress.org\/core\/2024\/06\/06\/jsx-in-wordpress-6-6\/\">JSX in WordPress 6.6<\/a>)\n* The plugin is not fully tested with PHP versions lower than 8.1 due to the lack of available <a href=\"https:\/\/hub.docker.com\/_\/wordpress\/\">official docker images<\/a><\/p>\n\n<p><a href=\"https:\/\/github.com\/sergeykuzmich\/inline-spoilers?tab=readme-ov-file#older-versions\">OLDER VERSIONS<\/a><\/p>","raw_excerpt":"The plugin allows to create content spoilers with Guttenberg block or simple shortcode.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/is.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/29693","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/is.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/is.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/is.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=29693"}],"author":[{"embeddable":true,"href":"https:\/\/is.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/sergeykuzmich"}],"wp:attachment":[{"href":"https:\/\/is.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=29693"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/is.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=29693"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/is.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=29693"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/is.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=29693"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/is.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=29693"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/is.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=29693"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}