diff --git a/.plugin-data b/.plugin-data index db3c7e7..07f062f 100644 --- a/.plugin-data +++ b/.plugin-data @@ -1,4 +1,4 @@ { - "version": "1.0.6", + "version": "1.0.7", "slug": "blockparty-modal" } diff --git a/README.md b/README.md index 52a29db..e91b8c1 100644 --- a/README.md +++ b/README.md @@ -272,6 +272,9 @@ This plugin is distributed under the GPL-2.0-or-later license. See the [LICENSE] See [readme.txt](readme.txt) for the full version history. Recent highlights: +- **1.0.7** + - Add block setting for the close button label. + - **1.0.6** - Fix `blueprint.json` config. diff --git a/blockparty-modal.php b/blockparty-modal.php index cda091a..5cc69b0 100644 --- a/blockparty-modal.php +++ b/blockparty-modal.php @@ -2,7 +2,7 @@ /** * Plugin Name: Blockparty Modal * Description: Modal block for WordPress editor. - * Version: 1.0.6 + * Version: 1.0.7 * Requires at least: 6.8 * Requires PHP: 8.1 * Author: Be API Technical Team @@ -19,7 +19,7 @@ exit; // Exit if accessed directly. } -define( 'BLOCKPARTY_MODAL_VERSION', '1.0.6' ); +define( 'BLOCKPARTY_MODAL_VERSION', '1.0.7' ); define( 'BLOCKPARTY_MODAL_URL', plugin_dir_url( __FILE__ ) ); define( 'BLOCKPARTY_MODAL_DIR', plugin_dir_path( __FILE__ ) ); diff --git a/blueprint.json b/blueprint.json index 32e2777..afc0206 100644 --- a/blueprint.json +++ b/blueprint.json @@ -1,22 +1,17 @@ { "$schema": "https://playground.wordpress.net/blueprint-schema.json", - "landingPage": "/wp-admin/post.php?post=4&action=edit", + "landingPage": "/blockparty-modal-demo/", "preferredVersions": { "php": "8.1", "wp": "latest" }, "steps": [ - { - "step": "login", - "username": "admin", - "password": "password" - }, { "step": "installPlugin", "pluginData": { "resource": "git:directory", "url": "https://github.com/BeAPI/blockparty-modal", - "ref": "1.0.6", + "ref": "1.0.7", "refType": "tag" }, "options": { @@ -24,13 +19,18 @@ "targetFolderName": "blockparty-modal" } }, + { + "step": "login", + "username": "admin", + "password": "password" + }, { "step": "runPHP", - "code": "" + "code": " true,',\n\t'\t\t\\'class\\' => true,',\n\t'\t\t\\'style\\' => true,',\n\t'\t\t\\'id\\' => true,',\n\t'\t\t\\'closedby\\' => true,',\n\t'\t);',\n\t'\t$tags[\\'svg\\'] = array(',\n\t'\t\t\\'xmlns\\' => true,',\n\t'\t\t\\'viewbox\\' => true,',\n\t'\t\t\\'width\\' => true,',\n\t'\t\t\\'height\\' => true,',\n\t'\t\t\\'fill\\' => true,',\n\t'\t\t\\'class\\' => true,',\n\t'\t\t\\'aria-hidden\\' => true,',\n\t'\t\t\\'role\\' => true,',\n\t'\t\t\\'focusable\\' => true,',\n\t'\t);',\n\t'\t$tags[\\'path\\'] = array(',\n\t'\t\t\\'d\\' => true,',\n\t'\t\t\\'fill\\' => true,',\n\t'\t\t\\'class\\' => true,',\n\t'\t);',\n\t'\treturn $tags;',\n\t'}, 10, 2 );',\n);\nfile_put_contents( $file, implode( \"\\n\", $lines ) . \"\\n\" );\necho file_exists( $file ) ? 'mu-plugin installed' : 'mu-plugin failed';\n?>" }, { "step": "runPHP", - "code": "\n
\n\n\n\n\n'; $page_id = wp_insert_post(array('post_title' => 'Blockparty Modal', 'post_content' => $page_content, 'post_status' => 'publish', 'post_type' => 'page')); echo 'Page created with ID: ' . $page_id; ?>'; $page_id = wp_insert_post(array('post_title' => 'Blockparty Modal', 'post_content' => $page_content, 'post_status' => 'publish', 'post_type' => 'page')); echo 'Page created with ID: ' . $page_id; ?>" + "code": "\n\n\n\n\n\n'; $page_id = wp_insert_post( array( 'post_title' => 'Blockparty Modal', 'post_name' => 'blockparty-modal-demo', 'post_content' => $page_content, 'post_status' => 'publish', 'post_type' => 'page' ) ); echo 'Page created with ID: ' . $page_id; ?>" } ] } diff --git a/languages/blockparty-modal-fr_FR-ea0f7248d3d5a5b55d550195c07ecc8f.json b/languages/blockparty-modal-fr_FR-ea0f7248d3d5a5b55d550195c07ecc8f.json index 5e263f0..347b169 100644 --- a/languages/blockparty-modal-fr_FR-ea0f7248d3d5a5b55d550195c07ecc8f.json +++ b/languages/blockparty-modal-fr_FR-ea0f7248d3d5a5b55d550195c07ecc8f.json @@ -1 +1 @@ -{"translation-revision-date":"2026-02-18 12:29+0100","generator":"WP-CLI\/2.11.0","source":"build\/blockparty-modal\/index.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"fr_FR","plural-forms":"nplurals=2; plural=(n != 1);"},"Heading\u2026":["Titre\u2026"],"Close this dialog window":["Fermer cette fen\u00eatre modale"],"Hide":["Cacher"],"Preview":["Pr\u00e9visualiser"],"Modal settings":["R\u00e9glages de la modale"],"Closed by":["Ferm\u00e9 par"],"Determines how the modal will be closed.":["Choisissez comment la fen\u00eatre doit \u00eatre ferm\u00e9e."],"Any":["Tout"],"Close request":["Requ\u00eate de fermeture"],"None":["Aucun"],"Prevent page scroll":["\u00c9viter le d\u00e9filement de la page"],"If enabled, the modal will prevent the user from scrolling the page while the modal is open.":["Si cette option est activ\u00e9e, la fen\u00eatre une fois ouverte emp\u00eachera l\u2019utilisateur de d\u00e9filer dans la page."],"Close button":["Bouton de fermeture"],"Enable close button":["Activer le bouton de fermeture"],"You have chosen to not close the modal by clicking the close button. Therefore, the close button will not be displayed.":["Vous avez choisi de ne pas laisser la possibilit\u00e9 de fermer la fen\u00eatre modale en cliquant sur le bouton de fermeture. Par cons\u00e9quent, ce bouton ne s'affichera pas."],"If enabled, a close button will be displayed in the modal. The close button will close the modal when clicked.":["Si cette option est activ\u00e9e, le bouton de fermeture sera affich\u00e9 dans la fen\u00eatre modale. Au clic sur ce bouton, la fen\u00eatre modale sera ferm\u00e9e."],"Display icon only":["Afficher seulement l\u2019ic\u00f4ne"],"If enabled, only the close icon will be displayed in the close button. The label will not be displayed.":["Si cette option est activ\u00e9e, seul l'ic\u00f4ne de fermeture s'affichera sur le bouton de fermeture. Le libell\u00e9 ne sera pas affich\u00e9 visuellement."],"Modal":["Modale"],"Attached modal":["Fen\u00eatre modale jointe"],"Modal to open when block is clicked":["Fen\u00eatre modale \u00e0 ouvrir lorsqu'on clique sur le bloc"],"Select a modal\u2026":["S\u00e9lectionnez une fen\u00eatre modale\u2026"]}}} \ No newline at end of file +{"translation-revision-date":"2026-04-09 14:45+0200","generator":"WP-CLI\/2.10.0","source":"build\/blockparty-modal\/index.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"fr_FR","plural-forms":"nplurals=2; plural=(n != 1);"},"Heading\u2026":["Titre\u2026"],"Close this dialog window":["Fermer cette fen\u00eatre modale"],"Hide":["Cacher"],"Preview":["Pr\u00e9visualiser"],"Modal settings":["R\u00e9glages de la modale"],"Closed by":["Ferm\u00e9 par"],"Determines how the modal will be closed.":["Choisissez comment la fen\u00eatre doit \u00eatre ferm\u00e9e."],"Any":["Tout"],"Close request":["Requ\u00eate de fermeture"],"None":["Aucun"],"Prevent page scroll":["\u00c9viter le d\u00e9filement de la page"],"If enabled, the modal will prevent the user from scrolling the page while the modal is open.":["Si cette option est activ\u00e9e, la fen\u00eatre une fois ouverte emp\u00eachera l\u2019utilisateur de d\u00e9filer dans la page."],"Close button":["Bouton de fermeture"],"Enable close button":["Activer le bouton de fermeture"],"You have chosen to not close the modal by clicking the close button. Therefore, the close button will not be displayed.":["Vous avez choisi de ne pas laisser la possibilit\u00e9 de fermer la fen\u00eatre modale en cliquant sur le bouton de fermeture. Par cons\u00e9quent, ce bouton ne s'affichera pas."],"If enabled, a close button will be displayed in the modal. The close button will close the modal when clicked.":["Si cette option est activ\u00e9e, le bouton de fermeture sera affich\u00e9 dans la fen\u00eatre modale. Au clic sur ce bouton, la fen\u00eatre modale sera ferm\u00e9e."],"Close button label":["Libell\u00e9 du bouton de fermeture"],"If not set, the default label will be used.":["Si non renseign\u00e9, le libell\u00e9 par d\u00e9faut sera utilis\u00e9."],"Display icon only":["Afficher seulement l\u2019ic\u00f4ne"],"If enabled, only the close icon will be displayed in the close button. The label will not be displayed.":["Si cette option est activ\u00e9e, seul l'ic\u00f4ne de fermeture s'affichera sur le bouton de fermeture. Le libell\u00e9 ne sera pas affich\u00e9 visuellement."],"Attached modal":["Fen\u00eatre modale jointe"],"Modal to open when block is clicked":["Fen\u00eatre modale \u00e0 ouvrir lorsqu'on clique sur le bloc"],"Select a modal\u2026":["S\u00e9lectionnez une fen\u00eatre modale\u2026"],"Modal":["Modale"]}}} \ No newline at end of file diff --git a/languages/blockparty-modal-fr_FR.mo b/languages/blockparty-modal-fr_FR.mo index 05b5b16..993b995 100644 Binary files a/languages/blockparty-modal-fr_FR.mo and b/languages/blockparty-modal-fr_FR.mo differ diff --git a/languages/blockparty-modal-fr_FR.po b/languages/blockparty-modal-fr_FR.po index 22c9328..18a06b3 100644 --- a/languages/blockparty-modal-fr_FR.po +++ b/languages/blockparty-modal-fr_FR.po @@ -4,15 +4,15 @@ msgid "" msgstr "" "Project-Id-Version: Blockparty Modal 1.0.0\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/blockparty-modal\n" -"POT-Creation-Date: 2026-02-18T11:23:18+00:00\n" -"PO-Revision-Date: 2026-02-18 12:29+0100\n" +"POT-Creation-Date: 2026-04-09T12:45:03+00:00\n" +"PO-Revision-Date: 2026-04-09 14:45+0200\n" "Last-Translator: \n" "Language-Team: \n" "Language: fr_FR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 3.8\n" +"X-Generator: Poedit 3.2.2\n" "X-Domain: blockparty-modal\n" #. Plugin Name of the plugin @@ -30,51 +30,54 @@ msgstr "Bloc de fenêtre modale pour l’éditeur WordPress." msgid "Be API Technical Team" msgstr "L'équipe technique de Be API" -#: build/blockparty-modal/index.js:1 +#: build/blockparty-modal/index.js:193 build/blockparty-modal/index.js:203 msgid "Heading…" msgstr "Titre…" -#: build/blockparty-modal/index.js:1 +#: build/blockparty-modal/index.js:205 build/blockparty-modal/index.js:273 +#: build/blockparty-modal/index.js:519 build/blockparty-modal/index.js:215 +#: build/blockparty-modal/index.js:319 build/blockparty-modal/index.js:558 msgid "Close this dialog window" msgstr "Fermer cette fenêtre modale" -#: build/blockparty-modal/index.js:1 +#: build/blockparty-modal/index.js:222 build/blockparty-modal/index.js:236 msgid "Hide" msgstr "Cacher" -#: build/blockparty-modal/index.js:1 +#: build/blockparty-modal/index.js:222 build/blockparty-modal/index.js:237 msgid "Preview" msgstr "Prévisualiser" -#: build/blockparty-modal/index.js:1 +#: build/blockparty-modal/index.js:227 build/blockparty-modal/index.js:243 msgid "Modal settings" msgstr "Réglages de la modale" -#: build/blockparty-modal/index.js:1 +#: build/blockparty-modal/index.js:231 build/blockparty-modal/index.js:247 msgid "Closed by" msgstr "Fermé par" -#: build/blockparty-modal/index.js:1 +#: build/blockparty-modal/index.js:232 build/blockparty-modal/index.js:248 msgid "Determines how the modal will be closed." msgstr "Choisissez comment la fenêtre doit être fermée." -#: build/blockparty-modal/index.js:1 +#: build/blockparty-modal/index.js:238 build/blockparty-modal/index.js:258 msgid "Any" msgstr "Tout" -#: build/blockparty-modal/index.js:1 +#: build/blockparty-modal/index.js:241 build/blockparty-modal/index.js:262 msgid "Close request" msgstr "Requête de fermeture" -#: build/blockparty-modal/index.js:1 +#: build/blockparty-modal/index.js:244 build/blockparty-modal/index.js:407 +#: build/blockparty-modal/index.js:266 build/blockparty-modal/index.js:448 msgid "None" msgstr "Aucun" -#: build/blockparty-modal/index.js:1 +#: build/blockparty-modal/index.js:249 build/blockparty-modal/index.js:272 msgid "Prevent page scroll" msgstr "Éviter le défilement de la page" -#: build/blockparty-modal/index.js:1 +#: build/blockparty-modal/index.js:250 build/blockparty-modal/index.js:276 msgid "" "If enabled, the modal will prevent the user from scrolling the page while " "the modal is open." @@ -82,15 +85,15 @@ msgstr "" "Si cette option est activée, la fenêtre une fois ouverte empêchera " "l’utilisateur de défiler dans la page." -#: build/blockparty-modal/index.js:1 +#: build/blockparty-modal/index.js:257 build/blockparty-modal/index.js:286 msgid "Close button" msgstr "Bouton de fermeture" -#: build/blockparty-modal/index.js:1 +#: build/blockparty-modal/index.js:259 build/blockparty-modal/index.js:288 msgid "Enable close button" msgstr "Activer le bouton de fermeture" -#: build/blockparty-modal/index.js:1 +#: build/blockparty-modal/index.js:260 build/blockparty-modal/index.js:294 msgid "" "You have chosen to not close the modal by clicking the close button. " "Therefore, the close button will not be displayed." @@ -99,7 +102,7 @@ msgstr "" "modale en cliquant sur le bouton de fermeture. Par conséquent, ce bouton ne " "s'affichera pas." -#: build/blockparty-modal/index.js:1 +#: build/blockparty-modal/index.js:260 build/blockparty-modal/index.js:298 msgid "" "If enabled, a close button will be displayed in the modal. The close button " "will close the modal when clicked." @@ -107,11 +110,19 @@ msgstr "" "Si cette option est activée, le bouton de fermeture sera affiché dans la " "fenêtre modale. Au clic sur ce bouton, la fenêtre modale sera fermée." -#: build/blockparty-modal/index.js:1 +#: build/blockparty-modal/index.js:267 build/blockparty-modal/index.js:313 +msgid "Close button label" +msgstr "Libellé du bouton de fermeture" + +#: build/blockparty-modal/index.js:268 build/blockparty-modal/index.js:314 +msgid "If not set, the default label will be used." +msgstr "Si non renseigné, le libellé par défaut sera utilisé." + +#: build/blockparty-modal/index.js:275 build/blockparty-modal/index.js:323 msgid "Display icon only" msgstr "Afficher seulement l’icône" -#: build/blockparty-modal/index.js:1 +#: build/blockparty-modal/index.js:276 build/blockparty-modal/index.js:324 msgid "" "If enabled, only the close icon will be displayed in the close button. The " "label will not be displayed." @@ -119,22 +130,22 @@ msgstr "" "Si cette option est activée, seul l'icône de fermeture s'affichera sur le " "bouton de fermeture. Le libellé ne sera pas affiché visuellement." -#: build/blockparty-modal/index.js:1 -msgid "Modal" -msgstr "Modale" - -#: build/blockparty-modal/index.js:1 +#: build/blockparty-modal/index.js:415 build/blockparty-modal/index.js:459 msgid "Attached modal" msgstr "Fenêtre modale jointe" -#: build/blockparty-modal/index.js:1 +#: build/blockparty-modal/index.js:418 build/blockparty-modal/index.js:463 msgid "Modal to open when block is clicked" msgstr "Fenêtre modale à ouvrir lorsqu'on clique sur le bloc" -#: build/blockparty-modal/index.js:1 +#: build/blockparty-modal/index.js:424 build/blockparty-modal/index.js:474 msgid "Select a modal…" msgstr "Sélectionnez une fenêtre modale…" +#: build/blockparty-modal/index.js:586 build/blockparty-modal/index.js:616 +msgid "Modal" +msgstr "Modale" + #: build/blockparty-modal/block.json msgctxt "block title" msgid "Modal" diff --git a/languages/blockparty-modal.pot b/languages/blockparty-modal.pot index 13ae724..32605af 100644 --- a/languages/blockparty-modal.pot +++ b/languages/blockparty-modal.pot @@ -1,17 +1,17 @@ -# Copyright (C) 2026 The WordPress Contributors +# Copyright (C) 2026 Be API Technical Team # This file is distributed under the GPL-2.0-or-later. msgid "" msgstr "" -"Project-Id-Version: Blockparty Modal 1.0.0\n" +"Project-Id-Version: Blockparty Modal 1.0.7\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/blockparty-modal\n" "Last-Translator: FULL NAME