{{if isset( $itemClass::$databaseColumnMap['num_comments'] ) and isset( $itemData[ $itemClass::$databasePrefix . $itemClass::$databaseColumnMap['num_comments'] ] )}}
{{$commentCount = $itemData[ $itemClass::$databasePrefix . $itemClass::$databaseColumnMap['num_comments'] ];}}
{{if $itemClass::$firstCommentRequired}}
{{else}}
{{endif}}
{{endif}}
{{if isset( $indexData['index_prefix'] )}}
{template="prefix" group="global" app="core" params="rawurlencode($indexData['index_prefix']), $indexData['index_prefix']"}
{{endif}}
{$itemData[ $itemClass::$databasePrefix . $itemClass::$databaseColumnMap['title'] ]}
{{if $indexData['index_hidden']}}
{{if $indexData['index_hidden'] === -1}}
{{elseif $indexData['index_hidden'] === 1}}
{{endif}}
{{endif}}
{template="searchResultSnippet" app="core" location="front" group="system" params="$indexData"}
{{if \IPS\IPS::classUsesTrait( $indexData['index_class'], 'IPS\Content\Reactable' ) and settings.reputation_enabled and \count( $reactions )}}
{{if \in_array( 'IPS\Content\Review', class_parents( $indexData['index_class'] ) )}}
{template="searchReaction" group="search" app="core" params="$reactions, $itemUrl->setQueryString('do', 'showReactionsReview')->setQueryString('review', $indexData['index_object_id']), $repCount"}
{{else}}
{template="searchReaction" group="search" app="core" params="$reactions, $itemUrl->setQueryString('do', 'showReactionsComment')->setQueryString('comment', $indexData['index_object_id']), $repCount"}
{{endif}}
{{endif}}
{{if isset( $indexData['index_tags'] )}}
{template="tags" group="global" app="core" params="explode( ',', $indexData['index_tags'] ), true, true"}
{{endif}}