public static function template_post_render($templateName, &$content, array &$containerData, XenForo_Template_Abstract $template) { $model = XenForo_Model::create('VietXfAdvStats_Model_GetUserGroup'); if ($model->checkGroup()) { if ($templateName == 'PAGE_CONTAINER' and defined(self::POSITION_READY_FLAG) and defined(self::TEMPLATE_READY_FLAG)) { $ourTemplate = $template->create('VietXfAdvStats_wrapper', $template->getParams()); $rendered = VietXfAdvStats_Renderer::renderWrapper($ourTemplate); $content = str_replace(self::POSITION_PLACE_HOLDER, $rendered, $content); } } }