41 lines
1,005 B
PHP
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();
|
|
}
|
|
}
|
|
|
|
?>
|