[themes] move disable_left to base class
This commit is contained in:
parent
e4bbdc2ac6
commit
f8ec844745
5 changed files with 6 additions and 26 deletions
|
@ -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.
|
||||
*/
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 = "";
|
||||
|
|
|
@ -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;
|
||||
|
|
Reference in a new issue