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.3",
"version": "1.0.4",
"slug": "blockparty-icons"
}
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ This plugin **doesn't run any sanitization on SVGs** before using them. Only use

## Changelog

### 1.0.4 - 2026-02-20

- Improve search result display in icons selector modal.
- Update translations

### 1.0.3 - 2026-02-19

- Add support for WordPress <= 6.8 for ServerSideRender component
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ function register_collection() {
\Blockparty\Icons\register_icon_collection(
'my_collection',
[
'label' => 'My custom icons collection',
'type' => 'sprite',
'source' => get_stylesheet_directory() . '/dist/icons/sprite.svg',
'label' => 'My custom icons collection',
'type' => 'sprite',
'source' => get_stylesheet_directory() . '/dist/icons/sprite.svg',
'version' => wp_get_theme()->get( 'Version' ), // Optional: cache busting for sprite URL
]
);
}
Expand All @@ -41,6 +42,7 @@ This is an example for adding a SVG sprite as a source. If you want to add icons
| `label` | Label of the collection. |
| `source` | Path to the SVG sprite file or folder containing SVG files. |
| `type` | <ul><li>`sprite` for SVG sprite source.</li><li>`folder` for a folder containing SVG files.</li></ul> |
| `version` | Optional. Version string used for cache busting (e.g. theme version). When set, the sprite URL is appended with a `?v=...` query parameter. |

## How to develop

Expand Down
4 changes: 2 additions & 2 deletions blockparty-icons.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Description: Provides blocks in WordPress editor to add custom SVG icons.
* Requires at least: 6.2
* Requires PHP: 8.1
* Version: 1.0.3
* Version: 1.0.4
* Author: Blockparty
* Author URI: https://beapi.fr
* License: GPL-2.0-or-later
Expand All @@ -29,7 +29,7 @@
include_once __DIR__ . '/vendor/autoload.php';
}

define( 'BLOCKPARTY_ICONS_VERSION', '1.0.3' );
define( 'BLOCKPARTY_ICONS_VERSION', '1.0.4' );
define( 'BLOCKPARTY_ICONS_URL', plugin_dir_url( __FILE__ ) );
define( 'BLOCKPARTY_ICONS_DIR', plugin_dir_path( __FILE__ ) );
define( 'BLOCKPARTY_ICONS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"translation-revision-date":"2026-02-16 23:44+0100","generator":"WP-CLI\/2.11.0","source":"build\/index.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"fr_FR","plural-forms":"nplurals=2; plural=(n != 1);"},"No name icon":["Ic\u00f4ne sans nom"],"Icon pagination":["Pagination des ic\u00f4nes"],"Previous page":["Page pr\u00e9c\u00e9dente"],"Previous":["Pr\u00e9c\u00e9dent"],"Page %d":["Page %d"],"Next page":["Page suivante"],"Next":["Suivant"],"Select an icon from your collections":["S\u00e9lectionnez une ic\u00f4ne dans vos collections"],"Search an icon":["Recherche une ic\u00f4ne"],"wordpress, heart, star\u2026":["wordpress, coeur, etoile\u2026"],"Settings":["R\u00e9glages"],"Modal settings":["R\u00e9glages de la modale"],"Display":["Affichage"],"Preview of icon sizes":["Aper\u00e7u de la taille des ic\u00f4nes"],"Adjust preview size of the icons.":["Ajuster la taille de pr\u00e9visualisation des ic\u00f4nes."],"Pager":["Pagination"],"Icons per page":["Ic\u00f4nes par page"],"Number of icons displayed per page.":["Nombre d\u2019ic\u00f4nes \u00e0 afficher par page."],"No icons found matching your search.":["Aucune ic\u00f4ne trouv\u00e9e selon vos crit\u00e8res de recherche."],"No Icon found in this collection.":["Aucune ic\u00f4ne trouv\u00e9e dans cette collection."],"Icon color":["Couleur de l\u2019ic\u00f4ne"],"Add an icon":["Ajouter une ic\u00f4ne"],"Remove link":["Retirer le lien"],"Add a link":["Ajouter un lien"],"Replace icon":["Remplacer l\u2019ic\u00f4ne"],"Remove icon":["Retirer l\u2019ic\u00f4ne"],"Label of %s":["Libell\u00e9 de %s"],"Link label":["Libell\u00e9 du lien"],"Briefly describe the link to help screen reader users.":["D\u00e9crivez bri\u00e8vement le lien destin\u00e9 aux utilisateurs de lecteurs d'\u00e9cran."],"Icon radius":["Arrondis de l\u2019ic\u00f4ne"],"Icon size":["Taille de l\u2019ic\u00f4ne"],"Adjust the size of the icon (value in pixels)":["Ajustez la taille de l\u2019ic\u00f4ne (valeur en pixels)"]}}}
{"translation-revision-date":"2026-02-20 09:31+0100","generator":"WP-CLI\/2.11.0","source":"build\/index.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"fr_FR","plural-forms":"nplurals=2; plural=(n != 1);"},"No name icon":["Ic\u00f4ne sans nom"],"Icon pagination":["Pagination des ic\u00f4nes"],"Previous page":["Page pr\u00e9c\u00e9dente"],"Previous":["Pr\u00e9c\u00e9dent"],"Page %d":["Page %d"],"Next page":["Page suivante"],"Next":["Suivant"],"Select an icon from your collections":["S\u00e9lectionnez une ic\u00f4ne dans vos collections"],"Search an icon":["Recherche une ic\u00f4ne"],"wordpress, heart, star\u2026":["wordpress, coeur, etoile\u2026"],"Hide settings":["Masquer les r\u00e9glages"],"Open settings":["Afficher les r\u00e9glages"],"Modal settings":["R\u00e9glages de la modale"],"Display":["Affichage"],"Preview of icon sizes":["Aper\u00e7u de la taille des ic\u00f4nes"],"Adjust preview size of the icons.":["Ajuster la taille de pr\u00e9visualisation des ic\u00f4nes."],"Pager":["Pagination"],"Icons per page":["Ic\u00f4nes par page"],"Number of icons displayed per page.":["Nombre d\u2019ic\u00f4nes \u00e0 afficher par page."],"No icons found matching your search.":["Aucune ic\u00f4ne trouv\u00e9e selon vos crit\u00e8res de recherche."],"%1$s (%2$d)":["%1$s (%2$d)"],"Icon color":["Couleur de l\u2019ic\u00f4ne"],"Add an icon":["Ajouter une ic\u00f4ne"],"Remove link":["Retirer le lien"],"Add a link":["Ajouter un lien"],"Replace icon":["Remplacer l\u2019ic\u00f4ne"],"Remove icon":["Retirer l\u2019ic\u00f4ne"],"Label of %s":["Libell\u00e9 de %s"],"Link label":["Libell\u00e9 du lien"],"Briefly describe the link to help screen reader users.":["D\u00e9crivez bri\u00e8vement le lien destin\u00e9 aux utilisateurs de lecteurs d'\u00e9cran."],"Icon radius":["Arrondis de l\u2019ic\u00f4ne"],"Icon size":["Taille de l\u2019ic\u00f4ne"],"Adjust the size of the icon (value in pixels)":["Ajustez la taille de l\u2019ic\u00f4ne (valeur en pixels)"]}}}
Binary file modified languages/blockparty-icons-fr_FR.mo
Binary file not shown.
49 changes: 30 additions & 19 deletions languages/blockparty-icons-fr_FR.po
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ msgstr ""
"Project-Id-Version: Blockparty Icons 1.0.0\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/blockparty-"
"icons\n"
"POT-Creation-Date: 2026-02-16T22:43:56+00:00\n"
"PO-Revision-Date: 2026-02-16 23:44+0100\n"
"POT-Creation-Date: 2026-02-20T08:30:46+00:00\n"
"PO-Revision-Date: 2026-02-20 09:31+0100\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: fr_FR\n"
Expand Down Expand Up @@ -120,8 +120,12 @@ msgid "wordpress, heart, star…"
msgstr "wordpress, coeur, etoile…"

#: build/index.js:2
msgid "Settings"
msgstr "Réglages"
msgid "Hide settings"
msgstr "Masquer les réglages"

#: build/index.js:2
msgid "Open settings"
msgstr "Afficher les réglages"

#: build/index.js:2
msgid "Modal settings"
Expand Down Expand Up @@ -155,57 +159,58 @@ msgstr "Nombre d’icônes à afficher par page."
msgid "No icons found matching your search."
msgstr "Aucune icône trouvée selon vos critères de recherche."

#: build/index.js:2
msgid "No Icon found in this collection."
msgstr "Aucune icône trouvée dans cette collection."
#. translators: 1: collection name, 2: number of results
#: build/index.js:3
msgid "%1$s (%2$d)"
msgstr "%1$s (%2$d)"

#: build/index.js:2
#: build/index.js:3
msgid "Icon color"
msgstr "Couleur de l’icône"

#: build/index.js:2
#: build/index.js:3
msgid "Add an icon"
msgstr "Ajouter une icône"

#: build/index.js:2
#: build/index.js:3
msgid "Remove link"
msgstr "Retirer le lien"

#: build/index.js:2
#: build/index.js:3
msgid "Add a link"
msgstr "Ajouter un lien"

#: build/index.js:2
#: build/index.js:3
msgid "Replace icon"
msgstr "Remplacer l’icône"

#: build/index.js:2
#: build/index.js:3
msgid "Remove icon"
msgstr "Retirer l’icône"

#. translators: %s: name of the icon name.
#: build/index.js:3
#: build/index.js:4
msgid "Label of %s"
msgstr "Libellé de %s"

#: build/index.js:3
#: build/index.js:4
msgid "Link label"
msgstr "Libellé du lien"

#: build/index.js:3
#: build/index.js:4
msgid "Briefly describe the link to help screen reader users."
msgstr ""
"Décrivez brièvement le lien destiné aux utilisateurs de lecteurs d'écran."

#: build/index.js:3
#: build/index.js:4
msgid "Icon radius"
msgstr "Arrondis de l’icône"

#: build/index.js:3
#: build/index.js:4
msgid "Icon size"
msgstr "Taille de l’icône"

#: build/index.js:3
#: build/index.js:4
msgid "Adjust the size of the icon (value in pixels)"
msgstr "Ajustez la taille de l’icône (valeur en pixels)"

Expand All @@ -220,5 +225,11 @@ msgid "Easily add custom vector icon to your content."
msgstr ""
"Ajoutez facilement des icônes vectorielles personnalisées à votre contenu."

#~ msgid "Settings"
#~ msgstr "Réglages"

#~ msgid "No Icon found in this collection."
#~ msgstr "Aucune icône trouvée dans cette collection."

#~ msgid "Link"
#~ msgstr "Lien"
39 changes: 22 additions & 17 deletions languages/blockparty-icons.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# This file is distributed under the GPL-2.0-or-later.
msgid ""
msgstr ""
"Project-Id-Version: Blockparty Icons 1.0.0\n"
"Project-Id-Version: Blockparty Icons 1.0.3\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/blockparty-icons\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2026-02-16T22:43:56+00:00\n"
"POT-Creation-Date: 2026-02-20T08:30:46+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.11.0\n"
"X-Domain: blockparty-icons\n"
Expand Down Expand Up @@ -116,7 +116,11 @@ msgid "wordpress, heart, star…"
msgstr ""

#: build/index.js:2
msgid "Settings"
msgid "Hide settings"
msgstr ""

#: build/index.js:2
msgid "Open settings"
msgstr ""

#: build/index.js:2
Expand Down Expand Up @@ -151,56 +155,57 @@ msgstr ""
msgid "No icons found matching your search."
msgstr ""

#: build/index.js:2
msgid "No Icon found in this collection."
#. translators: 1: collection name, 2: number of results
#: build/index.js:3
msgid "%1$s (%2$d)"
msgstr ""

#: build/index.js:2
#: build/index.js:3
msgid "Icon color"
msgstr ""

#: build/index.js:2
#: build/index.js:3
msgid "Add an icon"
msgstr ""

#: build/index.js:2
#: build/index.js:3
msgid "Remove link"
msgstr ""

#: build/index.js:2
#: build/index.js:3
msgid "Add a link"
msgstr ""

#: build/index.js:2
#: build/index.js:3
msgid "Replace icon"
msgstr ""

#: build/index.js:2
#: build/index.js:3
msgid "Remove icon"
msgstr ""

#. translators: %s: name of the icon name.
#: build/index.js:3
#: build/index.js:4
msgid "Label of %s"
msgstr ""

#: build/index.js:3
#: build/index.js:4
msgid "Link label"
msgstr ""

#: build/index.js:3
#: build/index.js:4
msgid "Briefly describe the link to help screen reader users."
msgstr ""

#: build/index.js:3
#: build/index.js:4
msgid "Icon radius"
msgstr ""

#: build/index.js:3
#: build/index.js:4
msgid "Icon size"
msgstr ""

#: build/index.js:3
#: build/index.js:4
msgid "Adjust the size of the icon (value in pixels)"
msgstr ""

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "blockparty-icons",
"version": "1.0.3",
"version": "1.0.4",
"description": "Provides blocks in WordPress editor to add custom SVG icons from your theme.",
"author": "Be API Technical team",
"license": "GPL-2.0-or-later",
Expand Down
2 changes: 1 addition & 1 deletion src/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 3,
"name": "blockparty/icon",
"version": "1.0.3",
"version": "1.0.4",
"title": "Icon",
"category": "widgets",
"description": "Easily add custom vector icon to your content.",
Expand Down
Loading
Loading