web/wp-content/plugins/twitter-tools/views/tweet.php
changeset 194 32102edaa81b
equal deleted inserted replaced
193:2f6f6f7551ca 194:32102edaa81b
       
     1 <?php
       
     2 
       
     3 $content = $tweet->post_content;
       
     4 if (isset($tweet->tweet)) {
       
     5 	$content = $tweet->tweet->link_entities();
       
     6 }
       
     7 
       
     8 echo wptexturize($content);
       
     9 
       
    10 if (isset($tweet->tweet)) {
       
    11 	$reply_id = $tweet->tweet->reply_id();
       
    12 	if (!empty($reply_id)) {
       
    13 ?>
       
    14  <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>
       
    15 <?php
       
    16 	}
       
    17 ?>
       
    18  <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>
       
    19 <?php
       
    20 }