可重用区块扩展

描述

扩展Gutenberg可宠用区块功能带有一个完整的管理员面板,widgets,短代码以及PHP函数

这个插件扩展了 Reusable Blocks 管理界面并提供了一些奇特的功能:

  • 添加可重用块仪表板信息
  • 激活可重用块管理员屏幕
  • 提供使用每个可重用块的帖子列表以及上次修改日期
  • 从可重用块管理屏幕提供可重用块的实时预览,以及您的主题样式表
  • 提供一个可重用的区块Widget 用于使用你的区块在任何位置,甚至是你的主题的widgets区域
  • 提供一个可重用区块短代码来使用你的区块,特别是那些你想要在的文章类型(甚至是如果他们使用的是Classic Editor 而不是Gutenberg)
  • 提供一些可重用的块 PHP 函数,以便在主题中的任何位置使用块,甚至

  • 新:一键将可重复使用的块转换为块模式的简单工具!

有关可重用块扩展的完整演示,请参阅此 WordCamp Talk 合成可用在我的博客上

屏幕截图

  • 通过预览扩展可重用区块面板
  • 重新使用区块widget

安装

  1. 安装插件,并且激活
  2. 去到可重用区块管理员菜单

常见问题

怎么使用Widgets实现可重用区块

  • 去到 WP-Admin > Appearance > Widgets.
  • 添加 “Reusable Block” Widget 到你的widget区域
  • 选择你想要重复使用的区块并且保存widget

怎么通过短代码实现可重用区块

  • 去到WP-Admin > 复用区块
  • 选择要使用的可重用块;复制提供的短代码。
  • 然后,粘贴到你想要的地方

Syntax: [reblex id="NUMERIC_ID_OF_THE_REUSABLE_BLOCK"]

怎么通过PHP函数实现重用区块

  • 去到WP-Admin > 复用区块
  • 选择你想要重复使用的区块,复制提供的PHP 函数
  • 然后,粘贴到你想要的地方

语法:
reblex_display_block( NUMERIC_ID_OF_THE_REUSABLE_BLOCK );

开发人员注意:您可能还需要获取短代码数据在显示之前。在这种情况下,您应该使用以下函数:↵ reblex_get_block(NUMERIC_ID_OF_THE_REUSABLE_BLOCK);

评价

2023年9月24日
This is a very useful plugin, especially as it stops my admin team accidentally editing a reusable block and then changing all the blocks, which gutenberg sometimes messes up. This plugin could be extended even further.
2023年5月26日
I have finished the Korean translation.I just want to say thank you for developing such a good plugin.And I hope it will be translated into more languages so that many WordPress users can use it conveniently. Reusable Blocks Extended 한국어 번역을 모두 마쳤습니다.좋은 플러그인을 개발해 주어서 고맙다는 인사를 전하고 싶습니다.그리고 보다 많은 언어로 번역되어 많은 워드프레스 사용자들이 편리하게 사용할 수 있기를 바랍니다.
2023年3月30日
The plugin works fine... on its own. When used with other plugins that add columns to the reusable blocks view: this plugin blocks (pun intended) them from working:( So I can't use your plugin alongside: Article Word Count Column Sortable Word Count Reloaded On the other hand, the plugin Admin Columns blocks the above two, AND yours, from working... I hope you can update your plugin to play nice with other plugins? Or, if it's their fault: let me know, and I'll reach out to those other two developers, to let them know they should fix something. Apart from the above, I really dig the functionality of the plugin. Hence I wish I can get to use it;) Oliver
2023年3月21日
Very useful plugin. I needed to migrate a site from Stackable v2 to v3 and this plugin helped me to list which reusable blocks were actually still in use, so I didn't need to spend time updating the unused ones.
2022年7月14日
Ran into a wall trying to get WordPress Core's reusable Gutenberg blocks to work in widget areas. Seems obvious that that's a perfectly reasonable use case. Thank you for making this plugin, it's excellent!
阅读所有34条评价

贡献者及开发者

“可重用区块扩展” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

“可重用区块扩展”插件已被翻译至13种本地话语言。 感谢所有译者为本插件所做的贡献。

将“可重用区块扩展”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

0.9.1

0.9

  • Props @chaton666 (Marie Comet) for a small fix.
  • WP 6.0 compatibility.

0.8

  • Performance enhancement on the wp_block list table. Props @grapplerulrich for spotting this.

0.7

  • WP 5.8 compatibility.
  • Replace “Reusable blocks” menu name with “Blocks”.
  • Small variable name and docs change.
  • Various minor interface improvements.

0.6.2

  • 移除一个PHP 注意

0.6.1

  • 修复一个带有多语言插件的问题(props @eddystile).

0.6

  • 引入区块模式会话工具用于WP5.5+

0.5.1

  • 修复一个带有ACF Pro 区块的bug。属性@mbcreation用于提出这个问题

0.5

  • 改进了预览功能,现在可以在模式窗口中显示您的可重用块。

0.4

  • 即使激活了经典编辑器插件,也可以强制 wp_block 帖子类型的块编辑器。
  • 可折叠项目改进

0.3

  • 使块实例可折叠以获得更好的预览。道具@alfredg。

0.2

  • 在预览 iframe 中使用 @import 而不是链接标记或入队。

0.1

  • 插件初始化提交,工作完成 🙂