From 91cef11d9199b483c48f253a1ad304fe48064f53 Mon Sep 17 00:00:00 2001 From: Jeremy Felt Date: Thu, 23 Feb 2023 12:22:48 -0800 Subject: [PATCH] Add plugin bits --- README.md | 12 ++++++++---- blocks/show-hide-group/front-end.js | 2 +- plugin.php | 19 ++++++++++++++----- readme.txt | 20 ++++++++++++++++++++ 4 files changed, 43 insertions(+), 10 deletions(-) create mode 100644 readme.txt diff --git a/README.md b/README.md index 1cefc01..e441895 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,13 @@ -# Show/Hide Section Block +# Show / Hide Section Block Display an accessible show/hide interface with details and summary elements. -## About +## Description -This is a WordPress plugin that adds a Show/Hide Group block to the Block Editor. +TBD -The block allows users to add sections with summaries and associated content. The display of the associated content can be displayed or hidden by interacting with the summary or the Open/Close All button. +## Changelog + +### 2.0.0 + +Initial public release. diff --git a/blocks/show-hide-group/front-end.js b/blocks/show-hide-group/front-end.js index 33b54c6..701e00f 100644 --- a/blocks/show-hide-group/front-end.js +++ b/blocks/show-hide-group/front-end.js @@ -29,7 +29,7 @@ } ) ); } - } + }; document.addEventListener( 'DOMContentLoaded', handleToggleButton ); } diff --git a/plugin.php b/plugin.php index 9bb785b..6b8f082 100644 --- a/plugin.php +++ b/plugin.php @@ -1,15 +1,24 @@