From 40ef00fee7286a186673ff3fb26b6802421b2bc4 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Thu, 30 Jan 2020 01:54:50 +0100 Subject: work on thumbnail admin --- app/view/templates/editleftbar.php | 33 ++++++++++++++++++++++++--------- 1 file changed, 24 insertions(+), 9 deletions(-) (limited to 'app/view/templates/editleftbar.php') diff --git a/app/view/templates/editleftbar.php b/app/view/templates/editleftbar.php index 8302090..a7a8be6 100644 --- a/app/view/templates/editleftbar.php +++ b/app/view/templates/editleftbar.php @@ -43,11 +43,26 @@ ?> -
- - - no-thumbnail -
+ + + + + @@ -98,10 +113,6 @@
- templateoptions()) ? 'checked' : '' ?>> - -
-
templateoptions()) ? 'checked' : '' ?>>
@@ -109,6 +120,10 @@ templateoptions()) ? 'checked' : '' ?>> +
+ templateoptions()) ? 'checked' : '' ?>> + +
templateoptions() as $option) { -- cgit v1.2.3 From eab190e895124ef643c2b0574c84f3424857eeac Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Thu, 30 Jan 2020 02:46:19 +0100 Subject: default thumbnail fix #49 --- app/view/templates/editleftbar.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'app/view/templates/editleftbar.php') diff --git a/app/view/templates/editleftbar.php b/app/view/templates/editleftbar.php index a7a8be6..cf30624 100644 --- a/app/view/templates/editleftbar.php +++ b/app/view/templates/editleftbar.php @@ -62,6 +62,12 @@ ?> + thumbnail())) { ?> +
+ +
+ + -- cgit v1.2.3 From 27f1fb9c19fa2c2fd28863809ccc6ba526499c0d Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Thu, 30 Jan 2020 03:32:31 +0100 Subject: thumbnail can be changed in multi edit --- app/view/templates/editleftbar.php | 38 ++++++++++---------------------------- 1 file changed, 10 insertions(+), 28 deletions(-) (limited to 'app/view/templates/editleftbar.php') diff --git a/app/view/templates/editleftbar.php b/app/view/templates/editleftbar.php index cf30624..3004351 100644 --- a/app/view/templates/editleftbar.php +++ b/app/view/templates/editleftbar.php @@ -52,7 +52,9 @@ --no thumbnail--'; + if(!file_exists(Wcms\Model::thumbnailpath() . $page->thumbnail())) { + echo ''; + } foreach ($thumbnaillist as $thumbnail) { ?> @@ -97,6 +99,11 @@ ?> +
+ templateoptions()) ? 'checked' : '' ?>> + +
+ - - templatecss())) { - ?>
templateoptions()) ? 'checked' : '' ?>> @@ -126,20 +129,7 @@ templateoptions()) ? 'checked' : '' ?>>
-
- templateoptions()) ? 'checked' : '' ?>> - -
- templateoptions() as $option) { - if($option != 'externaljavascript') { - echo ''; - } - } - } - - ?> + @@ -155,20 +145,12 @@ - templatejavascript())) { - ?> +
templateoptions()) ? 'checked' : '' ?>>
- templateoptions())) { - echo ''; - } - - } ?> -- cgit v1.2.3