{template="embedHeader" group="embed" app="core" params="$comment, $item->mapped('title'), $comment->mapped('date'), $url"}
{{if $item->asNode()->coverPhoto('small')}}
{{endif}}
{{$images = \IPS\Gallery\Image::getItemsWithPermission( array( array( 'image_album_id=?', $item->asNode()->id ) ), ( $item->asNode()->sort_options == 'title' ) ? 'image_caption ASC' : \IPS\gallery\Image::$databasePrefix . \IPS\gallery\Image::$databaseColumnMap[ $item->asNode()->sort_options ] . ' DESC', 19 );}}
{{if \count( $images )}}
{{foreach $images as $albumImage}}
-
{{endforeach}}
{{if $item->asNode()->count_imgs > 19}}
-
{{endif}}
{{endif}}
{template="embedOriginalItem" group="embed" app="core" params="$item"}
{$comment->truncated(TRUE)|raw}
{{if settings.reputation_enabled and \IPS\IPS::classUsesTrait( $comment, 'IPS\Content\Reactable' ) and \count( $comment->reactions() )}}
-
{template="reactionOverview" app="core" group="global" params="$comment, TRUE, 'small'"}
{{endif}}