From 93c827446737252c36d6d9daee7e2e7a55eb911b Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Fri, 9 Aug 2019 15:58:37 +0200 Subject: New Feature : Alert pages have more options --- app/view/templates/alert.php | 104 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 104 insertions(+) create mode 100644 app/view/templates/alert.php (limited to 'app/view/templates/alert.php') diff --git a/app/view/templates/alert.php b/app/view/templates/alert.php new file mode 100644 index 0000000..ff29e30 --- /dev/null +++ b/app/view/templates/alert.php @@ -0,0 +1,104 @@ +layout('readerlayout') ?> + +start('head'); +?> + + + ' : '' ?> + + + +stop(); +?> + + + +start('page') ?> + + + +
+ + insert('navart', ['user' => $user, 'art' => $art, 'artexist' => $artexist, 'canedit' => $canedit]); + } + + ?> + + + + + ' . Config::alerttitle() . '' : '' ?> + + +
+ + + + +
+

'; + + + if(!$artexist) { + if(!empty(Config::existnot())) { + echo '

' . Config::existnot() . '

'; + } + if(Config::existnotpass() && !$canedit) { + echo $form; + } + } else { + + + + switch ($art->secure()) { + case 1: + if(!empty(Config::private())) { + echo '

' . Config::private() . '

'; + } + if(Config::privatepass()) { + echo $form; + } + break; + + case 2: + if(!empty(Config::notpublished())) { + echo '

' . Config::notpublished() . '

'; + } + if(Config::notpublishedpass()) { + echo $form; + } + break; + } + } + + + + if ($canedit) { + ?> +

⭐ Create

+ +

+ + + + +
+ + + + +stop() ?> \ No newline at end of file -- cgit v1.2.3