diff --git a/app/class/Workspace.php b/app/class/Workspace.php index e88365b6..a7ee4f20 100644 --- a/app/class/Workspace.php +++ b/app/class/Workspace.php @@ -7,6 +7,8 @@ class Workspace extends Item protected bool $showeditorleftpanel = true; protected bool $showeditorrightpanel = false; protected bool $showeoptionspanel = false; + protected bool $showebookmarkspanel = true; + protected int $fontsize = 15; protected string $mediadisplay = self::LIST; protected string $highlighttheme = self::THEME_DEFAULT; @@ -46,6 +48,11 @@ public function showeoptionspanel(): bool return $this->showeoptionspanel; } + public function showebookmarkspanel(): bool + { + return $this->showebookmarkspanel; + } + public function fontsize(): int { return $this->fontsize; @@ -76,6 +83,11 @@ public function setshoweoptionspanel($show): void $this->showeoptionspanel = boolval($show); } + public function setshowebookmarkspanel($show): void + { + $this->showebookmarkspanel = boolval($show); + } + public function setfontsize($fontsize): void { $fontsize = intval($fontsize); diff --git a/app/view/templates/home.php b/app/view/templates/home.php index 7376e4c0..44598e48 100644 --- a/app/view/templates/home.php +++ b/app/view/templates/home.php @@ -40,7 +40,7 @@
- insert('homebookmark', ['publicbookmarks' => $publicbookmarks, 'personalbookmarks' => $personalbookmarks, 'queryaddress' => $queryaddress, 'display' => $display]) ?> + insert('homebookmark', ['publicbookmarks' => $publicbookmarks, 'personalbookmarks' => $personalbookmarks, 'queryaddress' => $queryaddress, 'display' => $display, 'workspace' => $workspace]) ?> insert('homeopt', ['opt' => $opt, 'user' => $user, 'display' => $display, 'workspace' => $workspace]) ?> diff --git a/app/view/templates/homebookmark.php b/app/view/templates/homebookmark.php index 9f16b1b6..24bb3200 100644 --- a/app/view/templates/homebookmark.php +++ b/app/view/templates/homebookmark.php @@ -1,5 +1,5 @@