| Server IP : 104.21.28.229 / Your IP : 216.73.216.95 Web Server : Apache/2 System : Linux hosting8537.lvs 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : mienphi ( 1014) PHP Version : 8.2.14 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/mienphi/domains/mienphi.org/public_html/wp-content/themes/eduma/thim-twitter/ |
Upload File : |
<div class="twitter-wrapper">
<div class="twitter-inner">
<?php
if ( ! empty( $instance['title'] ) ) {
echo ent2ncr( $args['before_title'] . $instance['title'] . $args['after_title'] );
}
$username = '';
if ( ! empty( $twitter ) && is_array( $twitter ) ) : ?>
<div class="thim-tweets">
<div class="twitter-item-wrapper">
<?php
foreach ( $twitter as $tweet ) :
$twitter_time = strtotime( $tweet['created_at'] );
$avatar = $tweet['user']['profile_image_url'];
$username = $tweet['user']['screen_name'];
$location = $tweet['user']['location'];
$latest_tweet = $tweet['text'];
$latest_tweet = preg_replace( '/https:\/\/([a-z0-9_\.\-\+\&\!\#\~\/\,]+)/i', '', $latest_tweet );
$latest_tweet = preg_replace( '/@([a-z0-9_]+)/i', '', $latest_tweet );
$urls = $tweet['entities']['urls'];
?>
<div class="tweet-item">
<div class="content">
<?php echo ent2ncr( $latest_tweet ); ?>
</div>
<?php
if ( ! empty( $urls ) ) {
echo '<div class="links">';
foreach ( $urls as $key => $value ) {
if ( ! empty( $value['url'] ) ) {
echo '<a href="' . $value['url'] . '" >' . $value['url'] . '</a>';
}
}
echo '</div>';
}
?>
<div class="date">
<?php echo date( 'F j, Y', $twitter_time ); ?>
</div>
</div>
<?php endforeach; ?>
</div>
</div>
<?php endif; ?>
<a class="link-follow" href="https://twitter.com/<?php echo esc_attr( $username ); ?>"><i class="edu-x-twitter"></i></a>
</div>
</div>