[themes/lite] remove rr
This commit is contained in:
parent
3581945e09
commit
e4bbdc2ac6
4 changed files with 6 additions and 16 deletions
|
@ -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>";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -41,6 +41,6 @@ class CustomSetupTheme extends SetupTheme
|
|||
</div>
|
||||
";
|
||||
|
||||
return $this->rr($html);
|
||||
return "<div class='tframe'>$html</div>";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -41,6 +41,6 @@ class CustomUserConfigTheme extends UserConfigTheme
|
|||
</div>
|
||||
";
|
||||
|
||||
return $this->rr($html);
|
||||
return "<div class='tframe'>$html</div>";
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue