From 9ed1f8343d35f0b3b5a8789b079d89973942d585 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Fri, 1 Nov 2024 12:12:14 +0100 Subject: [PATCH] refactor workspace "show panel" vars names indicate the view it belongs to in order to welcome new nestable media panels --- app/class/Workspace.php | 20 ++++++++++---------- app/view/templates/homebookmark.php | 4 ++-- app/view/templates/homemenu.php | 4 ++-- app/view/templates/homeopt.php | 4 ++-- app/view/templates/media.php | 8 ++++---- 5 files changed, 20 insertions(+), 20 deletions(-) diff --git a/app/class/Workspace.php b/app/class/Workspace.php index a7ee4f20..620c66f6 100644 --- a/app/class/Workspace.php +++ b/app/class/Workspace.php @@ -6,8 +6,8 @@ class Workspace extends Item { protected bool $showeditorleftpanel = true; protected bool $showeditorrightpanel = false; - protected bool $showeoptionspanel = false; - protected bool $showebookmarkspanel = true; + protected bool $showhomeoptionspanel = false; + protected bool $showhomebookmarkspanel = true; protected int $fontsize = 15; protected string $mediadisplay = self::LIST; @@ -43,14 +43,14 @@ public function showeditorrightpanel(): bool return $this->showeditorrightpanel; } - public function showeoptionspanel(): bool + public function showhomeoptionspanel(): bool { - return $this->showeoptionspanel; + return $this->showhomeoptionspanel; } - public function showebookmarkspanel(): bool + public function showhomebookmarkspanel(): bool { - return $this->showebookmarkspanel; + return $this->showhomebookmarkspanel; } public function fontsize(): int @@ -78,14 +78,14 @@ public function setshoweditorrightpanel($show): void $this->showeditorrightpanel = boolval($show); } - public function setshoweoptionspanel($show): void + public function setshowhomeoptionspanel($show): void { - $this->showeoptionspanel = boolval($show); + $this->showhomeoptionspanel = boolval($show); } - public function setshowebookmarkspanel($show): void + public function setshowhomebookmarkspanel($show): void { - $this->showebookmarkspanel = boolval($show); + $this->showhomebookmarkspanel = boolval($show); } public function setfontsize($fontsize): void diff --git a/app/view/templates/homebookmark.php b/app/view/templates/homebookmark.php index 24bb3200..8170008c 100644 --- a/app/view/templates/homebookmark.php +++ b/app/view/templates/homebookmark.php @@ -1,6 +1,6 @@