2019-05-18 23:01:46 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Friendica\Module\Search;
|
|
|
|
|
|
|
|
use Friendica\Content\Widget;
|
|
|
|
use Friendica\Core\L10n;
|
|
|
|
use Friendica\Module\BaseSearchModule;
|
|
|
|
|
|
|
|
/**
|
2019-05-18 23:06:02 -04:00
|
|
|
* Directory search module
|
2019-05-18 23:01:46 -04: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();
|
|
|
|
}
|
|
|
|
}
|