<?php if (is_array($tweets)) { ?> <ul class="tweets-pulled-listing"> <?php foreach ($tweets as $tweet) { ?> <li> <p class="tweet-body"> <span class="tweet-author"><?php print l($tweet->username, 'http://twitter.com/' . $tweet->username); ?> </span> <span class="tweet-text"><?php print strip_tags(check_markup(twitter_pull_add_links($tweet->text)), '<a>'); ?> </span> </p> <p class="tweet-time"><?php print l(format_interval(time() - $tweet->timestamp) . ' ' . t('ago') . ' from Twitter »', 'http://twitter.com/' . $tweet->username . '/status/' . $tweet->id); ?> </p> </li> <?php } ?> </ul> <?php } ?>
</div> <div class="tweet-author"><?php print l($tweet->username, '//twitter.com/' . $tweet->screenname); ?> </div> <div class="tweet-screenname"><?php print l('@' . $tweet->screenname, '//twitter.com/' . $tweet->screenname); ?> </div> </div> <?php print l(t("Follow @{$tweet->screenname}"), '//twitter.com/' . $tweet->screenname, array('attributes' => array('class' => array('twitter-follow-button'), 'data-show-count' => 'false', 'data-lang' => $language, 'data-width' => '75px'))); ?> </div> <div class="tweet-text"><?php print twitter_pull_add_links($tweet->text); ?> </div> <div class="tweet-footer"> <div class="tweet-time"><?php print l($tweet->time_ago, '//twitter.com/' . $tweet->screenname . '/status/' . $tweet->id); ?> </div> <div class="tweet-actions"> <?php print l('Reply', "//twitter.com/intent/tweet?in_reply_to={$tweet->id}", array('attributes' => array('class' => 'twitter-reply'))); ?> <?php print l('Retweet', "//twitter.com/intent/retweet?tweet_id={$tweet->id}", array('attributes' => array('class' => 'twitter-retweet'))); ?> <?php
* $tweet->id * $tweet->username * $tweet->userphoto * $tweet->text * $tweet->timestamp * $tweet->time_ago * * 2) $twitkey string containing initial keyword. * * 3) $title * */ ?> <?php if (is_array($tweets)) { foreach ($tweets as $tweet_key => $tweet) { ?> <span class="tweet-text"><?php $text = @twitter_pull_add_links($tweet->text); $tweet_text = reset(explode("\n", wordwrap(strip_tags($text), 80, "\n", TRUE))); if (!empty($tweet_text)) { print $tweet_text . '...'; } else { print 'Awaiting tweets...'; } ?> </span> <?php } }