use Friendica\Util\Strings;
use Friendica\Model;
+/**
+ * Multi search module, which is needed for further search operations
+ */
class DirectorySearch extends BaseModule
{
public static function content()
return Login::form();
}
- $a = self::getApp();
+ $a = self::getApp();
if (empty($a->page['aside'])) {
$a->page['aside'] = '';
$location = '';
$about = '';
$accountType = '';
- $photo_menu = [];
+ $photo_menu = [];
// If We already know this contact then don't show the "connect" button
if ($result->getCid() > 0 || $result->getPcid() > 0) {
- $connlnk = "";
- $conntxt = "";
+ $connLink = "";
+ $connTxt = "";
$contact = Model\Contact::getById(
($result->getCid() > 0) ? $result->getCid() : $result->getPcid()
);
$photo_menu = [];
}
} else {
- $connlnk = $a->getBaseURL() . '/follow/?url=' . $result->getUrl();
- $conntxt = L10n::t('Connect');
+ $connLink = $a->getBaseURL() . '/follow/?url=' . $result->getUrl();
+ $connTxt = L10n::t('Connect');
$photo_menu['profile'] = [L10n::t("View Profile"), Model\Contact::magicLink($result->getUrl())];
- $photo_menu['follow'] = [L10n::t("Connect/Follow"), $connlnk];
+ $photo_menu['follow'] = [L10n::t("Connect/Follow"), $connLink];
}
$photo = str_replace("http:///photo/", get_server() . "/photo/", $result->getPhoto());
'name' => $result->getName(),
'thumb' => ProxyUtils::proxifyUrl($photo, false, ProxyUtils::SIZE_THUMB),
'img_hover' => $result->getTags(),
- 'conntxt' => $conntxt,
- 'connlnk' => $connlnk,
+ 'conntxt' => $connTxt,
+ 'connlnk' => $connLink,
'photo_menu' => $photo_menu,
'details' => $location,
'tags' => $result->getTags(),