<?php
$twitter_id = 'espncricinfo';
$number_of_tweets = 4;
function linkable($text = ''){
$text = preg_replace("/\s+/", ' ', str_replace(array("\r\n", "\r", "\n"), ' ', $text));
$data = '';
foreach( explode(' ', $text) as $str){
if (preg_match('#^http?#i', trim($str)) || preg_match('#^www.?#i', trim($str))) {
$data .= '<a href="'.$str.'">'.$str.'</a> ';
} else {
$data .= $str .' ';
}
}
return trim($data);
}
?>
<div style="margin: auto; width:350px; border: 10px solid rgb(177, 212, 252); border-radius: 10px 10px 10px 10px;" id="twitter_lf">
<div class="twitterSearchTitle" style="background-color: rgb(177, 212, 252); margin: 0px; padding: 0px 0px 5px; text-align: center; font-weight: bold; font-size: large; position: relative;">
@<?php echo $twitter_id;?> <br /> <span style="font-size:10px;">Live Twitter Feed</span></a><a href="http://www.twitter.com">
</a>
</div>
<div class="twitterSearchContainter" style="overflow: hidden; background-color: rgb(255, 255, 255); height: auto; display: block;">
<?php
//by dharam to get twitter feed
if($responseJson) {
$responseAray = json_decode($responseJson);
foreach($responseAray as $resp) {
?>
<div style="padding:3px; margin:0 0 2px 0;">
</div>
<?php
}
}
?>
</div>
</div>