_sUnitClassWithCover .= ' bx-base-groups-unit-with-cover'; $this->_sUnitClass = $this->_sUnitClassWithCover; $this->_sUnitClassWoInfo .= ' bx-base-groups-unit-wo-info'; } function unitVars ($aData, $isCheckPrivateContent = true, $sTemplateName = 'unit.html') { $aVars = parent::unitVars ($aData, $isCheckPrivateContent, $sTemplateName); $CNF = &$this->_oConfig->CNF; $oProfile = BxDolProfile::getInstance($aData[$CNF['FIELD_AUTHOR']]); if (!$oProfile) $oProfile = BxDolProfileUndefined::getInstance(); $aVars['title'] = (boolean)$aVars['public'] ? bx_process_output($aData[$CNF['FIELD_NAME']]) : _t($CNF['T']['txt_private_group']); $aVars['author'] = $oProfile->getDisplayName(); $aVars['author_url'] = $oProfile->getUrl(); $aVars['author_icon'] = $oProfile->getIcon(); $aVars['author_thumb'] = $oProfile->getThumb(); $aVars['author_avatar'] = $oProfile->getAvatar(); return $aVars; } } /** @} */