'artistdatapress-widget', 'description' => __('Display your ArtistData feed in the sidebar', 'artistdatapress-widget') );
parent::__construct( 'artistdatapress-widget', 'ArtistDataPress', $widget_ops );
} //End of artistdatapress_widget function
function form( $instance ) {
$defaults = array( 'title' => 'ArtistDataPress', 'quantity' => '', );
$instance = wp_parse_args( (array) $instance, $defaults );
$title = esc_attr( $instance['title'] ); ?>
*Requires "Display show name" also
get_widget_layout( $layout_opt, $limit, $args, $instance );
echo $after_widget;
} //End of widget function
function update( $new_instance, $old_instance ) {
$instance = $old_instance;
$instance['title'] = strip_tags($new_instance['title']);
$instance['quantity'] = strip_tags($new_instance['quantity']);
$instance['showage'] = strip_tags($new_instance['showage']);
$instance['showartist'] = strip_tags($new_instance['showartist']);
$instance['showcountry'] = strip_tags($new_instance['showcountry']);
$instance['showdesc'] = strip_tags($new_instance['showdesc']);
$instance['showstage'] = strip_tags($new_instance['showstage']);
$instance['showtime'] = strip_tags($new_instance['showtime']);
$instance['showtix'] = strip_tags($new_instance['showtix']);
return $instance;
} //End of update function
} // End of class ArtistDataPress_widget
} // End of 'does class exist?'
?>