[themes] move disable_left to base class

This commit is contained in:
Shish 2023-12-15 21:23:26 +00:00
parent e4bbdc2ac6
commit f8ec844745
5 changed files with 6 additions and 26 deletions

View file

@ -113,6 +113,7 @@ class BasePage
public string $title = "";
public string $heading = "";
public string $subheading = "";
public bool $left_enabled = true;
/** @var string[] */
public array $html_headers = [];
@ -157,6 +158,11 @@ class BasePage
$this->flash[] = $message;
}
public function disable_left()
{
$this->left_enabled = false;
}
/**
* Add a line to the HTML head section.
*/

View file

@ -50,13 +50,6 @@ Tips
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
class Page extends BasePage
{
public bool $left_enabled = true;
public function disable_left()
{
$this->left_enabled = false;
}
public function render()
{
global $config;

View file

@ -51,12 +51,6 @@ Tips
class Page extends BasePage
{
public bool $left_enabled = true;
public function disable_left()
{
$this->left_enabled = false;
}
public function render()
{
global $config;

View file

@ -6,12 +6,6 @@ namespace Shimmie2;
class Page extends BasePage
{
public bool $left_enabled = true;
public function disable_left()
{
$this->left_enabled = false;
}
public function render()
{
$left_block_html = "";

View file

@ -17,13 +17,6 @@ use MicroHTML\HTMLElement;
class Page extends BasePage
{
public bool $left_enabled = true;
public function disable_left()
{
$this->left_enabled = false;
}
public function render()
{
global $config;