\n";
foreach ( $response->results as $result ) {
$text = $result->text;
$user = $result->from_user;
$image = $result->profile_image_url;
$user_url = "http://twitter.com/$user";
$text = preg_replace('|(https?://[^\ ]+)|', '$1', $text);
$text = preg_replace('|@(\w+)|', '@$1', $text);
$text = preg_replace('|#(\w+)|', '#$1', $text);
echo "
$user: $text\n";
}
echo 'View All';
echo "\n";
}
function widget_TwitterHash($args) {
extract($args);
echo $before_widget;
echo $before_title;?>