'Adapa\'s Last.FM plugin for WordPress. Show a link to your profile, and the track you are currently listening to.');
parent::WP_Widget(false, $name = "Last.FM", $widgetops);
}
/** @see WP_Widget::widget */
function widget($args, $instance) {
extract($args);
$title = apply_filters('widget_title', $instance['title']);
$username = $instance['username'];
if ( $title == null )
{
$title = "Last.FM";
}
if ( $username == null )
{
$username = get_option('lfm_username');
}
?>
user;
$raw = file_get_contents("http://ws.audioscrobbler.com/2.0/?method="
. "user.getrecenttracks&user=" . $username . "&api_key=".get_option('lfm_apikey')."");
$xml = new SimpleXMLElement($raw);
?>