+++ /dev/null
-<article class="articleEmbeddedEntry embeddedContent" aria-labelledby="{$titleHash}_entryTitle{$article->articleID}">
- <div class="embeddedContentLink">
- <img
- class="embeddedContentImageElement"
- src="{if $article->getTeaserImage()}{$article->getTeaserImage()->getThumbnailLink('medium')}{else}{$__wcf->getStyleHandler()->getStyle()->getCoverPhotoURL()}{/if}"
- height="{if $article->getTeaserImage()}{$article->getTeaserImage()->getThumbnailHeight('medium')}{else}{$__wcf->getStyleHandler()->getStyle()->getCoverPhotoHeight()}{/if}"
- width="{if $article->getTeaserImage()}{$article->getTeaserImage()->getThumbnailWidth('medium')}{else}{$__wcf->getStyleHandler()->getStyle()->getCoverPhotoWidth()}{/if}"
- loading="lazy"
- alt="">
-
- <div class="embeddedContentCategory">{lang}wcf.article.bbcode.type{/lang}</div>
-
- <h3 class="embeddedContentTitle" id="{$titleHash}_articleTitle{$article->articleID}">
- <a href="{$article->getLink()}" class="embeddedContentTitleLink">{$article->getTitle()}</a>
- </h3>
-
- <div class="embeddedContentDescription">
- {@$article->getFormattedTeaser()}
- </div>
- </div>
-
- <div class="embeddedContentMeta">
- <div class="embeddedContentMetaImage">
- {@$article->getUserProfile()->getAvatar()->getImageTag(32)}
- </div>
-
- <div class="embeddedContentMetaContent">
- <div class="embeddedContentMetaAuthor">
- {@$article->getUserProfile()->getFormattedUsername()}
- </div>
-
- <div class="embeddedContentMetaTime">
- {time time=$article->time}
- </div>
- </div>
- </div>
-</article>
+++ /dev/null
-{if !$removeLinks|isset}{assign var='removeLinks' value=false}{/if}
-{if $float === 'center'}<p class="text-center">{/if}
-<span class="mediaBBCode{if $float != 'none'} messageFloatObject{$float|ucfirst}{/if}"{if $width !== 'auto'} style="width: {$width}px; display: inline-flex"{/if}>
- {if $media->isImage}
- {if $thumbnailSize != 'original'}
- {if !$removeLinks}
- <a href="{$mediaLink}" class="embeddedAttachmentLink jsImageViewer">
- {/if}
- <img src="{$thumbnailLink}" alt="{$media->altText}" title="{$media->title}" width="{@$media->getThumbnailWidth($thumbnailSize)}" height="{@$media->getThumbnailHeight($thumbnailSize)}" loading="lazy">
- {if !$removeLinks}
- <span class="embeddedAttachmentLinkEnlarge">
- {icon size=24 name='magnifying-glass'}
- </span>
- </a>
- {/if}
- {else}
- <img src="{$mediaLink}" alt="{$media->altText}" title="{$media->title}" width="{@$media->width}" height="{@$media->height}" loading="lazy">
- {/if}
- {elseif $media->isVideo()}
- <video src="{$mediaLink}" controls></video>
- {elseif $media->isAudio()}
- <audio src="{$mediaLink}" controls></audio>
- {/if}
-
- {if $media->caption}
- <span class="mediaBBCodeCaption">
- <span class="mediaBBCodeCaptionAlignment">
- {if $media->captionEnableHtml}
- {@$media->caption}
- {else}
- {$media->caption}
- {/if}
- </span>
- </span>
- {/if}
-</span>
-{if $float === 'center'}</p>{/if}
--- /dev/null
+<article class="articleEmbeddedEntry embeddedContent" aria-labelledby="{$titleHash}_entryTitle{$article->articleID}">
+ <div class="embeddedContentLink">
+ <img
+ class="embeddedContentImageElement"
+ src="{if $article->getTeaserImage()}{$article->getTeaserImage()->getThumbnailLink('medium')}{else}{$__wcf->getStyleHandler()->getStyle()->getCoverPhotoURL()}{/if}"
+ height="{if $article->getTeaserImage()}{$article->getTeaserImage()->getThumbnailHeight('medium')}{else}{$__wcf->getStyleHandler()->getStyle()->getCoverPhotoHeight()}{/if}"
+ width="{if $article->getTeaserImage()}{$article->getTeaserImage()->getThumbnailWidth('medium')}{else}{$__wcf->getStyleHandler()->getStyle()->getCoverPhotoWidth()}{/if}"
+ loading="lazy"
+ alt="">
+
+ <div class="embeddedContentCategory">{lang}wcf.article.bbcode.type{/lang}</div>
+
+ <h3 class="embeddedContentTitle" id="{$titleHash}_articleTitle{$article->articleID}">
+ <a href="{$article->getLink()}" class="embeddedContentTitleLink">{$article->getTitle()}</a>
+ </h3>
+
+ <div class="embeddedContentDescription">
+ {@$article->getFormattedTeaser()}
+ </div>
+ </div>
+
+ <div class="embeddedContentMeta">
+ <div class="embeddedContentMetaImage">
+ {@$article->getUserProfile()->getAvatar()->getImageTag(32)}
+ </div>
+
+ <div class="embeddedContentMetaContent">
+ <div class="embeddedContentMetaAuthor">
+ {@$article->getUserProfile()->getFormattedUsername()}
+ </div>
+
+ <div class="embeddedContentMetaTime">
+ {time time=$article->time}
+ </div>
+ </div>
+ </div>
+</article>
--- /dev/null
+{if !$removeLinks|isset}{assign var='removeLinks' value=false}{/if}
+{if $float === 'center'}<p class="text-center">{/if}
+<span class="mediaBBCode{if $float != 'none'} messageFloatObject{$float|ucfirst}{/if}"{if $width !== 'auto'} style="width: {$width}px; display: inline-flex"{/if}>
+ {if $media->isImage}
+ {if $thumbnailSize != 'original'}
+ {if !$removeLinks}
+ <a href="{$mediaLink}" class="embeddedAttachmentLink jsImageViewer">
+ {/if}
+ <img src="{$thumbnailLink}" alt="{$media->altText}" title="{$media->title}" width="{@$media->getThumbnailWidth($thumbnailSize)}" height="{@$media->getThumbnailHeight($thumbnailSize)}" loading="lazy">
+ {if !$removeLinks}
+ <span class="embeddedAttachmentLinkEnlarge">
+ {icon size=24 name='magnifying-glass'}
+ </span>
+ </a>
+ {/if}
+ {else}
+ <img src="{$mediaLink}" alt="{$media->altText}" title="{$media->title}" width="{@$media->width}" height="{@$media->height}" loading="lazy">
+ {/if}
+ {elseif $media->isVideo()}
+ <video src="{$mediaLink}" controls></video>
+ {elseif $media->isAudio()}
+ <audio src="{$mediaLink}" controls></audio>
+ {/if}
+
+ {if $media->caption}
+ <span class="mediaBBCodeCaption">
+ <span class="mediaBBCodeCaptionAlignment">
+ {if $media->captionEnableHtml}
+ {@$media->caption}
+ {else}
+ {$media->caption}
+ {/if}
+ </span>
+ </span>
+ {/if}
+</span>
+{if $float === 'center'}</p>{/if}
"aclPermissionJavaScript",
"aclSimple",
"articleAddDialog",
- "articleBBCode",
"benchmark",
"booleanOptionType",
"booleanSearchableOptionType",
"formSuccess",
"languageChooser",
"lineBreakSeparatedTextOptionType",
- "mediaBBCodeTag",
"mediaManager",
"messageFormAttachments",
"messageTableOfContents",
+++ /dev/null
-<article class="articleEmbeddedEntry embeddedContent" aria-labelledby="{$titleHash}_entryTitle{$article->articleID}">
- <div class="embeddedContentLink">
- <img
- class="embeddedContentImageElement"
- src="{if $article->getTeaserImage()}{$article->getTeaserImage()->getThumbnailLink('medium')}{else}{$__wcf->getStyleHandler()->getStyle()->getCoverPhotoURL()}{/if}"
- height="{if $article->getTeaserImage()}{$article->getTeaserImage()->getThumbnailHeight('medium')}{else}{$__wcf->getStyleHandler()->getStyle()->getCoverPhotoHeight()}{/if}"
- width="{if $article->getTeaserImage()}{$article->getTeaserImage()->getThumbnailWidth('medium')}{else}{$__wcf->getStyleHandler()->getStyle()->getCoverPhotoWidth()}{/if}"
- loading="lazy"
- alt="">
-
- <div class="embeddedContentCategory">{lang}wcf.article.bbcode.type{/lang}</div>
-
- <h3 class="embeddedContentTitle" id="{$titleHash}_articleTitle{$article->articleID}">
- <a href="{$article->getLink()}" class="embeddedContentTitleLink">{$article->getTitle()}</a>
- </h3>
-
- <div class="embeddedContentDescription">
- {@$article->getFormattedTeaser()}
- </div>
- </div>
-
- <div class="embeddedContentMeta">
- <div class="embeddedContentMetaImage">
- {@$article->getUserProfile()->getAvatar()->getImageTag(32)}
- </div>
-
- <div class="embeddedContentMetaContent">
- <div class="embeddedContentMetaAuthor">
- {@$article->getUserProfile()->getFormattedUsername()}
- </div>
-
- <div class="embeddedContentMetaTime">
- {time time=$article->time}
- </div>
- </div>
- </div>
-</article>
+++ /dev/null
-{if !$removeLinks|isset}{assign var='removeLinks' value=false}{/if}
-{if $float === 'center'}<p class="text-center">{/if}
-<span class="mediaBBCode{if $float != 'none'} messageFloatObject{$float|ucfirst}{/if}"{if $width !== 'auto'} style="width: {$width}px; display: inline-flex"{/if}>
- {if $media->isImage}
- {if $thumbnailSize != 'original'}
- {if !$removeLinks}
- <a href="{$mediaLink}" class="embeddedAttachmentLink jsImageViewer">
- {/if}
- <img src="{$thumbnailLink}" alt="{$media->altText}" title="{$media->title}" width="{@$media->getThumbnailWidth($thumbnailSize)}" height="{@$media->getThumbnailHeight($thumbnailSize)}" loading="lazy">
- {if !$removeLinks}
- <span class="embeddedAttachmentLinkEnlarge">
- {icon size=24 name='magnifying-glass'}
- </span>
- </a>
- {/if}
- {else}
- <img src="{$mediaLink}" alt="{$media->altText}" title="{$media->title}" width="{@$media->width}" height="{@$media->height}" loading="lazy">
- {/if}
- {elseif $media->isVideo()}
- <video src="{$mediaLink}" controls></video>
- {elseif $media->isAudio()}
- <audio src="{$mediaLink}" controls></audio>
- {/if}
-
- {if $media->caption}
- <span class="mediaBBCodeCaption">
- <span class="mediaBBCodeCaptionAlignment">
- {if $media->captionEnableHtml}
- {@$media->caption}
- {else}
- {$media->caption}
- {/if}
- </span>
- </span>
- {/if}
-</span>
-{if $float === 'center'}</p>{/if}
use wcf\data\article\ViewableArticle;
use wcf\system\message\embedded\object\MessageEmbeddedObjectManager;
+use wcf\system\template\SharedTemplateEngine;
use wcf\system\WCF;
use wcf\util\StringUtil;
'message' => WCF::getLanguage()->getDynamicVariable('wcf.message.content.no.permission.title')
], true);
} elseif ($parser->getOutputType() == 'text/html') {
- return WCF::getTPL()->fetch('articleBBCode', 'wcf', [
+ return SharedTemplateEngine::getInstance()->fetch('shared_articleBBCode', 'wcf', [
'article' => $article,
'articleID' => $article->articleID,
'titleHash' => \substr(StringUtil::getRandomID(), 0, 8),
use wcf\data\media\ViewableMedia;
use wcf\system\message\embedded\object\MessageEmbeddedObjectManager;
use wcf\system\request\LinkHandler;
+use wcf\system\template\SharedTemplateEngine;
use wcf\system\WCF;
use wcf\util\StringUtil;
$float = (!empty($openingTag['attributes'][2])) ? $openingTag['attributes'][2] : 'none';
$width = (!empty($openingTag['attributes'][3])) ? $openingTag['attributes'][3] : 'auto';
- return WCF::getTPL()->fetch('mediaBBCodeTag', 'wcf', [
+ return SharedTemplateEngine::getInstance()->fetch('shared_mediaBBCodeTag', 'wcf', [
'mediaLink' => $this->getLink($media),
'removeLinks' => $removeLinks,
'thumbnailLink' => $thumbnailSize !== 'original' ? $this->getThumbnailLink(
'width' => $width,
]);
} elseif ($media->isVideo() || $media->isAudio()) {
- return WCF::getTPL()->fetch('mediaBBCodeTag', 'wcf', [
+ return SharedTemplateEngine::getInstance()->fetch('shared_mediaBBCodeTag', 'wcf', [
'mediaLink' => $this->getLink($media),
'removeLinks' => $removeLinks,
'float' => 'none',