[themes/lite] remove rr

This commit is contained in:
Shish 2023-12-15 21:14:43 +00:00
parent 3581945e09
commit e4bbdc2ac6
4 changed files with 6 additions and 16 deletions

View file

@ -8,11 +8,13 @@ class CustomCommentListTheme extends CommentListTheme
{
protected function comment_to_html(Comment $comment, bool $trim = false): string
{
return $this->rr(parent::comment_to_html($comment, $trim));
$html = parent::comment_to_html($comment, $trim);
return "<div class='tframe'>$html</div>";
}
protected function build_postbox(int $image_id): string
{
return $this->rr(parent::build_postbox($image_id));
$html = parent::build_postbox($image_id);
return "<div class='tframe'>$html</div>";
}
}

View file

@ -41,6 +41,6 @@ class CustomSetupTheme extends SetupTheme
</div>
";
return $this->rr($html);
return "<div class='tframe'>$html</div>";
}
}

View file

@ -13,18 +13,6 @@ use function MicroHTML\{A,DIV,SPAN,joinHTML};
*/
class Themelet extends BaseThemelet
{
/**
* Put something in a rounded rectangle box; specific to the default theme.
*/
public function rr(string $html): string
{
return "
<div class='tframe'>
$html
</div>
";
}
public function display_paginator(Page $page, string $base, ?string $query, int $page_number, int $total_pages, bool $show_random = false)
{
if ($total_pages == 0) {

View file

@ -41,6 +41,6 @@ class CustomUserConfigTheme extends UserConfigTheme
</div>
";
return $this->rr($html);
return "<div class='tframe'>$html</div>";
}
}