'; foreach ($tweets as $tweet) { //$this->print_array($tweet); ?>

- get_date_format($tweet->created_at, $aptf_settings['time_format']); ?>

text) { $the_tweet = ' '.$tweet->text . ' '; //adding an extra space to convert hast tag into links $the_tweet = $this->makeClickableLinks($the_tweet); // i. User_mentions must link to the mentioned user's profile. if (is_array($tweet->entities->user_mentions)) { foreach ($tweet->entities->user_mentions as $key => $user_mention) { $the_tweet = preg_replace( '/@' . $user_mention->screen_name . '/i', '@' . $user_mention->screen_name . '', $the_tweet); } } // ii. Hashtags must link to a twitter.com search with the hashtag as the query. if (is_array($tweet->entities->hashtags)) { foreach ($tweet->entities->hashtags as $hashtag) { $the_tweet = str_replace(' #' . $hashtag->text . ' ', ' #' . $hashtag->text . ' ', $the_tweet); } } echo $the_tweet . ' '; ?>