... |
... |
@@ -94,29 +94,15 @@ |
94 |
94 |
== Images and Videos == |
95 |
95 |
|
96 |
96 |
{{velocity}} |
97 |
|
-#panelheader('Gallery') |
98 |
|
- |
99 |
99 |
#set($attachments = $doc.getAttachmentList()) |
100 |
|
-#set($imageCount = 0) |
101 |
101 |
|
|
99 |
+{{gallery}} |
102 |
102 |
#foreach($attachment in $attachments) |
103 |
103 |
#if($attachment.filename.endsWith(".jpg") || $attachment.filename.endsWith(".png") || $attachment.filename.endsWith(".webp")) |
104 |
|
- #set($imageCount = $imageCount + 1) |
|
102 |
+ image:$attachment.filename |
105 |
105 |
#end |
106 |
106 |
#end |
107 |
|
- |
108 |
|
-#if($imageCount > 0) |
109 |
|
- {{gallery}} |
110 |
|
- #foreach($attachment in $attachments) |
111 |
|
- #if($attachment.filename.endsWith(".jpg") || $attachment.filename.endsWith(".png") || $attachment.filename.endsWith(".webp")) |
112 |
|
- image:$attachment.filename |
113 |
|
- #end |
114 |
|
- #end |
115 |
|
- {{/gallery}} |
116 |
|
-#end |
117 |
|
- |
118 |
|
-#panelfooter() |
|
105 |
+{{/gallery}} |
119 |
119 |
{{/velocity}} |
120 |
120 |
|
121 |
|
- |
122 |
122 |
{{putFootnotes/}} |