<?php
+use Friendica\App;
+use Friendica\Core\Config;
+
function follow_widget($value = "") {
return replace_macros(get_markup_template('follow.tpl'), array(
require_once 'include/Contact.php';
$a = get_app();
+ $global_dir = Config::get('system', 'directory');
if (get_config('system', 'invitation_only')) {
$x = get_pconfig(local_user(), 'system', 'invites_remaining');
'$suggest' => t('Friend Suggestions'),
'$similar' => t('Similar Interests'),
'$random' => t('Random Profile'),
- '$inv' => t('Invite Friends')
+ '$inv' => t('Invite Friends'),
+ '$directory' => t('View Global Directory'),
+ '$global_dir' => $global_dir
));
}
$networks[] = NETWORK_APPNET;
}
- if (!plugin_enabled("fbpost") AND !plugin_enabled("facebook")) {
+ if (!plugin_enabled("fbpost") && !plugin_enabled("facebook")) {
$networks[] = NETWORK_FACEBOOK;
}
$a = get_app();
- if (local_user() == $profile_uid)
+ if (local_user() == $profile_uid) {
return;
+ }
$cid = $zcid = 0;