function fillTopicInfo($matches) { switch ($matches[1]) { case 'ROW': return $matches[2] . $this->row() . ($this->topic->ordering ? " {$matches[2]}sticky" : ''); case 'TOPIC_ICON': return $this->topic->getIcon(); case 'DATE': $date = new KunenaDate($matches[2]); return $date->toSpan('config_post_dateformat', 'config_post_dateformat_hover'); } }
function fillMessageInfo($matches) { switch ($matches[1]) { case 'ROW': return $this->mmm & 1 ? 'odd' : 'even'; case 'DATE': $date = new KunenaDate($matches[2]); return $date->toSpan('config_post_dateformat', 'config_post_dateformat_hover'); case 'NEW': return $this->message->isNew() ? 'new' : 'old'; case 'REPLYNO': return $this->replynum; case 'MESSAGE_PROFILE': return $this->getMessageProfileBox(); case 'MESSAGE_ACTIONS': return $this->getMessageActions(); } }
function fillTopicInfo($matches) { switch ($matches[1]) { case 'ROW': return $matches[2] . ($this->position & 1 ? 'odd' : 'even') . ($this->topic->ordering ? " {$matches[2]}sticky" : ''); case 'TOPIC_ICON': return $this->topic->getIcon(); case 'TOPIC_NEW_COUNT': return $this->topic->unread ? $this->getTopicLink($this->topic, 'unread', '<sup class="kindicator-new">(' . $this->topic->unread . ' ' . JText::_('COM_KUNENA_A_GEN_NEWCHAR') . ')</sup>') : ''; case 'DATE': $date = new KunenaDate($matches[2]); return $date->toSpan('config_post_dateformat', 'config_post_dateformat_hover'); } }