2 // Note: This file is included from the library/Vanilla/Vanilla.Control.SearchForm.php class.
4 $CommentList .= '<li class="SearchComment'.($Alternate ?
' Alternate' : '').'">
6 <li class="DiscussionTopic">
7 <span>'.$this->Context
->GetDefinition('DiscussionTopic').'</span>
8 <a href="'.GetUrl($this->Context
->Configuration
, 'comments.php', '', 'DiscussionID', $Comment->DiscussionID
, '', '', CleanupString($Comment->Discussion
) .'/').'">'.$Comment->Discussion
.'</a>
10 <li class="CommentText">
11 <span>'.$this->Context
->GetDefinition('Comment').'</span>
12 <a href="'.GetUrl($this->Context
->Configuration
, 'comments.php', '', 'DiscussionID', $Comment->DiscussionID
, '', 'Focus='.$Comment->CommentID
.'#Comment_'.$Comment->CommentID
, CleanupString($Comment->Discussion
) .'/').'">'.HighlightTrimmedString($Comment->Body
, $HighlightWords, 300).'</a>
14 <li class="DiscussionCategory">
15 <span>'.$this->Context
->GetDefinition('Category').'</span>
16 <a href="'.GetUrl($this->Context
->Configuration
, 'index.php', '', 'CategoryID', $Comment->CategoryID
).'">'.$Comment->Category
.'</a>
18 <li class="CommentAuthor">
19 <span>'.$this->Context
->GetDefinition('WrittenBy').'</span>
20 <a href="'.GetUrl($this->Context
->Configuration
, 'account.php', '', 'u', $Comment->AuthUserID
).'">'.$Comment->AuthUsername
.'</a>
22 <li class="CommentAdded">
23 <span>'.$this->Context
->GetDefinition('Added').'</span>
24 '.TimeDiff($this->Context
, $Comment->DateCreated
,mktime()).'
26 $this->DelegateParameters
['Comment'] = &$Comment;
27 $this->DelegateParameters
['CommentList'] = &$CommentList;
28 $this->CallDelegate('PostCommentOptionsRender');