You are here

twitter-block-tweet.tpl.php in Twitter Block 7

Same filename and directory in other branches
  1. 6 twitter-block-tweet.tpl.php

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.

File

twitter-block-tweet.tpl.php
View 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>