Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 21 lines (17 sloc) 0.687 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
<?php

$content = $tweet->post_content;
if (isset($tweet->tweet)) {
$content = $tweet->tweet->link_entities();
}

echo wptexturize($content);

if (isset($tweet->tweet)) {
$reply_id = $tweet->tweet->reply_id();
if (!empty($reply_id)) {
?>
<a href="<?php echo esc_url(AKTT::status_url($tweet->tweet->reply_screen_name(), $reply_id)); ?>" class="aktt_tweet_reply"><?php printf(__('in reply to %s', 'twitter-tools'), esc_html($tweet->tweet->reply_screen_name())); ?></a>
<?php
}
?>
<a href="<?php echo esc_url($tweet->tweet->status_url()); ?>" class="aktt_tweet_time"><?php echo sprintf(__('%s ago', 'twitter-tools'), human_time_diff(strtotime($tweet->post_date_gmt))); ?></a>
<?php
}
Something went wrong with that request. Please try again.