|
|
|
|
@ -156,17 +156,13 @@ if (count($friends) == 0 ) { |
|
|
|
|
$number_of_images = 8; |
|
|
|
|
|
|
|
|
|
$number_friends = count($friends); |
|
|
|
|
if ($number_friends != 0) { |
|
|
|
|
$number_loop = ($number_friends/$number_of_images); |
|
|
|
|
$loop_friends = ceil($number_loop); |
|
|
|
|
$j=0; |
|
|
|
|
echo '<div id ="social-content-right">'; |
|
|
|
|
$friend_html.= '<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="" >'; |
|
|
|
|
for ($k=0;$k<$loop_friends;$k++) { |
|
|
|
|
for ($k=0;$k<$number_friends;$k++) { |
|
|
|
|
$friend_html.='<tr><td valign="top">'; |
|
|
|
|
if ($j==$number_of_images) { |
|
|
|
|
$number_of_images=$number_of_images*2; |
|
|
|
|
} |
|
|
|
|
while ($j<$number_of_images) { |
|
|
|
|
|
|
|
|
|
while ($j<$number_friends) { |
|
|
|
|
if (isset($friends[$j])) { |
|
|
|
|
$friend = $friends[$j]; |
|
|
|
|
$user_name = api_xml_http_response_encode($friend['firstName'].' '.$friend['lastName']); |
|
|
|
|
@ -180,7 +176,7 @@ if (count($friends) == 0 ) { |
|
|
|
|
$friend_html.='</td></tr>'; |
|
|
|
|
} |
|
|
|
|
$friend_html.='<br/></table>'; |
|
|
|
|
} |
|
|
|
|
echo '</div>'; |
|
|
|
|
echo $friend_html; |
|
|
|
|
echo '</div>'; |
|
|
|
|
echo '</div>'; |
|
|
|
|
|