Skip to content

Commit

Permalink
[themes] move disable_left to base class
Browse files Browse the repository at this point in the history
  • Loading branch information
shish committed Dec 15, 2023
1 parent e4bbdc2 commit f8ec844
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 26 deletions.
6 changes: 6 additions & 0 deletions core/basepage.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ public function set_redirect(string $redirect): void
public string $title = "";
public string $heading = "";
public string $subheading = "";
public bool $left_enabled = true;

/** @var string[] */
public array $html_headers = [];
Expand Down Expand Up @@ -157,6 +158,11 @@ public function flash(string $message): void
$this->flash[] = $message;
}

public function disable_left()
{
$this->left_enabled = false;
}

/**
* Add a line to the HTML head section.
*/
Expand Down
7 changes: 0 additions & 7 deletions themes/danbooru/page.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,6 @@
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
class Page extends BasePage
{
public bool $left_enabled = true;

public function disable_left()
{
$this->left_enabled = false;
}

public function render()
{
global $config;
Expand Down
6 changes: 0 additions & 6 deletions themes/danbooru2/page.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,6 @@

class Page extends BasePage
{
public bool $left_enabled = true;
public function disable_left()
{
$this->left_enabled = false;
}

public function render()
{
global $config;
Expand Down
6 changes: 0 additions & 6 deletions themes/futaba/page.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@

class Page extends BasePage
{
public bool $left_enabled = true;
public function disable_left()
{
$this->left_enabled = false;
}

public function render()
{
$left_block_html = "";
Expand Down
7 changes: 0 additions & 7 deletions themes/lite/page.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,6 @@

class Page extends BasePage
{
public bool $left_enabled = true;

public function disable_left()
{
$this->left_enabled = false;
}

public function render()
{
global $config;
Expand Down

0 comments on commit f8ec844

Please sign in to comment.