<?php $widget['widget_title'] = "Example Widget"; $widget['widget_has_settings'] = 0; $widget['widget_shrink_icon'] = 1; $widget['widget_uninstall_icon'] = 1; $widget['name'] = 'Example'; $widget['desc'] = 'Here is a widget description.'; $widget['version'] = 1.0; ?>
The upcoming release 1.1.0 will introduce a new “widget” system for Pligg. This new feature has been added to make managing your Pligg site from the Pligg Admin Panel an easier process. The Admin Panel homepage will be replaced with a new widget interface, which will allow you to customize the information that appears when you log into the Admin Panel. Pligg widgets can be installed, removed, and organized very easily. Widgets will have their own management page where you install and uninstall them, similar to the existing Module Management page. Once you have installed a widget, you will see it appear on the top left area of your Admin Panel homepage. By left-clicking and holding on the widget title bar, you can drag-and-drop a widget box from one spot to another. This allows you to organize the widgets in an order that makes sense to you. Widgets can be minimized by clicking on the a minimize icon located in the widget title bar, although not all widgets will allow this. Widgets differ from Pligg modules, because they are designed to only display data to administrators through the Admin Panel homepage. Widgets can be used in combination with a module to accomplish more advanced features. One example of this is the Akismet module and widget. The Akismet module adds an extra level of spam protection to your site by checking new stories and comments for bad content. The Akismet widget acts as an Admin Panel notice where you will receive an alert when Akismet has marked a story or comment as spam.