function twit_build($p, $o, $res = '') { //req('tri'); list($p, $o) = ajxp($res, $p, $o); $p = $p ? $p : 'philum_cms'; ses('twusr', $p); require_once 'plug/tiers/Twitter.php'; $t = new Twitter(); if (is_numeric($p)) { $r = $t->read($p); $rb = $t->show($r['user']['screen_name']); $im = image($q['profile_image_url']); //$ret=twit_user_banner().br(); $ret .= twit_read($r); } else { $ret = twit_batch($t->user_timeline($p, 10)); } $ret .= hidden('', 'home', $o); return $ret; }
<!-- single post --> </div> </div> <!-- col 3 --> <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12"> <div class="widget-area-16"> <div class="widget kopa-tweet-widget"> <header class="widget-header"> <h3 class="widget-title">recent tweets</h3> <i class="fa fa-plus-square-o"></i> </header> <div class="widget-content"> <div class="tweets" data-user="******"> <?php $t = new Twitter(); $query = $t->user_timeline("Numalex2", 5); //compte "Shinix et "5" dernier tweet foreach ($query as &$q) { echo '<li>' . $t->linkeur($q["text"]) . '</li>'; } ?> </div> </div> <!-- widget-content --> </div> <!-- kp-tweet --> </div> </div> <!-- col 3 --> <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">