Files
aowow/endpoints/searchplugins/searchplugins.php
Sarjuuk 1f5152c871 Template/Update (Part 4)
* convert search into separate endpoints
 * move shared functionalty to components
 * NOTE: acceptance of opensearch has waned over the last decade and
         the script should be updated
2025-09-25 15:55:37 +02:00

35 lines
720 B
PHP

<?php
namespace Aowow;
if (!defined('AOWOW_REVISION'))
die('illegal access');
class SearchpluginsBaseResponse extends TemplateResponse
{
protected string $template = 'text-page-generic';
protected string $pageName = 'searchplugins';
protected ?int $activeTab = parent::TAB_MORE;
protected array $breadcrumb = [2, 8];
public function __construct(string $pageParam)
{
parent::__construct($pageParam);
if ($pageParam)
$this->generateError();
}
protected function generate() : void
{
$this->h1 = Lang::main('moreTitles', $this->pageName);
array_unshift($this->title, $this->h1);
parent::generate();
}
}
?>