{assign var="postPageTitle" value=" - Flickr Gallery"} {include file="$blogtemplate/header.template"} {if !empty($flickr)} {literal} {/literal}

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} {foreach item=flickrNote from=$flickrNotes} {/foreach} {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}
{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}
{$flickrAlbum.title}

{$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")}
{/foreach} {assign var=totalAlbums value=$smarty.foreach.flickrAlbum.total} {/if} {else} {$locale->tr("error_flickr_not_enabled")} {/if} {/if}

{include file="$blogtemplate/footer.template"}