<?php

// Note: This file is included from the library/Vanilla/Vanilla.Control.SearchForm.php class.
$CommentList .= '<li class="SearchComment' . ($Alternate ? ' Alternate' : '') . '">
	<ul>
		<li class="DiscussionTopic">
			<span>' . $this->Context->GetDefinition('DiscussionTopic') . '</span>
			<a href="' . GetUrl($this->Context->Configuration, 'comments.php', '', 'DiscussionID', $Comment->DiscussionID, '', '', CleanupString($Comment->Discussion) . '/') . '">' . $Comment->Discussion . '</a>
		</li>
		<li class="CommentText">
			<span>' . $this->Context->GetDefinition('Comment') . '</span>
			<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>
		</li>
		<li class="DiscussionCategory">
			<span>' . $this->Context->GetDefinition('Category') . '</span>
			<a href="' . GetUrl($this->Context->Configuration, 'index.php', '', 'CategoryID', $Comment->CategoryID) . '">' . $Comment->Category . '</a>
		</li>
		<li class="CommentAuthor">
			<span>' . $this->Context->GetDefinition('WrittenBy') . '</span>
			<a href="' . GetUrl($this->Context->Configuration, 'account.php', '', 'u', $Comment->AuthUserID) . '">' . $Comment->AuthUsername . '</a>
		</li>
		<li class="CommentAdded">
			<span>' . $this->Context->GetDefinition('Added') . '</span>
			' . TimeDiff($this->Context, $Comment->DateCreated, mktime()) . '
		</li>';
$this->DelegateParameters['Comment'] =& $Comment;
$this->DelegateParameters['CommentList'] =& $CommentList;
$this->CallDelegate('PostCommentOptionsRender');
$CommentList .= '
	</ul>
</li>
function GetCommentResult(&$Context, $Comment, $HighlightWords, $FirstRow = "0")
{
    return "<dl class=\"SearchComment " . $Comment->Status . ($FirstRow ? " FirstComment" : "") . "\">\r\n\t\t<dt class=\"DataItemLabel DiscussionTopicLabel SearchCommentTopicLabel\">" . $Context->GetDefinition("DiscussionTopic") . "</dt>\r\n\t\t<dd class=\"DataItem DiscussionTopic SearchCommentTopic\"><a href=\"comments.php?DiscussionID=" . $Comment->DiscussionID . "\">" . $Comment->Discussion . "</a></dd>\r\n\t\t<dt class=\"ExtendedMetaItemLabel SearchCommentBodyLabel\">" . $Context->GetDefinition("Comment") . "</dt>\r\n\t\t<dd class=\"ExtendedMetaItem SearchCommentBody\"><a href=\"./comments.php?DiscussionID=" . $Comment->DiscussionID . "&Focus=" . $Comment->CommentID . "#Comment_" . $Comment->CommentID . "\">" . HighlightTrimmedString($Comment->Body, $HighlightWords, 300) . "</a></dd>\r\n\t\t<dt class=\"MetaItemLabel SearchCommentInformationLabel SearchCommentCategoryLabel\">" . $Context->GetDefinition("Category") . "</dt>\r\n\t\t<dd class=\"MetaItem SearchCommentInformation SearchCommentCategory\"><a href=\"./?CategoryID=" . $Comment->CategoryID . "\">" . $Comment->Category . "</a></dd>\r\n\t\t<dt class=\"MetaItemLabel SearchCommentInformationLabel SearchCommentAuthorLabel\">" . $Context->GetDefinition("WrittenBy") . "</dt>\r\n\t\t<dd class=\"MetaItem SearchCommentInformation SearchCommentAuthor\"><a href=\"./account.php?u=" . $Comment->AuthUserID . "\">" . $Comment->AuthUsername . "</a></dd>\r\n\t\t<dt class=\"MetaItemLabel SearchCommentInformationLabel SearchCommentTimeLabel\">" . $Context->GetDefinition("Added") . "</dt>\r\n\t\t<dd class=\"MetaItem SearchCommentInformation SearchCommentTime\">" . TimeDiff($Comment->DateCreated, mktime()) . "</dd>\r\n\t</dl>\n";
}