3 require_once('include/socgraph.php');
5 function allfriends_content(&$a) {
9 notice( t('Permission denied.') . EOL);
14 $cid = intval($a->argv[1]);
18 $c = q("select name, url, photo from contact where id = %d and uid = %d limit 1",
23 $a->page['aside'] .= '<div class="vcard">'
24 . '<div class="fn label">' . $c[0]['name'] . '</div>'
25 . '<div id="profile-photo-wrapper">'
26 . '<a href="/contacts/' . $cid . '"><img class="photo" width="175" height="175"
27 src="' . $c[0]['photo'] . '" alt="' . $c[0]['name'] . '" /></div>'
34 $o .= '<h2>' . sprintf( t('Friends of %s'), $c[0]['name']) . '</h2>';
37 $r = all_friends(local_user(),$cid);
40 $o .= t('No friends to display.');
44 $tpl = get_markup_template('common_friends.tpl');
48 $o .= replace_macros($tpl,array(
50 '$name' => $rr['name'],
51 '$photo' => $rr['photo'],
57 // $o .= paginate($a);