From 3a533b7644d8fac789ece0e49c4225f25e6a0e58 Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Sat, 11 Nov 2023 15:31:06 +0100 Subject: [PATCH] Remove obsolete ConfirmDeletePage and Button templates --- templates/Button.php | 27 ------------------------- templates/ConfirmDeletePage.php | 35 --------------------------------- 2 files changed, 62 deletions(-) delete mode 100644 templates/Button.php delete mode 100644 templates/ConfirmDeletePage.php diff --git a/templates/Button.php b/templates/Button.php deleted file mode 100644 index c978c42..0000000 --- a/templates/Button.php +++ /dev/null @@ -1,27 +0,0 @@ -content = $content; - $this->href = $href; - $this->class = $class; - } - - public function html_main() - { - echo ' - ', $this->content, ''; - } -} diff --git a/templates/ConfirmDeletePage.php b/templates/ConfirmDeletePage.php deleted file mode 100644 index 80075c5..0000000 --- a/templates/ConfirmDeletePage.php +++ /dev/null @@ -1,35 +0,0 @@ -confirm(); - $this->photo(); - } - - private function confirm() - { - $buttons = []; - $buttons[] = new Button("Delete", BASEURL . '/' . $this->photo->getSlug() . '/?delete_confirmed', "btn btn-danger"); - $buttons[] = new Button("Cancel", $this->photo->getPageUrl(), "btn"); - - $alert = new WarningDialog( - "Confirm deletion.", - "You are about to permanently delete the following photo.", - $buttons - ); - $alert->html_main(); - } -}