5 require_once('include/Contact.php');
6 require_once('include/socgraph.php');
7 require_once('include/contact_selectors.php');
9 function nogroup_init(App $a) {
15 require_once('include/group.php');
16 require_once('include/contact_widgets.php');
18 if (! x($a->page,'aside')) {
19 $a->page['aside'] = '';
22 $a->page['aside'] .= group_side('contacts','group','extended',0,$contact_id);
26 function nogroup_content(App $a) {
29 notice( t('Permission denied.') . EOL);
33 require_once('include/Contact.php');
34 $r = contacts_not_grouped(local_user());
35 if (dbm::is_result($r)) {
36 $a->set_pager_total($r[0]['total']);
38 $r = contacts_not_grouped(local_user(),$a->pager['start'],$a->pager['itemspage']);
39 if (dbm::is_result($r)) {
42 $contact_details = get_contact_details_by_url($rr['url'], local_user(), $rr);
45 'img_hover' => sprintf(t('Visit %s\'s profile [%s]'), $contact_details['name'], $rr['url']),
46 'edit_hover' => t('Edit contact'),
47 'photo_menu' => contact_photo_menu($rr),
49 'alt_text' => $alt_text,
50 'dir_icon' => $dir_icon,
51 'thumb' => proxy_url($contact_details['thumb'], false, PROXY_SIZE_THUMB),
52 'name' => $contact_details['name'],
53 'username' => $contact_details['name'],
54 'details' => $contact_details['location'],
55 'tags' => $contact_details['keywords'],
56 'about' => $contact_details['about'],
57 'sparkle' => $sparkle,
58 'itemurl' => (($contact_details['addr'] != "") ? $contact_details['addr'] : $rr['url']),
60 'network' => network_to_name($rr['network'], $url),
65 $tpl = get_markup_template("nogroup-template.tpl");
66 $o .= replace_macros($tpl, array(
67 '$header' => t('Contacts who are not members of a group'),
68 '$contacts' => $contacts,
69 '$paginate' => paginate($a),