From 2eab25e7c14588df5438fbaa4447d54c1a9c6b7e Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 8 Oct 2023 10:28:17 -0400 Subject: [PATCH] Add caption to described images without a preview --- view/templates/content/image/single.tpl | 7 ++++++- .../content/image/single_with_height_allocation.tpl | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/view/templates/content/image/single.tpl b/view/templates/content/image/single.tpl index b3dfb7413..ea19c48a5 100644 --- a/view/templates/content/image/single.tpl +++ b/view/templates/content/image/single.tpl @@ -1,5 +1,10 @@ {{if $image->preview}} {{$image->description}} {{else}} -{{$image->description}} +
+ {{$image->description}} + {{if $image->description}} +
{{$image->description}}
+ {{/if}} +
{{/if}} diff --git a/view/templates/content/image/single_with_height_allocation.tpl b/view/templates/content/image/single_with_height_allocation.tpl index 1d70194be..60b4669e3 100644 --- a/view/templates/content/image/single_with_height_allocation.tpl +++ b/view/templates/content/image/single_with_height_allocation.tpl @@ -12,6 +12,9 @@ {{else}} {{$image->description}} + {{if $image->description}} +
{{$image->description}}
+ {{/if}} {{/if}}