Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .plugin-data
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"version": "1.0.2",
"version": "2.0.0",
"slug": "blockparty-faq"
}
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,23 @@ Yoast SEO is required for the FAQ schema (JSON-LD) generation. It is installed a

### 1.0.0 - 2024-04-02

* initial commit.
- initial commit.

### 1.0.1 - 2024-04-03

* fix css variable names
- fix css variable names

### 1.0.2 - 2024-06-06

* Add support for PHP 8.2
- Add support for PHP 8.2

### 2.0.0 - 2026-01-26

- **Major block structure refactoring** : Transition from a monolithic block to a nested architecture with child blocks (`faq-item`, `faq-question`, `faq-answer`)
- **Configurable accordion mode** : Added `isAccordion` attribute allowing to toggle between an interactive accordion mode and a static mode
- **InnerBlocks support in answers** : Ability to add any Gutenberg block (lists, paragraphs, images, etc.) in FAQ answers
- **Front-end JavaScript** : Added `script.js` to handle accordion interactivity on the front-end with customizable configuration via the `beapi_faq_block_config` filter
- **Automatic migration** : Migration system from the old format (`questions` array attribute) to the new format (InnerBlocks)
- **Complete internationalization** : Support for PO/MO translations for PHP and JSON for JavaScript
- **Aligned build structure** : Reorganization to follow the `blockparty-accordion` model with `block.json` in each block directory
- **Add/remove buttons** : Added buttons to add and remove FAQ items directly from the editor
4 changes: 2 additions & 2 deletions blockparty-faq.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Description: A FAQ block for WordPress Editor that provided structured data based on FAQ schema.
* Requires at least: 6.2
* Requires PHP: 8.1
* Version: 1.0.2
* Version: 2.0.0
* Plugin URI: https://beapi.fr
* Author: Be API Technical team
* Author URI: https://beapi.fr
Expand Down Expand Up @@ -41,7 +41,7 @@
}

// Plugin constants
define( 'BLOCKPARTY_FAQ_VERSION', '1.0.2' );
define( 'BLOCKPARTY_FAQ_VERSION', '2.0.0' );

// Plugin URL and PATH
define( 'BLOCKPARTY_FAQ_DIR', plugin_dir_path( __FILE__ ) );
Expand Down
Loading
Loading