<template>userOptionsCondition</template>
<template>worker</template>
<template>wysiwyg</template>
+ <template>groupBBCodeTag</template>
+ <template>__videoAttachmentBBCode</template>
+ <template>__audioAttachmentBBCode</template>
</delete>
</data>
+++ /dev/null
-<span class="mediaBBCode">
- <audio src="{$attachment->getLink()}" style="display: none;" id="attachmentAudio_{$attachmentIdentifier}" controls></audio>
-
- <span class="mediaBBCodeCaption">
- <a href="{$attachment->getLink()}">{$attachment->filename}</a>
- </span>
-</span>
-
-<script data-relocate="true">
- (function () {
- {* try to determine if browser might be able to play audio *}
- var audio = elById('attachmentAudio_{@$attachmentIdentifier}');
- var canPlayType = audio.canPlayType('{$attachment->fileType}');
-
- if (canPlayType === '') {
- elRemove(audio);
- }
- else {
- elShow(audio);
- }
- })();
-</script>
+++ /dev/null
-<span class="mediaBBCode">
- <video src="{$attachment->getLink()}" style="display: none;" id="attachmentVideo_{$attachmentIdentifier}" controls></video>
-
- <span class="mediaBBCodeCaption">
- <a href="{$attachment->getLink()}">{$attachment->filename}</a>
- </span>
-</span>
-
-<script data-relocate="true">
- (function () {
- {* try to determine if browser might be able to play video *}
- var video = elById('attachmentVideo_{@$attachmentIdentifier}');
- var canPlayType = video.canPlayType('{$attachment->fileType}');
-
- if (canPlayType === '') {
- elRemove(video);
- }
- else {
- elShow(video);
- }
- })();
-</script>
--- /dev/null
+<span class="mediaBBCode">
+ <audio src="{$attachment->getLink()}" style="display: none;" id="attachmentAudio_{$attachmentIdentifier}" controls></audio>
+
+ <span class="mediaBBCodeCaption">
+ <a href="{$attachment->getLink()}">{$attachment->filename}</a>
+ </span>
+</span>
+
+<script data-relocate="true">
+ (function () {
+ {* try to determine if browser might be able to play audio *}
+ var audio = elById('attachmentAudio_{@$attachmentIdentifier}');
+ var canPlayType = audio.canPlayType('{$attachment->fileType}');
+
+ if (canPlayType === '') {
+ elRemove(audio);
+ }
+ else {
+ elShow(audio);
+ }
+ })();
+</script>
--- /dev/null
+<span class="mediaBBCode">
+ <video src="{$attachment->getLink()}" style="display: none;" id="attachmentVideo_{$attachmentIdentifier}" controls></video>
+
+ <span class="mediaBBCodeCaption">
+ <a href="{$attachment->getLink()}">{$attachment->filename}</a>
+ </span>
+</span>
+
+<script data-relocate="true">
+ (function () {
+ {* try to determine if browser might be able to play video *}
+ var video = elById('attachmentVideo_{@$attachmentIdentifier}');
+ var canPlayType = video.canPlayType('{$attachment->fileType}');
+
+ if (canPlayType === '') {
+ elRemove(video);
+ }
+ else {
+ elShow(video);
+ }
+ })();
+</script>
private function showVideoPlayer(Attachment $attachment): string
{
- return WCF::getTPL()->fetch('__videoAttachmentBBCode', 'wcf', [
+ return WCF::getTPL()->fetch('shared_bbcode_attach_video', 'wcf', [
'attachment' => $attachment,
'attachmentIdentifier' => StringUtil::getRandomID(),
]);
private function showAudioPlayer(Attachment $attachment): string
{
- return WCF::getTPL()->fetch('__audioAttachmentBBCode', 'wcf', [
+ return WCF::getTPL()->fetch('shared_bbcode_attach_audio', 'wcf', [
'attachment' => $attachment,
'attachmentIdentifier' => StringUtil::getRandomID(),
]);