'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 ?>

Configure at adplugg.com | Help

Optional Settings get_field_id( 'title' ) . '" name="' . $this->get_field_name( 'title' ) . '" type="text" value="' . $title . '" />'; ?> Enter a title for the widget.
get_field_id( 'zone' ) . '" name="' . $this->get_field_name( 'zone' ) . '" type="text" value="' . $zone . '" />'; ?> Enter the zone machine name.
'; echo $after_widget; } }