Flickr Gallery
{if $flickr->isEnabled()} {assign var=albumId value=$smarty.request.album} {assign var=photoId value=$smarty.request.photo} {assign var=secretId value=$smarty.request.secret} {if $albumId != '' && $photoId != '' && $secretId != ''}{$locale->tr("flickr")} » {$locale->tr("flickr_album_id")} {$albumId} » {$locale->tr("flickr_photo_id")} {$photoId}
{assign var=flickrPhotoInfo value=$flickr->getPhotoInfo($photoId,$secretId)}
{$locale->tr("flickr_photo_title")} {$flickrPhotoInfo.title}
{assign var=photoNavigation value=$flickr->getPhotoNavigation($albumId,$photoId)}{if $photoNavigation.prevPhotoUrl != ''}« {$locale->tr("flickr_prev_photo")}{/if} | {if $photoNavigation.nextPhotoUrl != ''}{$locale->tr("flickr_next_photo")} »{/if}
{assign var=flickrNotes value=$flickrPhotoInfo.notes} {assign var=flickrTags value=$flickrPhotoInfo.tags}
{$locale->tr("flickr_photo_description")} {$flickrPhotoInfo.description}
{$locale->tr("flickr_photo_date")} {$flickrPhotoInfo.date}
{$locale->tr("flickr_photo_tag")} {foreach item=flickrTag from=$flickrTags}{$flickrTag.tagName} {/foreach}
{$locale->tr("flickr_photo_url")} {$locale->tr("flickr_photo_see_url")} ({$flickrPhotoInfo.comments} {$locale->tr("comments")})
{elseif $albumId != '' && ($photoId == '' || $secretId == '')}
{$locale->tr("flickr")} » {$locale->tr("flickr_album_id")} {$albumId}
{assign var=flickrPhotos value=$flickr->getPhotos($albumId)}
{foreach item=flickrPhoto from=$flickrPhotos}
{/foreach}
{else}
{assign var=flickrAlbums value=$flickr->getPhotoList()}
{foreach name=flickrAlbum item=flickrAlbum from=$flickrAlbums}
{$locale->tr("flickr_album_title")} {$flickrAlbum.title}
{$locale->tr("flickr_album_description")} {$flickrAlbum.description}
{$locale->tr("flickr_album_photos")} {$flickrAlbum.photos}
{$locale->tr("flickr_album_url")} {$locale->tr("flickr_album_see_url")}