public static function parse($raw) { $compiler = new XenForo_Template_Compiler(sprintf('<xen:if is="%s">%s</xen:if>', $raw, md5($raw))); $compiler->addFunctionHandler('helper', new WidgetFramework_Helper_Conditional_Function_Helper()); $parsed = $compiler->lexAndParse(); $compiler->setFollowExternal(false); $parsed = $compiler->compileParsed($parsed, __CLASS__, 0, 0); return $parsed; }