{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 )}}
{{foreach $images as $albumImage}}
-
{{endforeach}}
{{if $albumNode->count_imgs > 4}}
-
{{endif}}
{{endif}}
{{if $desc = $albumItem->truncated(TRUE)}}
{$desc|raw}
{{endif}}
{template="embedItemStats" group="embed" app="core" params="$albumItem, $albumNode->use_comments"}