/** * @see \wcf\system\template\ICompilerTemplatePlugin::executeEnd() */ public function executeEnd(TemplateScriptingCompiler $compiler) { $compiler->popTag('implode'); $tagArgs = array_pop($this->tagStack); $phpCode = "<?php\n"; $phpCode .= "if (++\$_i" . $tagArgs['hash'] . " < \$_length" . $tagArgs['hash'] . ") { echo " . $tagArgs['glue'] . "; }\n"; $phpCode .= "} ?>"; return $phpCode; }
/** * @see wcf\system\template\ICompilerTemplatePlugin::executeEnd() */ public function executeEnd(TemplateScriptingCompiler $compiler) { $compiler->popTag('lang'); return "<?php echo wcf\system\WCF::getLanguage()->getDynamicVariable(ob_get_clean(), \$this->tagStack[count(\$this->tagStack) - 1][1], (isset(\$this->tagStack[count(\$this->tagStack) - 1][1]['__optional']) ? \$this->tagStack[count(\$this->tagStack) - 1][1]['__optional'] : false)); array_pop(\$this->tagStack); ?>"; }
/** * @see wcf\system\template\ICompilerTemplatePlugin::executeEnd() */ public function executeEnd(TemplateScriptingCompiler $compiler) { $compiler->popTag('icon'); return "<?php echo wcf\\system\\style\\StyleHandler::getInstance()->getStyle()->getIconPath(ob_get_clean(), '" . $this->size . "'); ?>"; }
/** * @see wcf\system\template\ICompilerTemplatePlugin::executeEnd() */ public function executeEnd(TemplateScriptingCompiler $compiler) { $compiler->popTag('staticlang'); return "<?php echo \\wcf\\system\\WCF::getLanguage()->get(ob_get_clean()); ?>"; }