3 require_once('include/socgraph.php');
4 require_once('include/contact_widgets.php');
7 function suggest_init(&$a) {
11 if(x($_GET,'ignore') && intval($_GET['ignore'])) {
12 q("insert into gcign ( uid, gcid ) values ( %d, %d ) ",
14 intval($_GET['ignore'])
24 function suggest_content(&$a) {
28 notice( t('Permission denied.') . EOL);
32 $a->page['aside'] .= follow_widget();
33 $a->page['aside'] .= findpeople_widget();
36 $o .= '<h2>' . t('Friend Suggestions') . '</h2>';
39 $r = suggestion_query(local_user());
42 $o .= t('No suggestions. This works best when you have more than one contact/friend.');
46 $tpl = get_markup_template('suggest_friends.tpl');
50 $o .= replace_macros($tpl,array(
52 '$name' => $rr['name'],
53 '$photo' => $rr['photo'],
54 '$ignlnk' => $a->get_baseurl() . '/suggest?ignore=' . $rr['id'],
55 '$ignore' => t('Ignore/Hide')
60 // $o .= paginate($a);