From b28f1a4a516f93044c632b254670dd21f52e625c Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Wed, 29 Jan 2020 20:34:08 +0100 Subject: new feature : colored tags --- app/view/templates/admin.php | 2 +- app/view/templates/arthead.php | 6 ------ app/view/templates/confirmdelete.php | 2 +- app/view/templates/connect.php | 2 +- app/view/templates/edit.php | 2 +- app/view/templates/font.php | 2 +- app/view/templates/home.php | 2 +- app/view/templates/homeopt.php | 4 ++-- app/view/templates/info.php | 2 +- app/view/templates/layout.php | 6 +++++- app/view/templates/media.php | 2 +- app/view/templates/timeline.php | 2 +- app/view/templates/user.php | 2 +- 13 files changed, 17 insertions(+), 19 deletions(-) delete mode 100644 app/view/templates/arthead.php (limited to 'app/view/templates') diff --git a/app/view/templates/admin.php b/app/view/templates/admin.php index c201d90..f7d25b3 100644 --- a/app/view/templates/admin.php +++ b/app/view/templates/admin.php @@ -1,4 +1,4 @@ -layout('layout', ['title' => 'admin', 'css' => $css . 'home.css']) ?> +layout('layout', ['title' => 'admin', 'stylesheets' => [$css . 'home.css']]) ?> start('page') ?> diff --git a/app/view/templates/arthead.php b/app/view/templates/arthead.php deleted file mode 100644 index b137c7f..0000000 --- a/app/view/templates/arthead.php +++ /dev/null @@ -1,6 +0,0 @@ - - - -<?= $title ?> - - \ No newline at end of file diff --git a/app/view/templates/confirmdelete.php b/app/view/templates/confirmdelete.php index 133f32b..24de454 100644 --- a/app/view/templates/confirmdelete.php +++ b/app/view/templates/confirmdelete.php @@ -1,4 +1,4 @@ -layout('layout', ['title' => 'delete', 'description' => 'delete', 'css' => $css . 'delete.css']) ?> +layout('layout', ['title' => 'delete', 'description' => 'delete', 'stylesheets' => [$css . 'home.css']]) ?> start('page') ?> diff --git a/app/view/templates/connect.php b/app/view/templates/connect.php index dca4303..e21b360 100644 --- a/app/view/templates/connect.php +++ b/app/view/templates/connect.php @@ -1,4 +1,4 @@ -layout('layout', ['title' => 'Connect', 'description' => 'connect', 'css' => $css . 'connect.css']) ?> +layout('layout', ['title' => 'Connect', 'description' => 'connect', 'stylesheets' => [$css . 'home.css']]) ?> diff --git a/app/view/templates/edit.php b/app/view/templates/edit.php index 5507583..d0125f2 100644 --- a/app/view/templates/edit.php +++ b/app/view/templates/edit.php @@ -1,4 +1,4 @@ -layout('layout', ['title' => '✏ '.$page->title(), 'css' => $css . 'edit.css', 'favicon' => $page->favicon()]) ?> +layout('layout', ['title' => '✏ '.$page->title(), 'stylesheets' => [$css . 'edit.css'], 'favicon' => $page->favicon()]) ?> diff --git a/app/view/templates/font.php b/app/view/templates/font.php index 8fcf149..cf6d309 100644 --- a/app/view/templates/font.php +++ b/app/view/templates/font.php @@ -1,4 +1,4 @@ -layout('layout', ['title' => 'font', 'css' => $css . 'home.css']) ?> +layout('layout', ['title' => 'font', 'stylesheets' => [$css . 'home.css']]) ?> start('page') ?> diff --git a/app/view/templates/home.php b/app/view/templates/home.php index 9c71b53..0c1cc86 100644 --- a/app/view/templates/home.php +++ b/app/view/templates/home.php @@ -1,4 +1,4 @@ -layout('layout', ['title' => 'home', 'css' => $css . 'home.css', 'favicon' => '']) ?> +layout('layout', ['title' => 'home', 'stylesheets' => [$css . 'home.css', $css . 'tagcolors.css'], 'favicon' => '']) ?> diff --git a/app/view/templates/homeopt.php b/app/view/templates/homeopt.php index 7f42c8e..05f8d27 100644 --- a/app/view/templates/homeopt.php +++ b/app/view/templates/homeopt.php @@ -63,9 +63,9 @@ if (in_array($tagfilter, $opt->tagfilter())) { - echo '
  • '; + echo '
  • '; } else { - echo '
  • '; + echo '
  • '; } } if ($in = true || $out = true) { diff --git a/app/view/templates/info.php b/app/view/templates/info.php index 9a5357e..a5a5213 100644 --- a/app/view/templates/info.php +++ b/app/view/templates/info.php @@ -1,4 +1,4 @@ -layout('layout', ['title' => 'info', 'css' => $css . 'home.css']) ?> +layout('layout', ['title' => 'info', 'stylesheets' => [$css . 'home.css']]) ?> start('page') ?> diff --git a/app/view/templates/layout.php b/app/view/templates/layout.php index 9259fda..b255738 100644 --- a/app/view/templates/layout.php +++ b/app/view/templates/layout.php @@ -12,7 +12,11 @@ <?= $title ?> - + + + + + '; diff --git a/app/view/templates/media.php b/app/view/templates/media.php index ba385cb..7e20f48 100644 --- a/app/view/templates/media.php +++ b/app/view/templates/media.php @@ -2,7 +2,7 @@ use Wcms\Model; -$this->layout('layout', ['title' => 'media', 'css' => $css . 'home.css']) ?> +$this->layout('layout', ['title' => 'media', 'stylesheets' => [$css . 'home.css']]) ?> start('page') ?> diff --git a/app/view/templates/timeline.php b/app/view/templates/timeline.php index 2db861c..f06180e 100644 --- a/app/view/templates/timeline.php +++ b/app/view/templates/timeline.php @@ -1,4 +1,4 @@ -layout('layout', ['title' => 'timeline', 'css' => $css . 'home.css', 'favicon' => '']) ?> +layout('layout', ['title' => 'timeline', 'stylesheets' => [$css . 'home.css'], 'favicon' => '']) ?> diff --git a/app/view/templates/user.php b/app/view/templates/user.php index f281c93..f7b2b25 100644 --- a/app/view/templates/user.php +++ b/app/view/templates/user.php @@ -1,4 +1,4 @@ -layout('layout', ['title' => 'user', 'css' => $css . 'home.css']) ?> +layout('layout', ['title' => 'user', 'stylesheets' => [$css . 'home.css']]) ?> start('page') ?> -- cgit v1.2.3