diff options
author | Friendika <info@friendika.com> | 2011-10-11 19:27:58 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-10-11 19:27:58 -0700 |
commit | 2206d894b3fec7064b91e0420bcc2b16e9e7009b (patch) | |
tree | dff69c246dbba923a76e68404e2c012acbb29c07 /mod/contacts.php | |
parent | 557a7d0cec31a36d12898429c479c71671833dfd (diff) | |
download | volse-hubzilla-2206d894b3fec7064b91e0420bcc2b16e9e7009b.tar.gz volse-hubzilla-2206d894b3fec7064b91e0420bcc2b16e9e7009b.tar.bz2 volse-hubzilla-2206d894b3fec7064b91e0420bcc2b16e9e7009b.zip |
add contact_widgets and provide widgets on appropriate pages, fix the saved search widget
fix directory page on testbubble, don't use system theme for community, directory, and search if the viewer is logged in.
Diffstat (limited to 'mod/contacts.php')
-rw-r--r-- | mod/contacts.php | 36 |
1 files changed, 4 insertions, 32 deletions
diff --git a/mod/contacts.php b/mod/contacts.php index d24873b8f..9bbcea07d 100644 --- a/mod/contacts.php +++ b/mod/contacts.php @@ -19,44 +19,16 @@ function contacts_init(&$a) { } require_once('include/group.php'); + require_once('include/contact_widgets.php'); + if(! x($a->page,'aside')) $a->page['aside'] = ''; - $a->page['aside'] .= replace_macros(get_markup_template('follow.tpl'),array( - '$connect' => t('Add New Contact'), - '$desc' => t('Enter address or web location'), - '$hint' => t('Example: bob@example.com, http://example.com/barbara'), - '$follow' => t('Connect') - )); - - + $a->page['aside'] .= follow_widget(); $a->page['aside'] .= group_side('contacts','group',false,0,$contact_id); - if(get_config('system','invitation_only')) { - $x = get_pconfig(local_user(),'system','invites_remaining'); - if($x || is_site_admin()) { - $a->page['aside'] .= '<div class="side-link" id="side-invite-remain">' - . sprintf( tt('%d invitation available','%d invitations available',$x), $x) - . '</div>' . $inv; - } - } - - $tpl = get_markup_template('peoplefind.tpl'); - - $inv = (($a->config['register_policy'] != REGISTER_CLOSED) ? t('Invite Friends') : ''); - - $a->page['aside'] .= replace_macros($tpl,array( - '$findpeople' => t('Find People'), - '$desc' => t('Enter name or interest'), - '$label' => t('Connect/Follow'), - '$hint' => t('Examples: Robert Morgenstein, Fishing'), - '$findthem' => t('Find'), - '$similar' => t('Similar Interests'), - '$inv' => $inv - )); - - + $a->page['aside'] .= findpeople_widget(); } |