Пример #1
0
<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>
Пример #2
0
			
			<?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 
}
Пример #3
0
 /**
  * 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;
 }
Пример #4
0
	</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>