3 require_once('include/Contact.php');
4 require_once('include/socgraph.php');
5 require_once('include/contact_selectors.php');
7 function nogroup_init(&$a) {
12 require_once('include/group.php');
13 require_once('include/contact_widgets.php');
15 if(! x($a->page,'aside'))
16 $a->page['aside'] = '';
18 $a->page['aside'] .= group_side('contacts','group','extended',0,$contact_id);
22 function nogroup_content(&$a) {
25 notice( t('Permission denied.') . EOL);
29 require_once('include/Contact.php');
30 $r = contacts_not_grouped(local_user());
32 $a->set_pager_total($r[0]['total']);
34 $r = contacts_not_grouped(local_user(),$a->pager['start'],$a->pager['itemspage']);
38 $contact_details = get_contact_details_by_url($rr['url'], local_user(), $rr);
41 'img_hover' => sprintf(t('Visit %s\'s profile [%s]'), $contact_details['name'], $rr['url']),
42 'edit_hover' => t('Edit contact'),
43 'photo_menu' => contact_photo_menu($rr),
45 'alt_text' => $alt_text,
46 'dir_icon' => $dir_icon,
47 'thumb' => proxy_url($contact_details['thumb'], false, PROXY_SIZE_THUMB),
48 'name' => $contact_details['name'],
49 'username' => $contact_details['name'],
50 'details' => $contact_details['location'],
51 'tags' => $contact_details['keywords'],
52 'about' => $contact_details['about'],
53 'sparkle' => $sparkle,
54 'itemurl' => (($contact_details['addr'] != "") ? $contact_details['addr'] : $rr['url']),
56 'network' => network_to_name($rr['network'], $url),
61 $tpl = get_markup_template("nogroup-template.tpl");
62 $o .= replace_macros($tpl, array(
63 '$header' => t('Contacts who are not members of a group'),
64 '$contacts' => $contacts,
65 '$paginate' => paginate($a),