category()->club()}}
{{if settings.clubs and settings.clubs_header == 'full'}}
{template="header" app="core" group="clubs" params="$club, $album->category()"}
{{endif}}
{{endif}}
{{if $album->coverPhoto('medium')}}
{{endif}}
{{if $album->type === 2}}
{lang="album_private_badge"}
{{elseif $album->type === 3}}
{lang="album_friend_only_badge"}
{{endif}}
{template="userPhoto" group="global" app="core" params="\IPS\Member::load( $album->owner_id ), 'tiny'"}
{lang="album_created_by"}
{expression="\IPS\Member::load( $album->owner_id )->name"}
{{if $album->description}}
{$album->description|raw}
{{endif}}
{lang="num_images" pluralize="$album->count_imgs"}
{{if $album->use_comments}}
{lang="num_comments" pluralize="$album->comments"}
{{endif}}
{{if $album->allow_comments}}
{lang="gallery_image_comments_s" pluralize="$album->count_comments"}
{{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->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()->canReport()}}
{{if $album->canDelete() || $album->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()}}
{lang="manage_album"}
{{endif}}
{{if $album->asItem()->canReport()}}
{lang="report_album"}
{{endif}}
{{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')}}
{{endif}}
{$table|raw}
{{if $album->asItem()->shareLinks()}}
{template="sharelinks" app="core" group="global" params="$album->asItem()"}
{{endif}}
{{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}}
{$commentsAndReviews|raw}
{{endif}}
{{if $album->can('add')}}
{{endif}}
{template="follow" app="core" group="global" params="'gallery', 'album', $album->_id, $followerCount"}
{template="promote" app="core" group="global" params="$album"}
{{if $album->category()->club()}}
{{endif}}
]]>
isLastPage()}}data-lastPage{{endif}} data-feedID='image-{$album->id}' id='comments'>
{lang="num_comments_uc" pluralize="$album->comments"}
{{if $album->commentPageCount() > 1}}
{$album->commentPagination( array('tab') )|raw}
{{endif}}
{{if count( $album->comments( NULL, NULL, 'date', 'asc', NULL, NULL, NULL, NULL, FALSE, isset( \IPS\Request::i()->showDeleted ) ) )}}
{{else}}
{lang="no_comments"}
{{endif}}
{{if $album->commentPageCount() > 1}}
{$album->commentPagination( array('tab') )|raw}
{{endif}}
{{if $album->commentForm() || $album->locked() || \IPS\Member::loggedIn()->restrict_post || \IPS\Member::loggedIn()->members_bitoptions['unacknowledged_warnings']}}
{{endif}}
]]>
url()}' {{if $album->isLastPage('reviews')}}data-lastPage{{endif}} data-feedID='image-{$album->id}-reviews' id='reviews'>
{{if $album->reviewForm()}}
{$album->reviewForm()|raw}
{{else}}
{{if $album->hasReviewed()}}
{{elseif \IPS\Member::loggedin()->restrict_post}}
{{if \IPS\Member::loggedIn()->restrict_post == -1}}
{template="reviewUnavailable" group="forms" location="front" app="core" params="'restricted_cannot_comment'"}
{{else}}
{template="reviewUnavailable" group="forms" location="front" app="core" params="'restricted_cannot_comment', \IPS\Member::loggedIn()->warnings(5,NULL,'rpa'), \IPS\Member::loggedIn()->restrict_post"}
{{endif}}
{{elseif \IPS\Member::loggedIn()->members_bitoptions['unacknowledged_warnings']}}
{template="reviewUnavailable" group="forms" location="front" app="core" params="'unacknowledged_warning_cannot_post', \IPS\Member::loggedIn()->warnings( 1, FALSE )"}
{{endif}}
{{endif}}
{{if count( $album->reviews( NULL, NULL, NULL, 'desc', NULL, NULL, NULL, NULL, isset( \IPS\Request::i()->showDeleted ) ) )}}
{{if !$album->hasReviewed()}} {{endif}}
{{if $album->reviewPageCount() > 1}}
{$album->reviewPagination( array( 'tab', 'sort' ) )|raw}
{{endif}}
{{if $album->reviewPageCount() > 1}}
{$album->reviewPagination( array( 'tab', 'sort' ) )|raw}
{{endif}}
{{elseif !$album->canReview()}}
{lang="no_reviews"}
{{endif}}
]]>
asNode();}}
{{endif}}
{{if \IPS\gallery\Image::containerUnread( $album )}}
{{endif}}
{{if $album->asItem()->mapped('featured')}}
{{endif}}
{{if \IPS\gallery\Image::containerUnread( $album )}}{{endif}}
{$album->_title}
{{if \IPS\gallery\Image::containerUnread( $album )}} {{endif}}
{{if $album->last_img_date}}
{lang="updated"} {datetime="$album->last_img_date"}
{{endif}}
{{if $album->type === 2}}
{lang="album_private_badge"}
{{elseif $album->type === 3}}
{lang="album_friend_only_badge"}
{{endif}}
{lang="num_images" pluralize="$album->count_imgs"}
{{if $album->use_comments}}
{lang="num_comments" pluralize="$album->comments"}
{{endif}}
{{if $album->allow_comments}}
{lang="gallery_image_comments_s" pluralize="$album->count_comments"}
{{endif}}
{$album->truncated()|raw}
{{if !isset( \IPS\Request::i()->tab ) || \IPS\Request::i()->tab !== 'node_gallery_gallery'}}
{template="userPhoto" group="global" app="core" params="$album->owner(), 'tiny'"}
{lang="album_created_by"}
{$album->owner()->link()|raw}
{{endif}}
{{if $table->canModerate()}}
multimodActions( $album ) )"}" data-state=''>
{{endif}}
{{endforeach}}]]>
isAjax()}}
{{endif}}
{template="categoryRow" group="browse" params="NULL, NULL, \IPS\gallery\Category::roots()"}
]]>
children() : \IPS\gallery\Category::roots();}}
{{if count($categories)}}
{{if $currentCategory}}{lang="subcategories"}{{else}}{lang="categories"}{{endif}}
{{endif}}]]>
club()}}
{{if settings.clubs and settings.clubs_header == 'full'}}
{template="header" app="core" group="clubs" params="$club, $category"}
{{endif}}
{{endif}}
{{if $category->show_rules == 1}}
id}_rulestitle"}" data-ipsDialog-content="#elCategoryRules">{lang="category_rules"}
{lang="gallery_category_{$category->id}_rules"}
{{elseif $category->show_rules == 2}}
{lang="gallery_category_{$category->id}_rulestitle"}
{lang="gallery_category_{$category->id}_rules"}
{{endif}}
{{if $category->description}}
{$category->description|raw}
{{endif}}
{{if $category->can('add')}}
{{endif}}
{{if $category->children()}}
{template="categoryGrid" group="browse" app="gallery" params="$category->children()"}
{{endif}}
{{if $albums}}
{$albums|raw}
{{endif}}
{{if $table}}
{$table|raw}
{{endif}}
{{if \IPS\gallery\Category::canOnAny('add')}}
{{endif}}
{template="follow" app="core" group="global" params="'gallery', 'category', $category->_id, $followerCount"}
{{if $category->club()}}
{{endif}}]]>
id}&album={$currentAlbum->id}&_new=1" seoTemplate="gallery_submit"}" {{elseif $currentCategory}} href="{url="app=gallery&module=gallery&controller=submit&category={$currentCategory->id}&_new=1" seoTemplate="gallery_submit"}" {{else}} href="{url="app=gallery&module=gallery&controller=submit&_new=1" seoTemplate="gallery_submit"}" {{endif}}>{lang="add_gallery_image"}
]]>
{{endif}}]]>
can('view')}}
{template="thumbImage" group="global" app="core" params="$category->coverPhoto( 'small' ), $category->_title, 'medium', '', 'view_this', $category->url(), 'gallery_Images'"}
{{if \IPS\gallery\Image::containerUnread( $category )}}UNREAD{{endif}}
{$category->_title}
{$category->description|raw}
{{if $category->hasChildren()}}
{{endif}}
{{$count = \IPS\gallery\Image::contentCount( $category );}}
{number="$count"}
{lang="images_no_number" pluralize="$count"}
{{if $lastPost = $category->lastImage()}}
{template="userPhoto" app="core" group="global" params="$lastPost->author(), 'tiny'"}
{$lastPost->caption}
{lang="byline_nodate" htmlsprintf="$lastPost->author()->link()"}
{datetime="$lastPost->date"}
{{endif}}
{{if $table->canModerate()}}
multimodActions( $category ) )"}" data-state=''>
{{endif}}
{{endif}}
{{endforeach}}]]>
baseUrl}' data-resort='{$table->resortKey}' data-controller='core.global.core.table{{if $table->canModerate()}},core.front.core.moderation{{endif}}'>
{{if \IPS\Request::i()->app == 'gallery'}}{lang="num_images" pluralize="$table->count"} {{endif}}
{{if $table->canModerate() OR ( $table->showAdvancedSearch AND ( (isset( $table->sortOptions ) and !empty( $table->sortOptions )) OR $table->advancedSearch ) ) OR !empty( $table->filters ) OR $table->pages > 1}}
{{endif}}
{{if $table->canModerate()}}
{{endif}}
{{if $table->pages > 1}}
{{endif}}
]]>
{lang="gallery_title"}
{{if \IPS\gallery\Category::canOnAny('add')}}
{{endif}}
{{if count( \IPS\gallery\Category::roots() )}}
{template="categoryGrid" group="browse" app="gallery" params="\IPS\gallery\Category::roots()"}
{{endif}}
{{if !empty( $featured )}}
{lang="featured_images"}
{{foreach $featured as $image}}
{{endforeach}}
{{endif}}
{{if !empty( $new )}}
{lang="new_images"}
{{foreach $new as $image}}
{{endforeach}}
{{endif}}
{{if \IPS\gallery\Category::canOnAny('add')}}
{{endif}}]]>
{{foreach $album->_latestImages as $image}}
{{if $image->medium_file_name}}
small_file_name )->url )"}" );' class='ipsGrid_span3 cGalleryTrimmedImage' data-grid-ratio='100' data-imageID='{$image->id}'>
{{else}}
{{endif}}
{{endforeach}}
{lang="view_entire_album" sprintf="$album->name"} ]]>
{{if $container instanceof \IPS\gallery\Album}}{lang="no_images_in_album"}{{else}}{lang="no_images_in_cat"}{{endif}}
{{if $container->can('add')}}
{lang="submit_first_image"}
{{endif}}
]]>
hidden()}}ipsModerated{{else}}ipsAreaBackground_reset{{endif}} ipsBox ipsPad ipsType_center cGalleryImageItem'>
{{if $image->unread()}} {{endif}}
{{if $image->prefix()}}
{template="prefix" group="global" app="core" params="$image->prefix( TRUE ), $image->prefix()"}
{{endif}}
{{if $image->unread()}}{$image->caption} {{else}}{$image->caption}{{endif}}
{{if $table->canModerate()}}
{{endif}}
{{if $image->directContainer()->allow_comments}}
{{endif}}
{$image->views}
{{if $image->mapped('pinned') || $image->mapped('featured') || $image->hidden() === -1 || $image->hidden() === 1}}
{{if $image->hidden() === -1}}
{{elseif $image->hidden() === 1}}
{{endif}}
{{if $image->mapped('pinned')}}
{{endif}}
{{if $image->mapped('featured')}}
{{endif}}
{{endif}}
{{endforeach}}
]]>
unread()}}ipsDataItem_unread{{endif}} {{if method_exists( $image, 'tableClass' ) && $image->tableClass()}}ipsDataItem_{$image->tableClass()}{{endif}} {{if $image->hidden()}}ipsModerated{{endif}}'>
{{if isset( \IPS\Request::i()->cookie['thumbnailSize'] ) AND \IPS\Request::i()->cookie['thumbnailSize'] == 'large' }}
{{if $image->medium_file_name}}
{{else}}
{template="thumbImage" group="global" app="core" params="'', $image->caption, 'medium', 'ipsPos_center', 'view_this', $image->url(), 'gallery_Images'"}
{{endif}}
{{if $image->unread() === -1}}
{lang="new"}
{{elseif $image->unread() === 1}}
{lang="updated"}
{{endif}}
{{if $image->hidden() === -1}}
{{elseif $image->hidden() === 1}}
{{endif}}
{{if $image->mapped('pinned')}}
{{endif}}
{{if $image->mapped('featured')}}
{{endif}}
{{if $image->prefix()}}
{template="prefix" group="global" app="core" params="$image->prefix( TRUE ), $image->prefix()"}
{{endif}}
canEdit()}}data-role="editableTitle"{{endif}}>
{$image->caption}
{lang="byline_nodate" htmlsprintf="$image->author()->link()"}
{{if \IPS\Request::i()->controller != 'gallery'}}
{lang="in"} {$image->container()->_title}
{{endif}}
{{if count( $image->tags() )}}
{template="tags" group="global" app="core" params="$image->tags()"}
{{endif}}
{{if $image->directContainer()->allow_comments}}
{{if $image->comments}}
{{endif}}
{lang="num_comments" pluralize="$image->comments"}
{{if $image->comments}}
{{endif}}
·
{{endif}}
{{if $image->updated == $image->date}}{lang="uploaded"}{{else}}{lang="updated"}{{endif}} {datetime="$image->updated"}
{{if $table->canModerate()}}
multimodActions( $image ) )"}" data-state='{{if $image->tableStates()}}{$image->tableStates()}{{endif}}'>
{{endif}}
{{else}}
{template="thumbImage" group="global" app="core" params="$image->small_file_name, $image->caption, 'medium', '', 'view_this', $image->url(), 'gallery_Images'"}
{{if $image->unread()}}
{{endif}}
{{if $image->hidden() === -1}}
{{elseif $image->hidden() === 1}}
{{endif}}
{{if $image->mapped('pinned')}}
{{endif}}
{{if $image->mapped('featured')}}
{{endif}}
{{if $image->prefix()}}
{template="prefix" group="global" app="core" params="$image->prefix( TRUE ), $image->prefix()"}
{{endif}}
canEdit()}}data-role="editableTitle"{{endif}}>
{$image->caption}
{lang="byline_nodate" htmlsprintf="$image->author()->link()"}
{$image->truncated()|raw}
{{if count( $image->tags() )}}
{template="tags" group="global" app="core" params="$image->tags()"}
{{endif}}
{{if $table->canModerate()}}
multimodActions( $image ) )"}" data-state='{{if $image->unread() === -1 or $image->unread() === 1}}unread{{else}}read{{endif}} {{if $image->hidden() === -1}}hidden{{elseif $image->hidden === 1}}unapproved{{endif}} {{if $image->mapped('pinned')}}pinned{{endif}} {{if $image->mapped('featured')}}featured{{endif}} {{if $image->mapped('locked')}}locked{{endif}}'>
{{endif}}
{{endif}}
{{endforeach}}
{{endif}}]]>
hidden()}}ipsModerated{{else}}ipsAreaBackground_light{{endif}} cGalleryImageItem' data-role='patchworkImage' data-json='{$image->json()|raw}'>
{{if $image->unread()}}
{{endif}}
{{if $image->mapped('pinned') || $image->mapped('featured') || $image->hidden() === -1 || $image->hidden() === 1}}
{{if $image->hidden() === -1}}
{{elseif $image->hidden() === 1}}
{{endif}}
{{if $image->mapped('pinned')}}
{{endif}}
{{if $image->mapped('featured')}}
{{endif}}
{{endif}}
{{if $image->directContainer()->allow_comments}}
{{endif}}
{{endforeach}}]]>
{{foreach $data as $k => $v}}
{lang="$k"}
{{if $k === 'total_disk_spaceg'}}
{filesize="$v"}
{{elseif $k === 'largest_image'}}
{$v->caption} ({filesize="$v->file_size"})
{{elseif $k === 'most_viewed_image'}}
{$v->caption} ({lang="num_views_with_number" pluralize="$v->views"})
{{else}}
{$v}
{{endif}}
{{endforeach}}
]]>
{{if $item->medium_file_name}}
{{else}}
{{endif}}
]]>
{template="thumbImage" group="global" app="core" params="$image->thumb_file_name, $image->caption, 'small', '', 'view_this', $image->url(), 'gallery_Images'"}
{lang="in"} {$image->container()->_title}
{{if $image->container()->allow_rating}}
{template="rating" group="global" location="front" app="core" params="'large', $image->rating"}
{{endif}}
{{if $image->container()->allow_comments}} {{if !$image->comments}}{{endif}} {$image->comments}{{endif}}{{if !$image->comments}} {{endif}}
]]>
{template="embedHeader" group="embed" app="core" params="$comment, \IPS\Member::loggedIn()->language()->addToStack( 'x_commented_album', FALSE, array( 'sprintf' => array( $comment->author()->name ) ) ), $comment->mapped('date')"}
{{$images = \IPS\Gallery\Image::getItemsWithPermission( array( array( 'image_album_id=?', $item->asNode()->id ) ), 'image_date DESC', 19 );}}
{{if count( $images )}}
{{endif}}
{template="embedOriginalItem" group="embed" app="core" params="$item"}
{$comment->truncated(TRUE)|raw}
{{if \IPS\IPS::classUsesTrait( $comment, 'IPS\Content\Reactable' ) and count( $comment->reactions() ) and settings.reputation_enabled}}
{template="reactionOverview" app="core" group="global" params="$comment, TRUE, 'small'"}
{{endif}}
]]>
{template="embedHeader" group="embed" app="core" params="$comment, \IPS\Member::loggedIn()->language()->addToStack( 'x_reviewed_album', FALSE, array( 'sprintf' => array( $comment->author()->name ) ) ), $comment->mapped('date')"}
{{$images = \IPS\Gallery\Image::getItemsWithPermission( array( array( 'image_album_id=?', $item->asNode()->id ) ), 'image_date DESC', 19 );}}
{{if count( $images )}}
{{endif}}
{template="embedOriginalItem" group="embed" app="core" params="$item"}
{template="rating" app="core" params="'veryLarge', $comment->mapped('rating')" group="global"}
{{if $comment->mapped('votes_total')}}
{$comment->helpfulLine()|raw}
{{endif}}
{$comment->truncated(TRUE)|raw}
{{if \IPS\IPS::classUsesTrait( $comment, 'IPS\Content\Reactable' ) and count( $comment->reactions() ) and settings.reputation_enabled}}
{template="reactionOverview" app="core" group="global" params="$comment, TRUE, 'small'"}
{{endif}}
]]>
{template="embedHeader" group="embed" app="core" params="$albumItem, \IPS\Member::loggedIn()->language()->addToStack( 'x_added_album_in', FALSE, array( 'sprintf' => array( $albumItem->author()->name, $albumNode->category()->_title ) ) ), $albumItem->mapped('date')"}
{{if $albumNode->coverPhoto('medium')}}
{{endif}}
{{$images = \IPS\Gallery\Image::getItemsWithPermission( array( array( 'image_album_id=?', $albumNode->id ) ), 'image_date DESC', 9 );}}
{{if count( $images )}}
{{endif}}
{{if $desc = $albumItem->truncated(TRUE)}}
{$desc|raw}
{{endif}}
{template="embedItemStats" group="embed" app="core" params="$albumItem, $albumNode->use_comments"}
]]>
{template="embedHeader" group="embed" app="core" params="$item, \IPS\Member::loggedIn()->language()->addToStack( 'x_added_image_in', FALSE, array( 'sprintf' => array( $item->author()->name, $item->directContainer()->_title ) ) ), $item->mapped('date')"}
{{if $item->original_file_name}}
{{else}}
{{endif}}
{$item->caption}
{{if $desc = $item->truncated(TRUE)}}
{$desc|raw}
{{endif}}
{{if $item->copyright}}
© {$item->copyright}
{{endif}}
{template="embedItemStats" group="embed" app="core" params="$item"}
{{if $item->directContainer() instanceof \IPS\gallery\Album}}
{{$images = \IPS\Gallery\Image::getItemsWithPermission( array( array( 'image_album_id=?', $item->album_id ) ), 'image_date DESC', 9 );}}
{{if count( $images )}}
{{endif}}
{{endif}}
]]>
{template="embedHeader" group="embed" app="core" params="$comment, \IPS\Member::loggedIn()->language()->addToStack( 'x_commented_photo', FALSE, array( 'sprintf' => array( $comment->author()->name ) ) ), $comment->mapped('date')"}
{{if $item->medium_file_name}}
{{else}}
{{endif}}
{template="embedOriginalItem" group="embed" app="core" params="$item"}
{$comment->truncated(TRUE)|raw}
{{if \IPS\IPS::classUsesTrait( $comment, 'IPS\Content\Reactable' ) and count( $comment->reactions() ) and settings.reputation_enabled}}
{template="reactionOverview" app="core" group="global" params="$comment, TRUE, 'small'"}
{{endif}}
]]>
{template="embedHeader" group="embed" app="core" params="$comment, \IPS\Member::loggedIn()->language()->addToStack( 'x_reviewed_photo', FALSE, array( 'sprintf' => array( $comment->author()->name ) ) ), $comment->mapped('date')"}
{{if $item->medium_file_name}}
{{else}}
{{endif}}
{template="embedOriginalItem" group="embed" app="core" params="$item"}
{template="rating" app="core" params="'veryLarge', $comment->mapped('rating')" group="global"}
{{if $comment->mapped('votes_total')}}
{$comment->helpfulLine()|raw}
{{endif}}
{$comment->truncated(TRUE)|raw}
{{if \IPS\IPS::classUsesTrait( $comment, 'IPS\Content\Reactable' ) and count( $comment->reactions() ) and settings.reputation_enabled}}
{template="reactionOverview" app="core" group="global" params="$comment, TRUE, 'small'"}
{{endif}}
]]>
{$image->caption} ]]>
tableClass()}}ipsDataItem_{$row->tableClass()}{{endif}}" data-controller='core.front.system.manageFollowed' data-followID='{$row->_followData['follow_area']}-{$row->_followData['follow_rel_id']}'>
{{if $coverImage = $row->coverPhoto('small') }}
{{else}}
{{endif}}
{{if $row->_locked}}
{{endif}}
{$row->_title}
{$row->_description}
{{if $row->_items}}
{lang="node_content_items" pluralize="$row->_items"}
{{endif}}
{{if $row->_comments}}
{lang="node_content_comments" pluralize="$row->_comments"}
{{endif}}
{{if $row->_reviews}}
{lang="node_content_reviews" pluralize="$row->_reviews"}
{{endif}}
{{if count( $row->_latestImages )}}
{{foreach array_slice( iterator_to_array( $row->_latestImages ), 0, 10, true ) as $image }}
{{endforeach}}
{{endif}}
{datetime="$row->_followData['follow_added']"}
{{if $row->_followData['follow_notify_freq'] == 'none'}}
{{else}}
{{endif}} {lang="follow_freq_{$row->_followData['follow_notify_freq']}"}
{template="manageFollow" group="system" app="core" params="$row->_followData['follow_app'], $row->_followData['follow_area'], $row->_followData['follow_rel_id']"}
{{if $table->canModerate()}}
multimodActions( $row ) )"}" data-state=''>
{{endif}}
{{endforeach}}]]>
unread()}}ipsDataItem_unread{{endif}} {{if method_exists( $row, 'tableClass' ) && $row->tableClass()}}ipsDataItem_{$row->tableClass()}{{endif}} {{if $row->hidden()}}ipsModerated{{endif}}" data-controller='core.front.system.manageFollowed' data-followID='{$row->_followData['follow_area']}-{$row->_followData['follow_rel_id']}'>
medium_file_name )->url )"} )'>
{{if $row->mapped('locked')}}
{{endif}}
{{if $row->mapped('pinned') || $row->mapped('featured') || $row->hidden() === -1 || $row->hidden() === 1}}
{{if $row->hidden() === -1}}
{{elseif $row->hidden() === 1}}
{{endif}}
{{if $row->mapped('pinned')}}
{{endif}}
{{if $row->mapped('featured')}}
{{endif}}
{{endif}}
{{if $row->prefix()}}
{template="prefix" group="global" app="core" params="$row->prefix( TRUE ), $row->prefix()"}
{{endif}}
{{if $row->mapped('title')}}{$row->mapped('title')}{{else}}{lang="content_deleted"} {{endif}}
{datetime="$row->_followData['follow_added']"}
{{if $row->_followData['follow_notify_freq'] == 'none'}}
{{else}}
{{endif}} {lang="follow_freq_{$row->_followData['follow_notify_freq']}"}
{template="manageFollow" group="system" app="core" params="$row->_followData['follow_app'], $row->_followData['follow_area'], $row->_followData['follow_rel_id']"}
{{if $table->canModerate()}}
multimodActions( $row ) )"}" data-state='{{if $row->tableStates()}}{$row->tableStates()}{{endif}}'>
{{endif}}
{{endforeach}}
{{endif}}
]]>
baseUrl}' data-resort='{$table->resortKey}' data-pageParam='albumPage' data-controller='core.global.core.table{{if $table->canModerate()}},core.front.core.moderation{{endif}}'>
{{if $table->pages > 1}}
{template="pagination" group="global" app="core" location="global" params="$table->baseUrl, $table->pages, $table->page, $table->limit, TRUE, 'albumPage'"}
{{endif}}
{template="$table->rowsTemplate[1]" params="$table, $headers, $rows" object="$table->rowsTemplate[0]"}
]]>
thumb_file_name" extension="gallery_Images"}")'>
{{foreach $images as $image }}
{{endforeach}}
{{else}}
{{endif}}
{{else}}
{{foreach $images as $image }}
{{endforeach}}
{{endif}}]]>
thumb_file_name" extension="gallery_Images"}")'>
{{foreach $images as $image }}
{{endforeach}}
{{else}}
{{endif}}
{{else}}
{{if trim( $indexData['index_content'] ) !== ''}}
application->directory == 'core' and \IPS\Dispatcher::i()->module and \IPS\Dispatcher::i()->module->key == 'search' )}}data-ipsTruncate data-ipsTruncate-type='remove' data-ipsTruncate-size='3 lines' data-ipsTruncate-watch='false'{{else}}data-searchable data-findTerm{{endif}}>
{$indexData['index_content']|raw}
{{endif}}
{{if count($images)}}
{{foreach $images as $k => $image}}
{{$imageKey = ( $k === 0 ) ? "medium_file_name" : "thumb_file_name";}}
{{endforeach}}
{{endif}}
{{endif}}]]>
{{else}}
{{endif}}
{{else}}
{{endif}}]]>
{{else}}
{{endif}}
{{else}}
{{if $albumData}}
{lang="from_the_album"} {$albumData['album_name']}
{{endif}}
{{if trim( $indexData['index_content'] ) !== ''}}
application->directory == 'core' and \IPS\Dispatcher::i()->module and \IPS\Dispatcher::i()->module->key == 'search' )}}data-ipsTruncate data-ipsTruncate-type='remove' data-ipsTruncate-size='3 lines' data-ipsTruncate-watch='false'{{else}}data-searchable data-findTerm{{endif}}>
{$indexData['index_content']|raw}
{{endif}}
{{if $itemData['image_copyright']}}
© {$itemData['image_copyright']}
{{endif}}
{{endif}}]]>
{$category->_title}
]]>
{lang="gallery_graph_disclaimer"}
]]>
{lang="gallery_stats_disclaimer"}
]]>
{{endif}}
{{if count( $select )}}
{lang="member"}
{lang="gallery_images"}
{{foreach $select as $row}}
{{if isset( $members[ $row['image_member_id'] ] )}}
{{$member = \IPS\Member::constructFromData( $members[ $row['image_member_id'] ] );}}
{{else}}
{{$member = new \IPS\Member;}}
{{endif}}
{template="userPhoto" app="core" group="global" params="$member"} {$member->name}
'content', 'type' => 'gallery_image' ) )}' target='_blank'>{$row['images']}
{{endforeach}}
{$pagination|raw}
{{else}}
{lang="no_results"}
{{endif}}]]>
isAjax()}}
{template="pageHeader" group="global" app="core" params="\IPS\Member::loggedIn()->language()->addToStack('choose_category')"}
{{else}}
{{endif}}
{$form|raw}
{{if \IPS\Request::i()->isAjax()}}
{{endif}}]]>
{lang="uploading_to_x" sprintf="$category->_title"}
{lang="or"}
{lang="create_new_album"}
{{if $createAlbumForm}}
{$createAlbumForm|raw}
{{elseif !$canCreateAlbum}}
{lang="cannot_create_album"}
{{else}}
{lang="used_max_albums" sprintf="$maximumAlbums"}
{{endif}}
{lang="choose_existing_album"}
{{if $existingAlbumForm}}
{$existingAlbumForm|raw}
{{else}}
{lang="no_existing_albums"}
{{endif}}
]]>
album"}" class='cGallerySubmit_chooseCategory'>
]]>
$v}}{$k}="{$v}"{{endforeach}} data-ipsForm>
{{foreach $hiddenValues as $k => $v}}
{{if is_array($v)}}
{{foreach $v as $_k => $_v}}
{{endforeach}}
{{else}}
{{endif}}
{{endforeach}}
{{if $uploadField}}
{{endif}}
{{foreach $elements as $collection}}
{{foreach $collection as $inputName => $input}}
{{if in_array( $inputName, array( 'album_name', 'album_description' ) )}}
{{if is_object( $input ) }}
{$input->rowHtml($form)|raw}
{{else}}
{$input|raw}
{{endif}}
{{endif}}
{{endforeach}}
{{endforeach}}
{{foreach $actionButtons as $button}}
{$button|raw}
{{endforeach}}
]]>
id ) ) );}}
]]>
{$existingAlbumForm|raw}
]]>
{lang="ready_to_submit"}
{lang="ready_to_submit_blurb"}
]]>
$v}}{$k}="{$v}"{{endforeach}} data-ipsForm>
{{foreach $hiddenValues as $k => $v}}
{{if is_array($v)}}
{{foreach $v as $_k => $_v}}
{{endforeach}}
{{else}}
{{endif}}
{{endforeach}}
{{if $uploadField}}
{{endif}}
{{foreach $elements as $collection}}
{{foreach $collection as $k => $input}}
{{if mb_stripos( $k, 'image_credit_info' ) !== FALSE || mb_stripos( $k, 'image_copyright' ) !== FALSE}}
{lang="$k"}
{$input->html()|raw}
{{elseif mb_stripos( $k, 'image_title' ) !== FALSE}}
{lang="$k"}
{$input->html()|raw}
{{else}}
{{if is_object( $input ) }}
{$input->rowHtml($form)|raw}
{{else}}
{$input|raw}
{{endif}}
{{endif}}
{{endforeach}}
{{endforeach}}
{{if $hiddenValues['edit'] != 0}}
{{endif}}
{lang="upload_percn_help"}
]]>
{lang="editing_image"} ({lang="x_of_y" sprintf="$currentIndex + 1, $itemCount"})
{expression="$form->customTemplate( array( call_user_func_array( array( \IPS\Theme::i(), 'getTemplate' ), array( 'submit', 'gallery' ) ), 'imageInformationForm' ) )" raw="true"}
]]>
{lang="saving_images"}
{lang="saving_images_desc"}
{$redirector|raw}
]]>
$v}}{$k}="{$v}"{{endforeach}} data-ipsForm data-role="allImagesForm">
{{foreach $hiddenValues as $k => $v}}
{{if is_array($v)}}
{{foreach $v as $_k => $_v}}
{{endforeach}}
{{else}}
{{endif}}
{{endforeach}}
{{if $uploadField}}
{{endif}}
{$elements['']['image_auto_follow']->html()|raw} {lang="new_image_comments_notification"}
{lang="image_info_finish"}
{lang="image_info_finishcopy"}
]]>
{{if $form->error}}
{$form->error}
{{endif}}
]]>
$name}}
{{if $activeStep == $name}}
{$output|raw}
{{endif}}
{{endforeach}}]]>
{lang="add_gallery_image"}
{{endif}}
]]>
isLastPage()}}data-lastPage{{endif}} data-feedID='image-{$image->id}' id='comments'>
{lang="num_comments_uc" pluralize="$image->comments"}
{{if $image->commentPageCount() > 1}}
{$image->commentPagination( array('tab') )|raw}
{{endif}}
{template="featuredComments" group="global" app="core" params="$image->featuredComments(), $image->url()->setQueryString('tab', 'comments')->setQueryString('recommended', 'comments')"}
{{if count( $image->comments( NULL, NULL, 'date', 'asc', NULL, NULL, NULL, NULL, FALSE, isset( \IPS\Request::i()->showDeleted ) ) )}}
{{else}}
{lang="no_comments"}
{{endif}}
{{if $image->commentPageCount() > 1}}
{$image->commentPagination( array('tab') )|raw}
{{endif}}
{{if $image->commentForm() || $image->locked() || \IPS\Member::loggedIn()->restrict_post || \IPS\Member::loggedIn()->members_bitoptions['unacknowledged_warnings']}}
{{endif}}
]]>
container()->club()}}
{{if settings.clubs and settings.clubs_header == 'full'}}
{template="header" app="core" group="clubs" params="$club, $image->container()"}
{{endif}}
{{endif}}
{template="imageInfo" group="view" params="$image, $slider, $next, $prev"}
{{if $commentsAndReviews}}
{{if ( $image->directContainer()->allow_reviews && $image->container()->allow_reviews ) && ( $image->directContainer()->allow_comments && $image->container()->allow_comments ) }}
{lang="user_feedback"}
{{endif}}
{$commentsAndReviews|raw}
{{endif}}
{{if $image->container()->club()}}
{{endif}}]]>
data}}data-imageSizes='{$image->data}'{{endif}}>
{{if $image->media }}
{{if in_array( $image->file_type, array( 'video/ogg', 'video/webm', 'video/mp4', 'video/x-flv', 'video/3gpp' ) )}}
medium_file_name }} poster="{file="$image->medium_file_name" extension="gallery_Images"}"{{endif}} data-setup='{"techOrder": ["html5","flash"]}'>
original_file_name" extension="gallery_Images"}" type='{$image->file_type}' />
{{else}}
original_file_name" extension="gallery_Images"}" width="480" height="360" type='{$image->file_type}' />
{{endif}}
{{else}}
canEdit()}}data-editable{{endif}} data-notesData='{$image->_notes_json}'>
{{if count( $image->_notes )}}
{{foreach $image->_notes as $note}}
{{endforeach}}
{{endif}}
{{endif}}
{{if $prev}}
{{endif}}
{{if $next}}
{{endif}}
]]>
getMessages(), $image"}
{{if $image->hidden() === 1 and $image->canUnhide()}}
{lang="image_pending_approval"}
{{endif}}
{{if $image->prefix() OR ( $image->canEdit() AND $image::canTag( NULL, $image->container() ) AND $image::canPrefix( NULL, $image->container() ) )}}
prefix()}}class='ipsHide'{{endif}} {{if ( $image->canEdit() AND $image::canTag( NULL, $image->container() ) AND $image::canPrefix( NULL, $image->container() ) )}}data-editablePrefix{{endif}}>
{template="prefix" group="global" app="core" params="$image->prefix( TRUE ), $image->prefix()"}
{{endif}}
{{if $image->hidden() === 1}}
{{elseif $image->hidden() === -1}}
{{elseif $image->hidden() === -2}}
{{endif}}
{{if $image->mapped('featured')}}
{{endif}}
{{if $image->canEdit()}}
{{if $image->locked()}} {{endif}}
{$image->caption}
{{else}}
{{if $image->locked()}} {{endif}}{$image->caption}
{{endif}}
{template="userPhoto" app="core" group="global" params="$image->author(), 'mini', $image->warningRef()"}
{template="follow" app="core" group="global" params="'gallery', 'image', $image->id, $image->followers()->count( TRUE )"}
{lang="byline_nodate_itemprop" htmlsprintf="$image->author()->link( $image->warningRef() )"}
{{if $image->description}}
{$image->content()|raw}
{{endif}}
{{if count( $image->tags() ) OR ( $image->canEdit() AND $image::canTag( NULL, $image->container() ) )}}
{template="tags" group="global" app="core" params="$image->tags(), FALSE, FALSE, ( $image->canEdit() AND $image::canTag( NULL, $image->container() ) ) ? $image->url() : NULL"}
{{endif}}
{{if $image->credit_info && $image->copyright}}
{{endif}}
{{if $image->credit_info}}
{lang="image_credit_info"}
{$image->credit_info}
{{endif}}
{{if $image->credit_info && $image->copyright}}
{{endif}}
{{if $image->copyright}}
{lang="image_copyright"}
© {$image->copyright}
{{endif}}
{{if $image->credit_info && $image->copyright}}
{{endif}}
{{if \IPS\IPS::classUsesTrait( $image, 'IPS\Content\Reactable' ) and settings.reputation_enabled}}
{template="reputation" app="core" group="global" params="$image"}
{{endif}}
{template="follow" app="core" group="global" params="'gallery', 'image', $image->id, $image->followers()->count( TRUE )"}
{{if count( $image->shareLinks() )}}
{template="sharelinks" app="core" group="global" params="$image"}
{{endif}}
{{if $image->directContainer()->allow_rating}}
{$image->rating()|raw}
{{endif}}
{{if $image->gps_show}}
{$image->map( 240, 100 )|raw}
{{elseif $image->canEdit() AND $image->gps_raw}}
{$image->map( 240, 100 )|raw}
{$image->loc_short}
{{if $image->canEdit() }}
{{endif}}
{{endif}}
{{if $image->directContainer() instanceof \IPS\gallery\Album}}
{lang="from_the_album"}
{lang="num_images" pluralize="$image->directContainer()->count_imgs"}
{{if $image->container()->allow_comments and $image->directContainer()->use_comments}}
{lang="num_comments" pluralize="$image->directContainer()->comments"}
{{endif}}
{{if $image->container()->allow_comments and $image->directContainer()->allow_comments}}
{lang="gallery_image_comments_s" pluralize="$image->directContainer()->count_comments"}
{{endif}}
{{endif}}
{{if count($image->metadata)}}
{lang="gallery_metadata" sprintf="$image->caption"}
{{if isset( $image->metadata['EXIF.FocalLength'] ) || ( isset( $image->metadata['IFD0.Make'] ) AND isset( $image->metadata['IFD0.Model'] ) ) || isset( $image->metadata['EXIF.ShutterSpeedValue'] ) || isset( $image->metadata['COMPUTED.ApertureFNumber'] ) || isset( $image->metadata['Exif.Photo.ISOSpeed'] )}}
{{if isset( $image->metadata['IFD0.Make'] ) AND isset( $image->metadata['IFD0.Model'] )}}
{lang="gallery_exif_camera"} {$image->metadata['IFD0.Make']} {$image->metadata['IFD0.Model']}
{{else}}
{lang="camera_information"}
{{endif}}
{{if isset( $image->metadata['EXIF.FocalLength'] )}}
{$image->focallength}
{{endif}}
{{if isset( $image->metadata['EXIF.ExposureTime'] )}}
{$image->metadata['EXIF.ExposureTime']}
{{endif}}
{{if isset( $image->metadata['COMPUTED.ApertureFNumber'] )}}
f
{$image->metadata['COMPUTED.ApertureFNumber']}
{{endif}}
{{if isset( $image->metadata['Exif.Photo.ISOSpeed'] ) || isset( $image->metadata['EXIF.ISOSpeedRatings'] )}}
{lang="gallery_exif_iso"}
{{if isset( $image->metadata['Exit.Photo.ISOSpeed'] )}}
{$image->metadata['Exif.Photo.ISOSpeed']}
{{else}}
{{if is_array( $image->metadata['EXIF.ISOSpeedRatings'] )}}
{expression="implode( '/', $image->metadata['EXIF.ISOSpeedRatings'] )"}
{{else}}
{$image->metadata['EXIF.ISOSpeedRatings']}
{{endif}}
{{endif}}
{{endif}}
{lang="view_all_photo_info"}
{{else}}
{lang="view_photo_info"}
{{endif}}
{{endif}}
]]>
language()->get('all_image_sizes'), $image->caption )"}
{{$name = ( isset( \IPS\Request::i()->imageSize ) AND \IPS\Request::i()->imageSize AND \IPS\Request::i()->imageSize != 'large' ) ? \IPS\Request::i()->imageSize . "_file_name" : "masked_file_name";}}
{{if $image->credit_info}}
{lang="image_credit_info"}
{$image->credit_info}
{{endif}}
{{if $image->copyright}}
{lang="image_copyright"}
© {$image->copyright}
{{endif}}]]>
{{for $i=0, $j=count($slider['previous']); $i<3-$j; $i++}}
{template="imageThumbnail" group="view" params="FALSE"}
{{endfor}}
{{foreach array_reverse( $slider['previous'] ) as $idx => $previous}}
{template="imageThumbnail" group="view" params="$previous"}
{{endforeach}}
{template="imageThumbnail" group="view" params="$image, true"}
{{foreach $slider['next'] as $next}}
{template="imageThumbnail" group="view" params="$next"}
{{endforeach}}
{{for $i=0, $j=count($slider['next']); $i<3-$j; $i++}}
{template="imageThumbnail" group="view" params="FALSE"}
{{endfor}}
]]>
medium_file_name}}
thumb_file_name )->url )"}" );' class='cGalleryTrimmedImage {{if $highlight}}cGalleryAlbumSlider_active{{endif}}' data-imageID='{$image->id}'>
{{else}}
{{endif}}
{{else}}
{{endif}}]]>
isAjax()" group="global" app="core" params="\IPS\Member::loggedIn()->language()->addToStack('gallery_metadata', FALSE, array( 'sprintf' => array( $image->caption ) ) )"}
{{if count( $image->metadata )}}
{{foreach $image->metadata as $key => $value}}
{{if !is_array( $value ) AND ( $image->gps_show OR mb_strpos( $key, 'GPS.' ) === FALSE ) AND mb_strpos( $key, 'UndefinedTag' ) === FALSE AND ( !\IPS\Member::loggedIn()->language()->checkKeyExists( $key ) OR ( \IPS\Member::loggedIn()->language()->checkKeyExists( $key ) AND \IPS\Member::loggedIn()->language()->get( $key ) ) )}}
{lang="$key"}
{{if \IPS\Member::loggedIn()->language()->checkKeyExists( $key . '_map_' . $value )}}{lang="{$key}_map_{$value}"}{{else}}{$value}{{endif}}
{{endif}}
{{endforeach}}
{{else}}
{lang="gallery_no_metadata"}
{{endif}}
]]>
url()}' {{if $image->isLastPage('reviews')}}data-lastPage{{endif}} data-feedID='image-{$image->id}-reviews' id='reviews'>
{{if $image->reviewForm()}}
{{if $image->locked()}}
{lang="item_locked_can_review"}
{{endif}}
{$image->reviewForm()|raw}
{{else}}
{{if $image->hasReviewed()}}
{{elseif $image->locked()}}
{template="commentUnavailable" group="forms" location="front" app="core" params="'item_locked_cannot_review'"}
{{elseif \IPS\Member::loggedin()->restrict_post}}
{{if \IPS\Member::loggedIn()->restrict_post == -1}}
{template="reviewUnavailable" group="forms" location="front" app="core" params="'restricted_cannot_comment'"}
{{else}}
{template="reviewUnavailable" group="forms" location="front" app="core" params="'restricted_cannot_comment', \IPS\Member::loggedIn()->warnings(5,NULL,'rpa'), \IPS\Member::loggedIn()->restrict_post"}
{{endif}}
{{elseif \IPS\Member::loggedIn()->members_bitoptions['unacknowledged_warnings']}}
{template="reviewUnavailable" group="forms" location="front" app="core" params="'unacknowledged_warning_cannot_post', \IPS\Member::loggedIn()->warnings( 1, FALSE )"}
{{endif}}
{{endif}}
{{if count( $image->reviews( NULL, NULL, NULL, 'desc', NULL, NULL, NULL, NULL, isset( \IPS\Request::i()->showDeleted ) ) )}}
{{if !$image->hasReviewed()}} {{endif}}
{{if $image->reviewPageCount() > 1}}
{$image->reviewPagination( array( 'tab', 'sort' ) )|raw}
{{endif}}
{{if $image->reviewPageCount() > 1}}
{$image->reviewPagination( array( 'tab', 'sort' ) )|raw}
{{endif}}
{{elseif !$image->canReview()}}
{lang="no_reviews"}
{{endif}}
]]>
description|raw}
]]>
{$title}
{{if $orientation == 'horizontal'}}