Made quite a few changes so that the code works in the server
[vanilla-miry.git] / themes / search_results_comments.php
blobb6f1f2a1585d292c7be5e2af624c756b4f99493d
1 <?php
2 // Note: This file is included from the library/Vanilla/Vanilla.Control.SearchForm.php class.
4 $CommentList .= '<li class="SearchComment'.($Alternate ? ' Alternate' : '').'">
5 <ul>
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>
9 </li>
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>
13 </li>
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>
17 </li>
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>
21 </li>
22 <li class="CommentAdded">
23 <span>'.$this->Context->GetDefinition('Added').'</span>
24 '.TimeDiff($this->Context, $Comment->DateCreated,mktime()).'
25 </li>';
26 $this->DelegateParameters['Comment'] = &$Comment;
27 $this->DelegateParameters['CommentList'] = &$CommentList;
28 $this->CallDelegate('PostCommentOptionsRender');
30 $CommentList .= '
31 </ul>
32 </li>