Ejemplo n.º 1
0
 public static function renderSectionThreadFinalize(array &$params, $templateFactory)
 {
     $threadsPrepared = array();
     $userNameChars = XenForo_Template_Helper_Core::styleProperty('VietXfAdvStats_ThreadInfoUserNameChars');
     foreach ($params['threads'] as $thread) {
         if ($userNameChars > 0) {
             $thread['username'] = XenForo_Template_Helper_Core::helperWordTrim($thread['username'], $userNameChars);
             // TODO: use XenForo_Helper_String::wholeWordTrim directly?
         }
         $childTemplateParams = array('thread' => $thread);
         $threadsPrepared[] = self::_createTemplateFromTemplateFactory($templateFactory, $params['childTemplate'], $childTemplateParams);
     }
     $params['threadsPrepared'] = $threadsPrepared;
 }