Skip to content

Instantly share code, notes, and snippets.

@peteeveleigh
Last active December 25, 2015 21:08
Show Gist options
  • Save peteeveleigh/7039879 to your computer and use it in GitHub Desktop.
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)
{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