X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fcontacts.php;h=ea429d39fe15384b90f445f129bd84ba35393b0e;hb=3ca3157e53d9a37f5fee6ef6c459d61b453cca72;hp=4decc504232a6a04c4065cb81877058c7832f380;hpb=9d2afc2d3c12f6b70eae11487e491e2d8604ed60;p=friendica.git diff --git a/mod/contacts.php b/mod/contacts.php index 4decc50423..ea429d39fe 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 = ''; - if(get_config('system','invitation_only')) { $x = get_pconfig(local_user(),'system','invites_remaining'); if($x || is_site_admin()) { @@ -33,21 +31,26 @@ function contacts_init(&$a) { . '' . $inv; } } - elseif($a->config['register_policy'] != REGISTER_CLOSED) - $a->page['aside'] .= $inv; - - - $a->page['aside'] .= ''; $tpl = get_markup_template('follow.tpl'); + + $findSimilarLink = ''; + + $inv = ''; + if($a->config['register_policy'] != REGISTER_CLOSED) { + $inv = ''; + } + $a->page['aside'] .= replace_macros($tpl,array( '$label' => t('Connect/Follow'), '$hint' => t('Example: bob@example.com, http://example.com/barbara'), - '$follow' => t('Follow') + '$follow' => t('Follow'), + '$findSimilar' => $findSimilarLink, + '$inviteFriends' => $inv )); - + }