protected function _loadTemplateFilePath($templateName) { if ($this->_usingTemplateFiles() and preg_match('#^__(?<name>.+)_(?<style>\\d+)_(?<language>\\d+)$#', $templateName, $matches)) { return XenForo_Template_FileHandler::get($matches['name'], $matches['style'], $matches['language']); } else { return ''; } }
protected function _loadTemplateFilePath($templateName) { if ($this->_usingTemplateFiles() and preg_match('#^__(.+)_(\\d+)$#', $templateName, $matches)) { $templateName = $matches[1]; $styleId = XenForo_Application::getOptions()->get('defaultStyleId'); $languageId = $matches[2]; return XenForo_Template_FileHandler::get($templateName, $styleId, $languageId); } else { return ''; } }
/** * Loads the file path where a template is located in the file system, if * templates are being stored in the file system. * * @param string Template name * * @param string Empty string (not using file system) or file path */ protected function _loadTemplateFilePath($templateName) { if ($this->_usingTemplateFiles()) { return XenForo_Template_FileHandler::get($templateName, self::$_styleId, self::$_languageId); } else { return ''; } }