twitter-block-tweet.tpl.php in Twitter Block 7
Same filename and directory in other branches
Default theme implementation for displaying a tweet.
A list of tweets are displayed inside of the twitter block.
Available variables:
- $name: The name of the tweet's author.
- $screen_name: The screen name of the tweet's author.
- $user_image: A URL to the tweet's author's profile picture.
- $date: The tweet's creation date.
- $text: The tweet's text.
1 theme call to twitter-block-tweet.tpl.php
- twitter_block_block_view in ./
twitter_block.module - Implements hook_block_view().
File
twitter-block-tweet.tpl.phpView source
<?php
/**
* @file
* Default theme implementation for displaying a tweet.
*
* A list of tweets are displayed inside of the twitter block.
*
* Available variables:
* - $name: The name of the tweet's author.
* - $screen_name: The screen name of the tweet's author.
* - $user_image: A URL to the tweet's author's profile picture.
* - $date: The tweet's creation date.
* - $text: The tweet's text.
*/
?>
<div class="clearfix tweet twitter_block">
<div class="twitter_block_user">
<a class="twitter_block profile_image" href="http://twitter.com/<?php
echo $screen_name;
?>">
<img src="<?php
echo $user_image;
?>" alt="Twitter Avatar" />
<span class="twitter_block_user_name"><?php
echo $name;
?></span>
</a>
</div>
<div class="tweet_date"><?php
echo $date;
?></div>
<div class="tweet_text"><p class="tweet"><?php
echo $text;
?></p></div>
</div>