Linux 软件免费装

OST Layout Blocks

开发者 orienst
更新时间 2026年9月28日 19:45
PHP版本: 8.0 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

slider blocks block editor sections custom blocks

下载

1.0.0

详情介绍:

OST Layout Blocks adds the layout blocks that come up again and again in production work to the WordPress block editor. Every block renders on the front end from its own render callback, so no markup is stored in post content beyond the block attributes. Blocks included: Any block you do not need can be hidden from the inserter on the settings page. Settings page The plugin adds a settings page under Settings > OST with a "Blocks" tab, where you can hide unused blocks, pick the fallback "no image" picture, and set the URL and label for the CTA form button. Shared settings with other Orienst plugins The Settings > OST page is designed to be shared between Orienst plugins. Each plugin adds its own tab through the orienst_options_tabs filter, and whichever plugin loads first registers the page itself, so no plugin depends on any other being installed. Options belonging to this plugin are prefixed with ostsb_. Options prefixed with orienst_ hold data shared between Orienst plugins (company and office details). This plugin reads one shared value, orienst_org_telephone, for the phone number shown by the CTA block; the tab that lets you edit company details is provided by a sister plugin such as OST AIO Smart Schema. With only OST Layout Blocks installed, the CTA block's phone option has no number to display and the button is simply omitted. Uninstalling removes only the ostsb_ options. The shared orienst_ options are deliberately left in place, because other Orienst plugins read and write the same data and deleting them would take settings away from a plugin that is still active.

安装:

  1. Upload the plugin and activate it.
  2. Go to Settings > OST > Blocks to configure the block settings.
  3. In the post or page editor, add blocks from the "Single", "Pattern" and "Original" categories in the inserter.

常见问题:

Can I hide blocks I do not use?

Yes. On Settings > OST > Blocks, tick the blocks you do not want and save. They are then hidden from the editor. Hiding a parent block also hides its child blocks.

Does this plugin work on its own?

Yes. It registers the Settings > OST page itself when no other Orienst plugin has done so, and every block works without any other plugin installed. The one exception is the CTA block's phone number, which comes from a shared option that a sister plugin provides the editing UI for.

Will company details be duplicated if I also run a sister plugin?

No. Company and office details are stored in shared options prefixed with orienst_, so editing them from either plugin reads and writes the same data, and only one settings page is registered.

Why does uninstalling leave some options behind?

Only options prefixed with orienst_ are left behind. They hold company and office details shared with other Orienst plugins, which would lose their settings if this plugin deleted them. Everything this plugin owns (the ostsb_ options) is removed on uninstall.

更新日志:

1.0.0