<div id="tweetit_container"> <!-- end of div in templates/reply.tmpl.php file --> <div style="height:1px;"></div> <div id="new_tweets">5 more tweets have arrived ... Click to view</div> <ul id="tweets_ticker"> <?php echo TwitterReplierTemplate::html('tweets', array('tweets' => $tweets)); ?> </ul> <span id="screenName"><?php echo $screenName ? $screenName : ''; ?> </span> <span id="profileImage"><?php echo $profileImage ? $profileImage : ''; ?> </span>
<?php $response = json_decode(base64_decode($tweet['response_object'])); ?> <li id="twitter_<?php echo $tweet['tweet_id']; ?> " class="<?php echo $i == $totalTweets ? $endClass : ''; ?> "> <?php $vars = array('fromUser' => $response->from_user, 'profileImage' => $response->profile_image_url, 'tweet' => $tweet['tweet'], 'createdOn' => $tweet['twitter_created_on']); ?> <?php echo TwitterReplierTemplate::html('tweet', $vars); ?> <?php $i++; ?> </li> <?php } ?> <?php } else { ?> <li>No tweets</li> <?php }
/** * Handles closing the twitter auth popup * @param type $screenName * @return string */ private function closeAuthorizationWindow($screenName, $profileImage) { $vars = array('screenName' => $screenName, 'profileImage' => $profileImage); $js = TwitterReplierTemplate::html('postTwitterAuthorize.tmpl.php', $vars); return $js; }
</span> <br /> <span class="tweet"> <?php echo $tweet; ?> </span> <br /> <?php if ($createdOn) { ?> <span class="time reltime"> <?php $timeStr = strtotime($createdOn); ?> <?php echo TwitterReplierTemplate::formatTime($timeStr); ?> <input type="hidden" name="ts" value="<?php echo $timeStr; ?> " /> </span> <?php } ?> </span>