From a64af357ff41a61f5248e2052274315b390e979c Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Sun, 11 Nov 2018 22:04:49 +0100 Subject: clean --- app/view/templates/body.php | 0 app/view/templates/confirmdelete.php | 44 ++++++++++++++++++++++++++++++++++++ app/view/templates/connect.php | 2 +- app/view/templates/delete.php | 44 ------------------------------------ app/view/templates/edit.php | 5 +--- app/view/templates/editrightbar.php | 2 +- app/view/templates/edittopbar.php | 15 ++++++------ app/view/templates/home.php | 10 ++++---- app/view/templates/layout.php | 2 +- app/view/templates/navart.php | 4 ++-- app/view/templates/read.php | 6 +++-- app/view/templates/readcreate.php | 5 ---- 12 files changed, 66 insertions(+), 73 deletions(-) delete mode 100644 app/view/templates/body.php create mode 100644 app/view/templates/confirmdelete.php delete mode 100644 app/view/templates/delete.php delete mode 100644 app/view/templates/readcreate.php (limited to 'app/view') diff --git a/app/view/templates/body.php b/app/view/templates/body.php deleted file mode 100644 index e69de29..0000000 diff --git a/app/view/templates/confirmdelete.php b/app/view/templates/confirmdelete.php new file mode 100644 index 0000000..e05f6da --- /dev/null +++ b/app/view/templates/confirmdelete.php @@ -0,0 +1,44 @@ +layout('layout', ['title' => 'delete', 'description' => 'delete', 'css' => $css . 'delete.css']) ?> + + +start('page') ?> + + +insert('navart', ['user' => $user, 'art' => $art, 'artexist' => $artexist]) ?> + +
+ +

Delete

+ + + +linkto())) { ?> + +

Article linked to :

+ + + + + +
+ + +
+ + +
+ + + +stop() ?> \ No newline at end of file diff --git a/app/view/templates/connect.php b/app/view/templates/connect.php index 3e2aeba..a4d58e7 100644 --- a/app/view/templates/connect.php +++ b/app/view/templates/connect.php @@ -1,4 +1,4 @@ -layout('layout', ['title' => 'Connect', 'description' => 'connect']) ?> +layout('layout', ['title' => 'Connect', 'description' => 'connect', 'css' => $css . 'connect.css']) ?> diff --git a/app/view/templates/delete.php b/app/view/templates/delete.php deleted file mode 100644 index be54451..0000000 --- a/app/view/templates/delete.php +++ /dev/null @@ -1,44 +0,0 @@ -layout('layout', ['title' => 'delete', 'description' => 'delete']) ?> - - -start('page') ?> - - -insert('navart', ['user' => $user, 'art' => $art, 'artexist' => $artexist]) ?> - -
- -

Delete

- - - -linkto())) { ?> - -

Article linked to :

- - - - - -
- - -
- - -
- - - -stop() ?> \ No newline at end of file diff --git a/app/view/templates/edit.php b/app/view/templates/edit.php index 33d42f4..7379378 100644 --- a/app/view/templates/edit.php +++ b/app/view/templates/edit.php @@ -1,4 +1,4 @@ -layout('layout', ['title' => '✏ '.$art->title()]) ?> +layout('layout', ['title' => '✏ '.$art->title(), 'css' => $css . 'edit.css']) ?> @@ -24,9 +24,6 @@ - - - diff --git a/app/view/templates/editrightbar.php b/app/view/templates/editrightbar.php index 92d5f81..a6cc2a0 100644 --- a/app/view/templates/editrightbar.php +++ b/app/view/templates/editrightbar.php @@ -7,7 +7,7 @@ - + -
- -
-
+ + - + - + βœ– delete - πŸ‘ - ΒΆ + 🏠 + πŸ‘ + ΒΆ id() ?> diff --git a/app/view/templates/home.php b/app/view/templates/home.php index 2303f0f..5c3a007 100644 --- a/app/view/templates/home.php +++ b/app/view/templates/home.php @@ -1,4 +1,4 @@ -layout('layout', ['title' => 'home']) ?> +layout('layout', ['title' => 'home', 'css' => $css . 'home.css']) ?> @@ -80,10 +80,10 @@ - ✏ - πŸ‘ - πŸ—‘ - ΒΆ + ✏ + πŸ‘ + πŸ—‘ + ΒΆ tag('sort') ?> description() ?> linkto('sort') ?> diff --git a/app/view/templates/layout.php b/app/view/templates/layout.php index 7439f48..c20264d 100644 --- a/app/view/templates/layout.php +++ b/app/view/templates/layout.php @@ -6,7 +6,7 @@ <?= $title ?> - + section('customhead')?> section('arthead')?> diff --git a/app/view/templates/navart.php b/app/view/templates/navart.php index 6f4388c..f747eca 100644 --- a/app/view/templates/navart.php +++ b/app/view/templates/navart.php @@ -53,10 +53,10 @@ div#dropmenu { canedit() && $artexist) { ?>
  • - display + display
  • - edit + edit
  • diff --git a/app/view/templates/read.php b/app/view/templates/read.php index 35b1e7d..1911cf6 100644 --- a/app/view/templates/read.php +++ b/app/view/templates/read.php @@ -53,8 +53,10 @@ $this->stop(); } else { echo '

    ' . $alertnotexist . '

    '; if ($cancreate) { - $this->insert('readcreate', ['id' => $art->id()]); - } + ?> + ⭐ Create + - - - -
    \ No newline at end of file -- cgit v1.2.3