<?php /***************************************************************************** * ConfirmDeletePage.php * Contains the confirm delete page template. * * Kabuki CMS (C) 2013-2016, Aaron van Geffen *****************************************************************************/ class ConfirmDeletePage extends PhotoPage { public function __construct(Image $photo) { parent::__construct($photo); } protected function html_content() { $this->confirm(); $this->photo(); } private function confirm() { $buttons = []; $buttons[] = new Button("Delete", BASEURL . '/' . $this->photo->getSlug() . '?delete_confirmed', "btn btn-red"); $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_content(); } }