
內容簡介
這是一個外掛工具,可協助使用創新、靈活和功能強大的Beans Framework進行主題開發。
啟用 Beans Development Mode 時,此外掛將顯示Beans HTML API定義的所有可能的Markup Action Hooks。
Beans Framework易於開發,因為使用Beans添加的所有標記和屬性都使用獨特的Markup ID注冊,通過在設置中啟用Beans Development Mode後就可以公開這些ID。
啟用開發模式後,Markup ID會以 data-markup-id 值的形式輸出到前端。這些值可以被各種Beans APIs使用,以快速開發美麗的主題。
使用Beans添加的任何標記都會在前後添加幾個動態action hooks:
{$markup_id}_before_markup,開始標記之前觸發
{$markup_id}_prepend_markup,開始標記之後觸發
{$markup_id}_append_markup,結束標記之前觸發
{$markup_id}_after_markup,結束標記之後觸發。
(_prepend_markup和_append_markup不能用於自閉標記)
簡而言之,這意味著通過添加可用的鉤子來任意添加幾乎任何內容在任何頁面上。
此外掛旨在與Beans Development Mode和您的瀏覽器檢查器一起使用,用於展示動態創建的所有可用的鉤子,使Beans主題開發人員能夠直觀地看到適當的鉤子。
Beans標誌和Beans名稱的使用獲得了 Beans Framework 的可愛的人們的慷慨許可。
外掛標籤
開發者團隊
原文外掛簡介
A Plugin tool to aid theme development with the innovative, flexible, and incredibly powerful Beans Framework.
When enabled alongside Beans Development Mode, this plugin displays all possible Markup Action Hooks made available by the Beans HTML API.
Beans is a dream to develop with, as all markup and attributes added using Beans are registered using a unique Markup ID which can be exposed by enabling the Beans Development Mode in settings.
Once Development Mode is enabled, the Markup IDs are output in a data-markup-id tag in the front-end. The values of which can be used by the various Beans APIs to rapidly develop beautiful themes.
Any markup added using Beans adds several dynamic action hooks both before and after it:
{$markup_id}_before_markup, fires before the opening markup
{$markup_id}_prepend_markup, fires after the opening markup
{$markup_id}_append_markup, fires before the closing markup
{$markup_id}_after_markup, fires after the closing markup.
( _prepend_markup and _append_markup are not available for self-closed markup )
In short, this means pretty much anything can be added anywhere on any page by adding actions to the available hooks.
This plugin is intended as a companion tool to the Beans Development Mode and your Browser inspector. It displays all of the available hooks that have been created dynamically by the Beans HTML API, making it easy for Beans Themes Developers to visualise the appropriate hook to use.
The Beans logo and Beans name are being used with kind permission from the amazing people behind the Beans Framework.
