'adplugg', 'description' => 'A widget for displaying ads.' ); parent::__construct( 'adplugg', $name = 'AdPlugg', $widget_options ); } /** * Widget form creation. Displays the form in the widget admin. * @param array $instance Current settings */ function form( $instance ) { // Check values $title = ( ( $instance ) && ( isset( $instance['title'] ) ) ) ? $instance['title'] : ''; $zone = ( ( $instance ) && ( isset( $instance['zone'] ) ) ) ? $instance['zone'] : ''; //This is used below to set the title of the widget that is displayed within the admin. //It is passed to widgets.js based on the '-title' id suffix $widget_title = ( $zone != '' ) ? $zone : ''; //Render the form ?>
'; echo $after_widget; } }