Skip to content

Commit

Permalink
Add plugin bits
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyfelt committed Feb 23, 2023
1 parent f544bcf commit 91cef11
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 10 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 1 addition & 1 deletion blocks/show-hide-group/front-end.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
} )
);
}
}
};

document.addEventListener( 'DOMContentLoaded', handleToggleButton );
}
19 changes: 14 additions & 5 deletions plugin.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,24 @@
<?php
/**
* Plugin Name: Show/Hide Section Block
* Plugin URI: https://github.com/happyprime/show-hide-section
* Plugin Name: Show / Hide Section Block
* Description: Display an accessible show/hide interface with details and summary elements.
* Version: 2.0.0
* Plugin URI: https://github.com/happyprime/show-hide-section
* Author: Happy Prime
* Author URI: https://happyprime.co/
* Version: 2.0.0
* Text Domain: show-hide-section
* Requires at least: 6.1
* Requires PHP: 7.4
* License: GPL2+
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* @package show-hide-section
*/
Expand Down
20 changes: 20 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Show / Hide Section Block
Contributors: jeremyfelt, slocker, philcable
Tags: short, list, tags
Requires at least: 6.1
Tested up to: 6.1
Stable tag: 2.0.0
License: GPLv2 or later
Requires PHP: 7.4

Display an accessible show/hide interface with details and summary elements.

## Description

TBD

## Changelog

### 2.0.0

Initial public release.

0 comments on commit 91cef11

Please sign in to comment.