... |
... |
@@ -93,26 +93,4 @@ |
93 |
93 |
|
94 |
94 |
== Images and Videos == |
95 |
95 |
|
96 |
|
-{{velocity}} |
97 |
|
-#set($attachments = $doc.getAttachmentList()) |
98 |
|
-#if($attachments.size() > 0) |
99 |
|
-<div style="display: flex; flex-wrap: wrap; gap: 10px;"> |
100 |
|
-#foreach($attachment in $attachments) |
101 |
|
- #set($filename = $attachment.getFilename()) |
102 |
|
- #set($ext = $stringtool.substringAfterLast($filename, ".")) |
103 |
|
- #if($ext.equalsIgnoreCase("jpg") || $ext.equalsIgnoreCase("jpeg") || $ext.equalsIgnoreCase("png") || $ext.equalsIgnoreCase("webp")) |
104 |
|
- <div style="flex: 1 1 300px; max-width: 300px;"> |
105 |
|
- <img src="$xwiki.getDocument($doc.fullName).getAttachmentURL($filename, true)" |
106 |
|
- alt="$filename" |
107 |
|
- style="max-width: 100%; height: auto; border: 1px solid #444;"/> |
108 |
|
- </div> |
109 |
|
- #end |
110 |
|
-#end |
111 |
|
-</div> |
112 |
|
-#end |
113 |
|
-{{/velocity}} |
114 |
|
- |
115 |
|
- |
116 |
|
- |
117 |
|
- |
118 |
118 |
{{putFootnotes/}} |