aowow/endpoints/unrated-comments/unrated-comments.php
Sarjuuk 70e4bca10f Template/Update (Part 16)
* convert amalgamation utility.php into separate endpoints
2025-09-25 15:56:47 +02:00

41 lines
1,005 B
PHP

<?php
namespace Aowow;
if (!defined('AOWOW_REVISION'))
die('illegal access');
class UnratedcommentsBaseResponse extends TemplateResponse
{
protected string $pageName = 'unrated-comments';
protected string $template = 'list-page-generic';
protected ?int $activeTab = parent::TAB_TOOLS;
protected array $breadcrumb = [1, 8, 5]; // Tools > Util > Unrated Comments
protected function generate() : void
{
$this->h1 = Lang::main('utilities', 5);
/*********/
/* Title */
/*********/
array_unshift($this->title, $this->h1);
/****************/
/* Main Content */
/****************/
$this->lvTabs = new Tabs(['parent' => "\$\$WH.ge('tabs-generic')"]);
$data = CommunityContent::getCommentPreviews(['unrated' => true, 'comments' => true]);
$this->lvTabs->addListviewTab(new Listview(['data' => $data], 'commentpreview'));
parent::generate();
}
}
?>