
內容簡介
Widget Builder 使用原生 WordPress 編輯介面提供了一個獨特的工具,讓您建立自訂小工具給您的網站
相容於 MU
新增管理儀表板小工具
連結圖片
標題和描述
自訂「閱讀更多」連結文字
非常多功能,所有欄位皆可選擇使用
支援模板覆寫,這樣您即可輕鬆覆寫您的主題模板!
經測試可相容 PHP 5.2.17、5.3.14 及 5.4.4 和 WP 3.3 及 3.4。
本外掛目前仍有維護支援,我們將盡力提供幫助。換言之,我們有三個要求:
幫忙回答問題。如果您能夠協助回答論壇上的問題或提供了好的想法和程式碼,我們將不勝感激。這甚至是一個好的方式可以認識我們,如果您是自由工作者,這也可能帶來一些付費工作。此外,如果您可以提供翻譯,我們也可以幫忙更新。
捐款 - 如果本外掛產生足夠的收入來支持我們的時間,這將對我們來說有莫大的幫助。
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=R8H3DD84PWAQ2
支援我們,購買我們的高級外掛程式。特別是要看看我們的活動日曆專業版http://tri.be/wordpress-events-calendar-pro/
註:在 WordPress.org 橫幅中使用的齒輪向量藝術由 http://www.opengraphicdesign.com 創建
文件
管理儀表板小工具
在小工具編輯器中選擇「可用作管理儀表板小工具」以啟用小工具作為管理儀表板小工具。如果您不希望此小工具顯示在可用的小工具清單中以側邊欄放置,請選擇「停用側邊欄小工具」。
預設與自訂模板
內建模板可被模板中的檔案覆寫。
Widget Builder 附帶的內建模板是用於小工具的輸出。如果您想修改小工具顯示程式碼,請在你的模板目錄中創建一個新資料夾名為 “tribe_widget_builder”,然後複製 “views/widget.php” 檔案。
編輯新檔案到您的需要為止。請勿編輯在外掛程式資料夾中的檔案,因為這會在您更新外掛至最新版本時產生衝突。
或者,您可以使用過濾器 ‘tribe_widget_builder_widget.php’ 指向您所選擇的檔案路徑。
過濾器小工具查詢參數
過濾您的查詢參數或完全取代 get_posts() 以微調您的小工具列表,或在 MU 安裝情況下限制建立至一個網站。
以下過濾器可供使用
‘tribe_widget_builder_get_posts_args’ //自訂小工具查詢參數
‘tribe_widget_builder_get_posts’ // 改變 get_posts() 查詢
外掛標籤
開發者團隊
原文外掛簡介
Widget Builder uses native WordPress editing interface to provide a unique tool to build custom widgets for your site(s).
MU Compatible
Create admin dashboard widgets NEW!
Link the image
Title and Description
Customize “Read More” link text
Very versatile. All fields are optional.
Supports override of template so that you can override the template for your theme!
Tested on PHP 5.2.17, 5.3.14 & 5.4.4 and WP 3.3 & 3.4.
This plugin is actively supported and we will do our best to help you. In return we simply as 3 things:
Help Out. If you see a question on the forum you can help with or have a great idea and want to code it up and submit a patch, that would be just plain awesome and we will shower you with praise. Might even be a good way to get to know us and lead to some paid work if you freelance. Also, we are happy to post translations if you provide them.
Donate – if this is generating enough revenue to support our time it makes all the difference in the world
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=R8H3DD84PWAQ2
Support us by buying our Premium plugins. In particular, check out our Events Calendar Pro http://tri.be/wordpress-events-calendar-pro/
Note: gear vector art used in the WordPress.org banner were created by http://www.opengraphicdesign.com
Documentation
Dashboard Widgets
Select ‘Available As Dashboard Widget’ in the widget editor to enable a widget as a dashboard widget. If you do not want this widget showing in the available widgets list for sidebar placement, select ‘Disable Sidebar Widget’.
Default vs. Custom Templates
The built in template can be overridden by files within your template.
The Widget Builder comes with a default template for the widget output. If you would like to alter the widget display code, create a new folder called “tribe_widget_builder” in your template directory and copy over the “views/widget.php” file.
Edit the new file to your hearts content. Please do not edit the one in the plugin folder as that will cause conflicts when you update the plugin to the latest release.
Alternatively you can point to a path of your choosing using the filter ‘tribe_widget_builder_widget.php’.
Filter widget query args
Filter your query arguments or get_posts altogether for granular fine tuning your listing of widgets or in the case of MU install restricting the builder to one site.
The following filters are available for override
‘tribe_widget_builder_get_posts_args’ // customize the widget query parameters
‘tribe_widget_builder_get_posts’ // change the get_posts() query
