SVG Block

Description

SVG Block vous permet d’afficher des images SVG sous forme de balises HTML. Vous pouvez soit choisir une icône dans la bibliothèque d’icônes comprenant plus de 3000 icônes, soit téléverser ou intégrer vos images SVG personnalisées directement dans les réglages du bloc.
Il vous permet également de téléverser des images SVG vers la médiathèque WordPress et de les charger dans la bibliothèque d’icônes. Seuls les fichiers SVG comportant au début une déclaration XML telle que peuvent être téléversés vers la médiathèque WordPress.

Fonctionnalités principales

  • Prêt pour l’accessibilité avec la fonction « img » qui génère automatiquement le titre et la description à partir des réglages.
  • Normalise automatiquement les balises SVG pour les rendre sûres et légères.
  • Inclut presque tous les réglages permettant de personnaliser une image SVG.
  • Comprend une collection de séparateurs non rectangulaires.
  • Une bibliothèque d’icônes incluant des icônes de « Icônes Bootstrap », « Ionicons », « Dashicons » et les nouvelles « Icônes WordPress ».
  • Permet de téléverser des images SVG dans la médiathèque de WordPress
  • Charge automatique les images SVG de la médiathèque dans la bibliothèque d’icônes

Didacticiels vidéo

Comment créer une icône avec des styles personnalisés en utilisant la bibliothèque d’icônes :

Comment créer une section d’arrière-plan non rectangulaire :

Comment créer des boutons icônes :

Veuillez jetez un coup d’œil à ces compositions de blocs personnalisés qui utilisent ce bloc pour voir comment il peut être appliqué à des sites réels.

Si cette extension vous est utile, merci de laisser un bref avis et une évaluation sur WordPress.org pour la faire connaître au plus grand nombre. Je l’apprécierais beaucoup.

Vous pouvez essayer mes autres extensions si cela vous intéresse :

  • Content Blocks Builder – This plugin turns the Block Editor into a powerful page builder by allowing you to create blocks, variations, and patterns directly in the Block Editor without needing a code editor.
  • Meta Field Block – A block to display custom fields as blocks on the front end. It supports custom fields for posts, terms, users, and setting fields. It can also be used in the Query Loop block.
  • Icon separator – A tiny block just like the core/separator block but with the ability to add an icon.
  • Breadcrumb Block – A simple breadcrumb trail block that supports JSON-LD structured data and is compatible with WooCommerce.
  • Block Enhancements – Adds practical features to blocks like icons, box shadows, transforms, etc.
  • Counting Number Block – A block to display numbers with a counting effect
  • Better YouTube Embed Block – A block to solve the performance issue with embedded YouTube videos. It can also embed multiple videos and playlists.

Cette extension est développée en utilisant @wordpress/create-block.

Captures d’écran

  • Create an arrow background section

  • Add an icon and add styling to it

  • Create a curved background section

  • Use the responsive height feature

  • Use the SVG block as the image block

  • Réglages de bloc

  • Espace réservé de blocs

Blocs

Cette extension fournit 1 bloc.

  • SVG Block Display an SVG image as a block, which can be used for displaying images, icons, dividers, buttons

Installation

  1. Téléversez les fichiers de l’extension dans le répertoire /wp-content/plugins/find-my-blocks, ou installez l’extension directement via la page des extensions de WordPress.
  2. Activez l’extension via l’écran « Extensions » dans WordPress.

FAQ

Quel problème cette extension résout-elle ?

Il permet d’intégrer facilement et en toute sécurité des images SVG sous forme de blocs. Vous pouvez utiliser les SVG de la bibliothèque d’icônes incluse ou téléverser les vôtres. Il prend également en charge le téléversement des images SVG dans la médiathèque et leur affichage avec ce bloc.

Quand utiliser cette extension ?

  • Si vous avez besoin d’utiliser rapidement quelques icônes : il contient plus de 3000 icônes provenant de bibliothèques d’icônes populaires telles que « WordPress », « Dashicons », « Ionicons », et « Bootstrap icônes ».
  • Ou si vous avez besoin d’utiliser une image SVG comme séparateur, il fournit également des séparateurs non rectangulaires tels que les inclinaisons, les courbes, les triangles…
  • Vous pouvez également l’utiliser comme un bloc image mais uniquement pour les images au format SVG comme celles disponibles sur undraw.co.
  • Vous pouvez également l’utiliser comme un bouton avec une icône, et il peut être imbriqué dans la boucle de requête avec l’option « Lien vers la publication » activée.

Pourquoi a-t-on besoin de cette extension ?

Il est très facile à utiliser. Il est prêt pour l’accessibilité. Il est livré avec de nombreuses fonctionnalités supplémentaires telles que la largeur et la hauteur responsives, l’espacement responsive (marge interne et marge externe), les justifications responsives, la rotation d’image, la réinitialisation, les bordures arrondies, la gestion des ombres…

Qui a besoin de cette extension ?

N’importe qui peut utiliser cette extension.

Avis

15 août 2024 1 réponse
I have tested several SVG plugins, and this one seems to be the best of them all. Animations are even displayed directly in the block editor. It offers many customization options and optimal scaling. Top-notch!
19 juin 2024 1 réponse
This plugin adds some missing functionality that Gutenberg should have by default. It’s great. The developer is also very receptive and quick in adding features.
15 juin 2024 1 réponse
Hello, This extension is really very complete.I’ve posted the full French translation on translate.wordpress.org/locale/fr/default/wp-plugins/svg-block/ Give me feedback if you wish.
16 mai 2024 1 réponse
I was looking for a plugin that made it easier to embed SVG files directly, rather than linking them as an image. This plugin works great. The SVG browser has a bunch of pre-loaded icons, and automatically imports any SVG files you upload as well. The separator shape blocks are a nice touch I didn’t even think of. I’m definitely going to keep using this plugin on other sites. Highly recommended. Thank you for the great plugin!
22 janvier 2024 3 réponses
This is very handy. Would love an option disabling everything except the use of custom SVG from the media library.
Lire les 12 avis

Contributeurs/contributrices & développeurs/développeuses

« SVG Block » est un logiciel libre. Les personnes suivantes ont contribué à cette extension.

Contributeurs

“SVG Block” a été traduit dans 4 locales. Remerciez l’équipe de traduction pour ses contributions.

Traduisez « SVG Block » dans votre langue.

Le développement vous intéresse ?

Parcourir le code, consulter le SVN dépôt, ou s’inscrire au journal de développement par RSS.

Journal

1.1.25

Release Date – 14 November 2024

  • Added – Add typography support feature when using the block as a button
  • Security – Sanitize the SVG files upload via REST API
  • Updated – Required PHP 7.1

1.1.24

Release Date – 24 October 2024

  • Updated – SDK to implement minor UI changes and remove deprecated code
  • Improved – Replaced classnames with clsx
  • Updated – Tested compatibility with WP 6.7 and set minimum requirement to WP 6.5

1.1.23

Release Date – 03 July 2024

  • Improved – Refactor code to make the placeholder look good when installing the block from the inserter
  • Improved – Adjust vertical spacing style for some inspector controls
  • Added – Support clientNavigation interactivity

1.1.22

Release Date – 30 May 2024

  • Updated – Update the unique ID for the SVG on the server
  • Refactor – Vertical spacing
  • Improved – Adjust the styling for the replacement SVG dropdown in the contentOnly mode

1.1.21

Release Date – 22 May 2024

  • Improved – The SVG URL input UI component
  • Updated – Put the shadow panel inside the Border panel
  • Improved – Allow inputting alpha value for colors
  • Fixed – Fix some small styling issues

1.1.20

Release Date – 28 April 2024

  • Improved – Uploading SVGs: sanitize and allow only the administrator can upload SVG

1.1.19

Release Date – 19 April 2024

  • Added – Allow inputting SVG data, URL, button text on the content only locking
  • Updated – Refactor code

1.1.18

Release Date – 01 April 2024

  • Added – Allow the ability to exclude the icon library from the icon popup
  • Updated – Update SDK
  • Updated – Icon Library

1.1.17

Release Date – 31 October 2023

  • Added – Allow uploading SVG images to the WordPress media library and load those images into its icon library
  • Updated – Update icons from the latest version of third-party providers
  • Updated – Update SDK

1.1.16

Release Date – 22 September 2023

  • Added – New setting named linkToPost. The block now can be used in a Query Loop and acts like a link/button with an icon that links to the post
  • Updated – Update ‘Requires at least’ to 6.3 for the new HTML API, and new default size controls
  • Fixed – Change border from BorderBoxControl to BorderControl

1.1.15

Release Date – 08 September 2023

  • FIX – Generate empty variables for margin

1.1.14

Release Date – 03 September 2023

  • DEV – Use the default control for border, spacing settings
  • DEV – Disable toggle off for width, icon width, gap between icon and text

1.1.13

Release Date – 09 August 2023

  • DEV – Update new style for the icon library popup in WP 6.3
  • DEV – Refactor code

1.1.12

Release Date – 28 June 2023

  • DEV – Use ToolsPanel for inspector controls
  • DEV – Improve performance

1.1.11

Release Date – 11 March 2023

  • DEV – Update icon library
  • DEV – Add more clear help texts for the title and the description
  • DEV – Refactor for WP 6.2

1.1.10

Release Date – 09 February 2023

  • DEV – Add better support for the ‘Use as button’ feature

1.1.9

Release Date – 03 February 2023

  • DEV – Add SVGO GUI tool to the help text
  • DEV – Update SDK

1.1.8

Release Date – 27 October 2022

  • DEV – Allow clear color for the ColorGradientControl

1.1.7

Release Date – 04 October 2022

  • FIX – placeholder’s style is not loading in the site editor

1.1.6

Release Date – 03 October 2022

  • FIX – Focus on the search box on the first load

1.1.5

Release Date – 29 September 2022

  • REFACTOR – Redesign the placeholder for the block
  • DEV – Add divider icons to the icon library
  • REFACTOR – Using a data store for the icon library
  • FIX – Remove empty style variables and add deprecated for them

1.1.4

Release Date – 18 September 2022

  • FIX – Compatibility issue with the Gutenberg plugin
  • DEV – Refactor for localization

1.1.3

Release Date – 31 August 2022

  • DEV – Add stack context

1.1.2

Release Date – 30 August 2022

  • DEV – Change the default value for box-shadow
  • FIX – Reset icon lists by clicking on the reset search button

1.1.1

Release Date – 27 July 2022

  • FIX – The block makes the page in ‘dirty’ state

1.1.0

Release Date – 26 July 2022

  • DEV – Allow the ability to turn the block into a button with text & icon
  • DEV – Add ‘auto’ value to the options of width and height
  • DEV – Double click on the icon on the modal to insert the icon

1.0.13

Release Date – 01 July 2022

  • DEV – Add box-sizing as border-box by default

1.0.12

Release Date – 30 Jun 2022

  • FIX – Convert inline style to style object

1.0.11

Release Date – 19 Jun 2022

  • DEV – Update SDK
  • DEV – Refactor icon library modal
  • DEV – Allow uploading SVG files

1.0.10

Release Date – 12 May 2022

  • REFACTOR Update sdk

1.0.9

Release Date – 30 April 2022

  • FIX – Missing color slug

1.0.8

Release Date – 30 April 2022

  • DEV – Upgrade color format

1.0.7

Release Date – 28 April 2022

  • DEV – Add title to block registration in JS

1.0.6

Release Date – 21 April 2022

  • DEV – Optimize code for performance

1.0.5

Release Date – 19 April 2022

  • REFACTOR – Move the PanelColorGradientSettings out of PanelBody

1.0.4

Release Date – 15 April 2022

  • DEV – Icon library modal: focus the search box on open, press enter to insert icon

1.0.3

Release Date – 12 April 2022

  • FIX – Remove old cached icons due to storage limitation issue.

1.0.2

Release Date – 10 April 2022

  • DEV – Update icons pack

1.0.1

Release Date – 07 April 2022

  • FIX – Fix typo issue

1.0.0

Release Date – 05 April 2022