{template="embedHeader" group="embed" app="core" params="$albumItem, $albumItem->mapped('title'), $albumItem->mapped('date'), $url"}
{{if $albumNode->coverPhoto('small')}} {{endif}} {{$images = \IPS\Gallery\Image::getItemsWithPermission( array( array( 'image_album_id=?', $albumNode->id ) ), ( $albumNode->sort_options == 'title' ) ? 'image_caption ASC' : \IPS\gallery\Image::$databasePrefix . \IPS\gallery\Image::$databaseColumnMap[ $albumNode->sort_options ] . ' DESC', 4 );}} {{if \count( $images )}} {{endif}}
{{if $desc = $albumItem->truncated(TRUE)}}
{$desc|raw}
{{endif}} {template="embedItemStats" group="embed" app="core" params="$albumItem, $albumNode->use_comments"}