5e6108be274bb2ebaaecc6926b75f2038a78916f
[GitHub/WoltLab/WCF.git] /
1 <?php
2 namespace wcf\system\template\plugin;
3 use wcf\system\html\simple\HtmlSimpleParser;
4 use wcf\system\template\TemplateScriptingCompiler;
5
6 /**
7 * Template prefiler plugin that replaces simple embedded object placeholders. Not to be meant for
8 * regular use, is currently only utilized in `wcf\data\page\content\PageContent::getParsedTemplate()`.
9 *
10 * @author Alexander Ebert
11 * @copyright 2001-2016 WoltLab GmbH
12 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
13 * @package WoltLabSuite\Core\System\Template\Plugin
14 * @since 3.0
15 */
16 class SimpleEmbeddedObjectPrefilterTemplatePlugin implements IPrefilterTemplatePlugin {
17 /**
18 * @inheritDoc
19 */
20 public function execute($templateName, $sourceContent, TemplateScriptingCompiler $compiler) {
21 return HtmlSimpleParser::getInstance()->parseTemplate($sourceContent);
22 }
23 }