內容簡介
這個外掛實現了 2 個新的短代碼。
[widget name=”” classname=” instance=””] 可以在頁面/文章的內容區域使用小工具短代碼。
name 是小工具的名稱,例如:日曆。
classname 是實現小工具的 PHP 類別名稱。
您可以使用 name 或 classname。
因此 [widget name=”Kalender” instance=”title=Hello,World!”]
和 [widget classname=”WP_Widget_Calendar” instance=”title=Hello,World!”]
產生相同的輸出。
instance 是小工具的屬性,例如:title=Hello,World! 因此完整的短代碼為
[widget name=”Calendar” instance=”title=Hello,World!”]
對於 WordPress 內建小工具的 instance 清單,請參閱 https://codex.wordpress.org/Function_Reference/the_widget
對於其他小工具,請查看小工具的源代碼或向小工具作者詢問。
[sidebar name=””] 可以在頁面/文章的內容區域使用側邊欄(包括所有小工具)的短代碼。
name 是側邊欄的名稱,例如:Showcase Sidebar,因此完整的短代碼為
[sidebar name=”Showcase Sidebar”]
為了自定義 CSS 樣式,該外掛將小工具包裝在 < div id=”Widget_Name” class=”widget_shortcode”> 中,將側邊欄包裝在 < div id=”Sidebar_Name” class=”sidebar_shortcode”> 中。
如果您想要報告錯誤或功能,請使用 http://bugs.staude.net
更改記錄中的記錄號表示在
http://bugs.staude.net 上的票證 ID。
外掛標籤
開發者團隊
原文外掛簡介
This plugin implements 2 new shortcodes.
[widget name=”” classname=” instance=””] to use a widget per shortcode in the content area from a page/post.
name is the name of the widget, e.g. Calendar.
classname is the name of the PHP Class that implement the widget.
You can use name or classname.
So are [widget name=”Kalender” instance=”title=Hello,World!”]
and [widget classname=”WP_Widget_Calendar” instance=”title=Hello,World!”]
produce the same output.
instance are the attributs of the widget. e.g. title=Hello,World! so the complete shortcode is
[widget name=”Calendar” instance=”title=Hello,World!”]
For the instance list of the WordPress builtin Widgets look at https://codex.wordpress.org/Function_Reference/the_widget
For other Widgets look at the source code from the widget or ask the widget author.
[sidebar name=””] to use a sidebar (with all widgets) in the content area from a page/post.
name is the name of the sidebar e.g. Showcase Sidebar so the complete shortcode is
[sidebar name=”Showcase Sidebar”]
For own css styling, the plugin wraps the widgets in < div id=”Widget_Name” class=”widget_shortcode”> and the sidebar in < div id=”Sidebar_Name” class=”sidebar_shortcode”>
If your want report a bug or a feature, please use http://bugs.staude.net
Entrys in the changelog with numbers means the ticket id on
http://bugs.staude.net
