<?php 
/**
 * [PHPFOX_HEADER]
 * 
 * @copyright		[PHPFOX_COPYRIGHT]
 * @author  		Raymond Benc
 * @package 		Phpfox
 * @version 		$Id: public-album.html.php 1301 2009-12-07 15:43:49Z Raymond_Benc $
 */
 
defined('PHPFOX') or exit('NO DICE!'); 

?>
<div class="main_break"></div>
{if count($aAlbums)}
<section class="photo-albums">
	{foreach from=$aAlbums item=aAlbum name=albums}
	<article{if $aAlbum.destination} class="image_load" data-src="{img server_id=$aAlbum.server_id path='photo.url_photo' file=$aAlbum.destination suffix='_500' max_width=500 max_height=500 return_url=true}"{/if}>
	{if !$aAlbum.destination}
	<span class="no_image_item_cover"></span>
	{/if}
	<header>
		<h1>
			<a href="{$aAlbum.link}">
					<span class="name">
						{$aAlbum.name|clean}
						<span class="info">
							{if !empty($aAlbum.total_photo)}
							{if $aAlbum.total_photo == '1'}
							1 photo
							{else}
							{$aAlbum.total_photo|number_format} photos
							{/if}
							{/if}
							{plugin call='photo.template_block_album_entry_extra_info'}
						</span>
					</span>
			</a>
		</h1>
	</header>
	</article>
	{/foreach}
</section>
{else}
<div class="extra_info">
	{_p var='no_public_photo_albums_found'}
</div>
{/if}