OSDN Git Service

embr
[embrj/master.git] / inc / followingWall.php
1 <?php\r
2         if(!isset($_SESSION)){\r
3                 session_start();\r
4         }\r
5         include('../lib/twitese.php');\r
6 \r
7         $t = getTwitter();\r
8         $friends = $t->friends()->users;\r
9         $html = '<div id="following_list">';\r
10         foreach($friends as $friend){\r
11                 $html .= '<span class="vcard">\r
12                         <a class="url" title="'.$friend->name.'" rel="contact" href="../user.php?id='.$friend->screen_name.'">\r
13                         <img class="photo fn" width="24" height="24" src="'.getAvatar($friend->profile_image_url).'" alt="'.$friend->name.'" />\r
14                         </a>\r
15                         </span>';\r
16         }\r
17         echo $html.'</div>';\r
18 ?>\r