From: Hypolite Petovan Date: Sun, 8 Oct 2023 14:28:17 +0000 (-0400) Subject: Add caption to described images without a preview X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2eab25e7c14588df5438fbaa4447d54c1a9c6b7e;p=friendica.git Add caption to described images without a preview --- diff --git a/view/templates/content/image/single.tpl b/view/templates/content/image/single.tpl index b3dfb74139..ea19c48a59 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 1d70194bef..60b4669e3e 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}}