這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

描述

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:

  1. 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.
  2. 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
  3. 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

螢幕截圖

  • Widget Builder create widget screen.
  • List Widget Builder editable widgets.
  • Highlighting custom widgets in the Widgets/Sidebar page.
  • How the default display template looks in presentation.
  • How the default display template looks in the dashboard (when enabled).

安裝

Install

  1. In your WordPress administration, go to the Plugins page
  2. Activate the Widget Builder plugin and a subpage for the plugin will appear
    in your Appearance menu.
  3. Go to the Appearance > Widget Builder and create the widget
  4. Go to the Appearance > Widgets page and activate the new widget you created!

If you find any bugs or have any ideas, please mail us.

Please visit the forum for questions or comments: http://WordPress.org/tags/widget-builder/

Requirements

  • PHP 5.1 or above
  • WordPress 3.0 or above

常見問題

Where do I go to file a bug or ask a question?

Please visit the forum for questions or comments: http://WordPress.org/tags/widget-builder/

評價

2017年8月1日
I get this error when using the plugin with PHP7: Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Tribe_Widget_Builder_Display has a deprecated constructor in /www/wp-content/plugins/widget-builder/classes/custom-widget-display.php on line 19 Fatal error: Cannot use lexical variable $widget_widget as a parameter name in /www/wp-content/plugins/widget-builder/classes/wp_add_dashboard_widget.php on line 5
2016年10月12日
I’ve always wanted a way to create page content that can then be displayed in a widget . his plugin does that by allowing you to create your own widget using a basic visual editor just like editing a page, you can add photos, change formatting, etc. Well executed in the samples that I tried out.
2016年9月3日
Tha’ts what i need for my project, you can create any kind of Widget just like pages and post.
閱讀全部10個評價

貢獻者及開發者

“Widget Builder” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Widget Builder 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.6.2

  • Fix WordPress 4.3 compatibility issues

1.6.1

  • Fix missing data bug when using in especially convoluted multisite arrangments

1.6

  • Added option to specify link targets

1.4

  • Added dashboard widget availability
  • Added disable as sidebar widget option
  • Created new widget_dashboard.php view template

1.3

  • Added option in widget to turn off display of the header title (props to empathik)
  • Resolved get_template_hierarchy trimming file extension
  • Resolved issue with translation file not being loaded in the /lang folder
  • Added es_ES lang translation thanks to elarequi

1.2

  • Integrate into the existing $wp_widget_factory global, respecting the singleton intent
  • Add caching to prevent extra queries on every page load
  • Misc bug fixes

1.1

  • CPT admin: remove the preview changes button.
  • CPT admin: remove ‘view post’ link in update message in the yellow after saving a widget post.
  • Remove publish date or visibility for the widget.
  • Add language support so that people can contribute translations (Please feel free to send us translations)
  • Misc bug fixes.

1.0

  • Initial plugin release