rendered paste bodyif(Options::get('twitter:username') != '') { $twitter_url = $this->twitter_baseurl . 'user_timeline/' . Options::get('twitter:username') . '.xml?count=1'; if(!$response = Cache::get('twitter_feed')) { $response = RemoteRequest::get_contents($twitter_url); Cache::put('twitter_feed', $response, 3600); } $xml = new SimpleXMLElement($response); $theme->tweet_text = $xml->status->text; $theme->tweet_time = $xml->status->created_at; $theme->tweet_image_url = $xml->status->user->profile_image_url;}else { $theme->tweet_text = 'Please set your username in the Twitter plugin config.'; $theme->tweet_time = ''; $theme->tweet_image_url = '';}