diff --git a/app/class/Application.php b/app/class/Application.php index 6aa79f08..8a182278 100644 --- a/app/class/Application.php +++ b/app/class/Application.php @@ -224,13 +224,17 @@ protected function defaultbookmarks() $emptytagbookmark->init( 'notags', $emptytag->getaddress(), - '❌', + '🏷️', 'No tags', 'Pages that does\'nt have any tag' ); + $all = new Opt(); + $allbookmark = new Bookmark(); + $allbookmark->init('all', $all->getaddress(), '⚓', 'All', 'Show all pages'); $bookmarkmanager->add($lasteditedbookmark); $bookmarkmanager->add($lastcreatedbookmark); $bookmarkmanager->add($emptytagbookmark); + $bookmarkmanager->add($allbookmark); } catch (RuntimeException $e) { } } diff --git a/app/class/Workspace.php b/app/class/Workspace.php index 70fe7577..fc2f1d94 100644 --- a/app/class/Workspace.php +++ b/app/class/Workspace.php @@ -6,6 +6,7 @@ class Workspace extends Item { protected bool $showeditorleftpanel = true; protected bool $showeditorrightpanel = false; + protected bool $showeoptionspanel = false; protected int $fontsize = 15; protected string $mediadisplay = self::LIST; protected string $highlighttheme = self::THEME_DEFAULT; @@ -37,6 +38,11 @@ public function showeditorrightpanel(): bool return $this->showeditorrightpanel; } + public function showeoptionspanel(): bool + { + return $this->showeoptionspanel; + } + public function fontsize(): int { return $this->fontsize; @@ -62,6 +68,11 @@ public function setshoweditorrightpanel($show) $this->showeditorrightpanel = boolval($show); } + public function setshoweoptionspanel($show) + { + $this->showeoptionspanel = boolval($show); + } + public function setfontsize($fontsize) { $fontsize = intval($fontsize); diff --git a/app/view/templates/home.php b/app/view/templates/home.php index d0273ab0..1e0b2882 100644 --- a/app/view/templates/home.php +++ b/app/view/templates/home.php @@ -39,7 +39,7 @@ insert('homebookmark', ['publicbookmarks' => $publicbookmarks, 'personalbookmarks' => $personalbookmarks, 'queryaddress' => $queryaddress]) ?> - insert('homeopt', ['opt' => $opt, 'user' => $user, 'display' => $display]) ?> + insert('homeopt', ['opt' => $opt, 'user' => $user, 'display' => $display, 'workspace' => $workspace]) ?>
diff --git a/app/view/templates/homemenu.php b/app/view/templates/homemenu.php index 5d8887aa..c2c4b073 100644 --- a/app/view/templates/homemenu.php +++ b/app/view/templates/homemenu.php @@ -434,6 +434,15 @@ - + + +
+ + +
+
diff --git a/app/view/templates/homeopt.php b/app/view/templates/homeopt.php index 6e506a28..7a262215 100644 --- a/app/view/templates/homeopt.php +++ b/app/view/templates/homeopt.php @@ -1,7 +1,7 @@