2019-05-19 03:01:46 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Friendica\Module\Search;
|
|
|
|
|
|
|
|
use Friendica\Content\Widget;
|
|
|
|
use Friendica\Core\L10n;
|
|
|
|
use Friendica\Module\BaseSearchModule;
|
2019-08-18 19:21:24 +00:00
|
|
|
use Friendica\Module\Login;
|
2019-05-19 03:01:46 +00:00
|
|
|
|
|
|
|
/**
|
2019-05-19 03:06:02 +00:00
|
|
|
* Directory search module
|
2019-05-19 03:01:46 +00:00
|
|
|
*/
|
|
|
|
class Directory extends BaseSearchModule
|
|
|
|
{
|
|
|
|
public static function content()
|
|
|
|
{
|
|
|
|
if (!local_user()) {
|
|
|
|
notice(L10n::t('Permission denied.'));
|
|
|
|
return Login::form();
|
|
|
|
}
|
|
|
|
|
|
|
|
$a = self::getApp();
|
|
|
|
|
|
|
|
if (empty($a->page['aside'])) {
|
|
|
|
$a->page['aside'] = '';
|
|
|
|
}
|
|
|
|
|
|
|
|
$a->page['aside'] .= Widget::findPeople();
|
|
|
|
$a->page['aside'] .= Widget::follow();
|
|
|
|
|
|
|
|
return self::performSearch();
|
|
|
|
}
|
|
|
|
}
|