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',false,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']);
40 'img_hover' => sprintf( t('Visit %s\'s profile [%s]'),$rr['name'],$rr['url']),
41 'edit_hover' => t('Edit contact'),
42 'photo_menu' => contact_photo_menu($rr),
44 'alt_text' => $alt_text,
45 'dir_icon' => $dir_icon,
46 'thumb' => $rr['thumb'],
47 'name' => $rr['name'],
48 'username' => $rr['name'],
49 'sparkle' => $sparkle,
50 'itemurl' => $rr['url'],
52 'network' => network_to_name($rr['network']),
57 $tpl = get_markup_template("nogroup-template.tpl");
58 $o .= replace_macros($tpl, array(
59 '$header' => t('Contacts who are not members of a group'),
60 '$contacts' => $contacts,
61 '$paginate' => paginate($a),