Gjenbrukbare blokker forbedret

Beskrivelse

Forbedre funksjonen gjenbrukbare blokker med et komplett administrativt panel, widgeter, kortkoder og PHP-funksjoner.

Denne utvidelsen forbedrer det administrative brukergrensesnittet for gjenbrukbare blokker og gir noen fine funksjoner:

  • Add Reusable Blocks dashboard informations
  • Activate Reusable Blocks admin screen
  • Provide a list of Posts where each Reusable Block is used and the date it was last modified
  • Provide a live preview of your reusable blocks from the Reusable Blocks admin screen, with your theme stylesheets
  • Provide a Reusable Blocks Widget to use your block anywhere you want in your theme’s widgets areas
  • Provide a Reusable Blocks Shortcode to use your block anywhere you want in your Post types (even if they use the Classic Editor rather than Gutenberg!)
  • Provide some Reusable Blocks PHP functions to use your block anywhere you want in your theme even

For a full presentation of Reusable Blocks Extended, see this WordCamp Talk synthesis available on my blog.

Skjermskudd

  • Extended Reusable Blocks admin screen with preview
  • Reusable block widget

Installasjon

  1. Install the plugin and activate.
  2. Go to Reusable Blocks Admin Menu

FAQ

How to implement Reusable Blocks using Widgets
  • Go to WP-Admin > Appearance > Widgets.
  • Add «Reusable Block» Widget to your widget area.
  • Choose the reusable block you want to use and save the widget.
How to implement Reusable Blocks with shortcode
  • Go to WP-Admin > Reusable Blocks.
  • Choose the reusable block you want to use; copy the provided shortcode.
  • Then, paste it where you want.

Syntax: [reblex id="NUMERIC_ID_OF_THE_REUSABLE_BLOCK"]

How to implement Reusable Blocks with PHP functions
  • Go to WP-Admin > Reusable Blocks.
  • Choose the reusable block you want to use; copy the provided PHP function.
  • Then, paste it where you want.

Syntax:
reblex_display_block( NUMERIC_ID_OF_THE_REUSABLE_BLOCK );

Note for developers: you may also need to get the shortcode data before displaying it. In this case, you should use the following function:
reblex_get_block( NUMERIC_ID_OF_THE_REUSABLE_BLOCK );

Vurderinger

28. juni, 2020
С помощью этого плагина можно массово вставить или удалить пользовательский блок Гутенберг в любое место записей или страниц. Очень удобно! Спасибо разработчикам!
11. mai, 2020
I think that this should be considered by WordPress team to be included in the core
16. april, 2020
Les blocs réutilisables sont vraiment pratique mais sans cette extension ils sont dure a gérer. J'aime particulièrement : Pouvoir facilement modifier les blocs réutilisables ( je trouve cela dur à faire dans une page qui utilise un bloc réutilisable ) Voir sur quels pages sont utilisé chaque blocs réutilisable et combien de fois ils le sont Une interface qui utilise les éléments du graphique du core de WordPress !
Les alle 13 vurderinger

Bidragsytere og utviklere

“Gjenbrukbare blokker forbedret” er programvare med åpen kildekode. Følgende personer har bidratt til denne utvidelsen.

Bidragsytere

“Gjenbrukbare blokker forbedret” har blitt oversatt til 6 språk. Takk til oversetterne for deres bidrag.

Oversett “Gjenbrukbare blokker forbedret” til ditt språk.

Interessert i utvikling?

Bla gjennom koden, sjekk ut SVN-repositoriet, eller abonner på utviklingsloggen med RSS.

Endringslogg

0.5.1

  • Fixes a bug with ACF Pro Blocks. Props @mbcreation for raising the issue.

0.5

  • Improvement of the preview feature, which is now displaying your reusable blocks in a modal window.

0.4

  • Force block editor for wp_block post type even with Classic Editor plugin activated.
  • Collapsible items improvements.

0.3

  • Make block instances collapsible for a better preview. Props @alfredg.

0.2

  • Use @import instead of link tag or enqueues in the preview iframe.

0.1

  • Plugin initial commit. Works fine 🙂