X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fcontact_widgets.php;h=b359781ffd734b818187caaa65df898bc57ac9ba;hb=54e1585c22b744f2cedaaf120107e872db2bb1be;hp=3a21ff2c6ff54edab709686c32a30ab7e5c1de33;hpb=00c342e13d833fd215e5dc03a508e1abe660fe21;p=friendica.git diff --git a/include/contact_widgets.php b/include/contact_widgets.php index 3a21ff2c6f..b359781ffd 100644 --- a/include/contact_widgets.php +++ b/include/contact_widgets.php @@ -1,32 +1,39 @@ t('Add New Contact'), '$desc' => t('Enter address or web location'), '$hint' => t('Example: bob@example.com, http://example.com/barbara'), + '$value' => $value, '$follow' => t('Connect') )); } function findpeople_widget() { + require_once 'include/Contact.php'; $a = get_app(); + $global_dir = Config::get('system', 'directory'); - $inv = (($a->config['register_policy'] != REGISTER_CLOSED) ? t('Invite Friends') : ''); - - if(get_config('system','invitation_only')) { - $x = get_pconfig(local_user(),'system','invites_remaining'); - if($x || is_site_admin()) { - $a->page['aside'] .= '