{{if $club = $album->category()->club()}} {{if settings.clubs and settings.clubs_header == 'full'}} {template="header" app="core" group="clubs" params="$club, $album->category()"} {{endif}}
{{endif}}

{{if $album->asItem()->hidden() === 1}} {{elseif $album->asItem()->hidden() === -1}} {{elseif $album->asItem()->hidden() === -2}} {{endif}} {{if $album->asItem()->mapped('featured')}} {{endif}} {{if $album->asItem()->canEdit()}} {{if $album->asItem()->locked()}} {{endif}} {$album->_title} {{else}} {{if $album->asItem()->locked()}} {{endif}}{$album->_title} {{endif}}

{{if $album->coverPhoto('masked')}}
{$album->name}
{{endif}} {{if $album->description}} {{$truncateAttributes = array('data-ipsTruncate', 'data-ipsTruncate-size="10 lines"');}} {template="richText" group="global" app="core" location="global" params="$album->description, array('ipsType_medium'), array(), $truncateAttributes"} {{endif}} {{if $album->type === \IPS\gallery\Album::AUTH_TYPE_PRIVATE}} {lang="album_private_badge"} {{elseif $album->type === \IPS\gallery\Album::AUTH_TYPE_RESTRICTED}} {lang="album_friend_only_badge"} {{endif}}
    {{if !isset( \IPS\Request::i()->tab ) || \IPS\Request::i()->tab !== 'node_gallery_gallery'}}
  • {lang="album_created_by"} {$album->owner()->link()|raw}
  • {{endif}} {{if $album->last_img_date}}
  • {lang="updated"} {datetime="$album->last_img_date"}
  • {{endif}}
  • {lang="num_images" pluralize="$album->count_imgs"}
  • {{if $album->use_comments && $album->comments > 0}}
  • {lang="gallery_album_num_comments_lc" pluralize="$album->comments"}
  • {{endif}} {{if $album->allow_comments && $album->count_comments > 0}}
  • {lang="gallery_image_comments_s" pluralize="$album->count_comments"}
  • {{endif}} {{if $album->use_reviews && $album->reviews > 0}}
  • {lang="gallery_album_num_reviews_lc" pluralize="$album->reviews"}
  • {{endif}}
{{if \IPS\IPS::classUsesTrait( $album->asItem(), 'IPS\Content\Reactable' ) and settings.reputation_enabled}} {template="reputation" app="core" group="global" params="$album->asItem()"} {{endif}}
{{if $album->canDelete() || $album->asItem()->canEdit() || $album->asItem()->canOnMessage( 'add' ) || $album->asItem()->canFeature() || $album->asItem()->canUnfeature() || $album->asItem()->canHide() || $album->asItem()->canUnhide() || $album->asItem()->canMove() || $album->asItem()->canLock() || $album->asItem()->canUnlock() || $album->asItem()->canReportOrRevoke() === TRUE}}
{{endif}} {{if \count( $album->_event )}}

{lang="events_in_album" pluralize="\count( $album->_event )"}

{template="eventBlocks" group="view" app="calendar" params="$album->_event"}
{{endif}}
{template="contentItemMessages" group="global" app="core" params="$album->asItem()->getMessages(), $album->asItem()"} {{if $album->can('add')}}
    {template="categoryButtons" group="browse" params="$album->can('add'), $album->category(), $album"}
{{endif}}
{$table|raw}
{{if $commentsAndReviews}} {{if ( $album->asItem()->use_reviews && $album->asItem()->container()->allow_reviews ) && ( $album->asItem()->use_comments && $album->asItem()->container()->allow_comments ) }}

{lang="user_feedback"}

{{endif}}
{{if (!( $album->asItem()->use_reviews && $album->asItem()->container()->allow_reviews ) && ( $album->asItem()->use_comments && $album->asItem()->container()->allow_comments )) OR (( $album->asItem()->use_reviews && $album->asItem()->container()->allow_reviews ) && !( $album->asItem()->use_comments && $album->asItem()->container()->allow_comments )) }}
{$commentsAndReviews|raw}
{{else}} {$commentsAndReviews|raw} {{endif}}
{{endif}}
{{if $album->category()->club()}}
{{endif}}