diff --git a/templates/Button.php b/templates/Button.php deleted file mode 100644 index c978c42e..00000000 --- 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 80075c59..00000000 --- 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(); - } -}