Last active
December 25, 2015 21:08
-
-
Save peteeveleigh/7039879 to your computer and use it in GitHub Desktop.
Snippet to use with Click Rain's EE_Twitter add-on for ExpressionEngine (available here https://github.com/click-rain/EE_Twitter)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{exp:twitter:user screen_name="YOURTWITTERNAME" limit="5"} | |
{if no_results} | |
<p>No tweets to display</p> | |
{/if} | |
<article class="row {if retweeted}retweet{/if}"> | |
{if retweeted} | |
<div class="retweetedavatars"> | |
<img class="avatar retweeter" src="{retweeter:profile_image_url}"> | |
<img class="avatar source" src="{profile_image_url}"> | |
</div> | |
{if:else} | |
<img class="avatar" width="48" height="48" src="{profile_image_url}"> | |
{/if} | |
<div class="tweet ten columns"> | |
<div class="message"> | |
<p>{text}</p> | |
</div> | |
{created_at format='%d %M %Y %H:%i'} | |
<time datetime="{iso_date}" class="time"></time> | |
<div class="twitter-actions"> | |
<a class="twitter twitter-reply" href="{reply_intent}">Reply</a> | |
<a class="twitter twitter-retweet" href="{retweet_intent}">Retweet</a> | |
<a class="twitter twitter-favorite" href="{favorite_intent}">Favourite</a> | |
</div> | |
</div> | |
</article> | |
{/exp:twitter:user} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment