Cette extension n’a pas été testée avec plus de trois mises à jour majeures de WordPress. Elle peut ne plus être maintenue ou supportée et peut avoir des problèmes de compatibilité lorsqu’elle est utilisée avec des versions de WordPress plus récentes.

Description

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

Captures d’écran

  • 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).

Installation

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

FAQ

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/

Avis

1 août 2017
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
12 octobre 2016
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.
3 septembre 2016
Tha’ts what i need for my project, you can create any kind of Widget just like pages and post.
Lire les 10 avis

Contributeurs/contributrices & développeurs/développeuses

« Widget Builder » est un logiciel libre. Les personnes suivantes ont contribué à cette extension.

Contributeurs

Traduisez « Widget Builder » dans votre langue.

Le développement vous intéresse ?

Parcourir le code, consulter le SVN dépôt, ou s’inscrire au journal de développement par RSS.

Journal

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