diff options
author | Devlon Duthie <duthied@gmail.com> | 2011-09-25 15:45:03 -0500 |
---|---|---|
committer | Devlon Duthie <duthied@gmail.com> | 2011-09-25 15:45:03 -0500 |
commit | 19963884c29b82b04cdda481837f783c19f172a6 (patch) | |
tree | 7ff2aabe93266739c211f400bac54633d9b431f1 /mod | |
parent | 45043b77f1e31ec574f11ac26dacf9453602321b (diff) | |
download | volse-hubzilla-19963884c29b82b04cdda481837f783c19f172a6.tar.gz volse-hubzilla-19963884c29b82b04cdda481837f783c19f172a6.tar.bz2 volse-hubzilla-19963884c29b82b04cdda481837f783c19f172a6.zip |
moved invite friends into 'find people' block
misc. styling tweaks
Diffstat (limited to 'mod')
-rw-r--r-- | mod/contacts.php | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/mod/contacts.php b/mod/contacts.php index 24613a994..6dda546d3 100644 --- a/mod/contacts.php +++ b/mod/contacts.php @@ -23,8 +23,6 @@ function contacts_init(&$a) { $a->page['aside'] = ''; $a->page['aside'] .= group_side('contacts','group',false,0,$contact_id); - $inv = '<div class="side-link" id="side-invite-link" ><a href="invite" >' . t("Invite Friends") . '</a></div>'; - if(get_config('system','invitation_only')) { $x = get_pconfig(local_user(),'system','invites_remaining'); if($x || is_site_admin()) { @@ -33,22 +31,26 @@ function contacts_init(&$a) { . '</div>' . $inv; } } - elseif($a->config['register_policy'] != REGISTER_CLOSED) - $a->page['aside'] .= $inv; $tpl = get_markup_template('follow.tpl'); $findSimilarLink = '<div class="side-link" id="side-match-link"><a href="match" >' . t('Similar Interests') . '</a></div>'; + $inv = ''; + if($a->config['register_policy'] != REGISTER_CLOSED) { + $inv = '<div class="side-link" id="side-invite-link" ><a href="invite" >' . t("Invite Friends") . '</a></div>'; + } + $a->page['aside'] .= replace_macros($tpl,array( '$label' => t('Connect/Follow'), '$hint' => t('Example: bob@example.com, http://example.com/barbara'), '$follow' => t('Follow'), - '$findSimilar' => $findSimilarLink + '$findSimilar' => $findSimilarLink, + '$inviteFriends' => $inv )); - + } |