Add `mediaBBCode.tpl` ACP template
authorMatthias Schmidt <gravatronics@live.com>
Sun, 16 Sep 2018 14:13:17 +0000 (16:13 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 16 Sep 2018 14:13:17 +0000 (16:13 +0200)
Close #2605

wcfsetup/install/files/acp/templates/mediaBBCodeTag.tpl [new file with mode: 0644]

diff --git a/wcfsetup/install/files/acp/templates/mediaBBCodeTag.tpl b/wcfsetup/install/files/acp/templates/mediaBBCodeTag.tpl
new file mode 100644 (file)
index 0000000..e80ee2c
--- /dev/null
@@ -0,0 +1,11 @@
+<span class="mediaBBCode{if $float != 'none'} messageFloatObject{$float|ucfirst}{/if}">
+       {if $thumbnailSize != 'original'}
+               <a href="{$media->getLink()}" class="embeddedAttachmentLink jsImageViewer"><img src="{$media->getThumbnailLink($thumbnailSize)}" alt="{$media->altText}" title="{$media->title}" data-width="{@$media->getThumbnailWidth($thumbnailSize)}" data-height="{@$media->getThumbnailHeight($thumbnailSize)}"></a>
+       {else}
+               <img src="{$media->getLink()}" alt="{$media->altText}" title="{$media->title}" data-width="{@$media->width}" data-height="{@$media->height}">
+       {/if}
+       
+       {if $media->caption}
+               <span class="mediaBBCodeCaption">{$media->caption}</span>
+       {/if}
+</span>