"; echo $before_title . $instance['widget_title'] . $after_title; ?> '; $end = ''; $page = $twit; $parts = explode($begin,$page); $page = $parts[1]; $parts = explode($end,$page); $tcount = $parts[0]; if($tcount == '') { $tcount = '0'; } echo '
'.$tcount.' followers.
'; ?> " . $after_widget; } /** @see WP_Widget::update function that updates the widget */ function update($new_instance, $old_instance) { $instance = $old_instance; # you must list all the elements in the widget form here, this is how the $_POST variable is handled $instance['twitter_username'] = strip_tags($new_instance['twitter_username']); return $instance; } } ?>