<?php 
/**
 * [PHPFOX_HEADER]
 * 
 * @copyright		[PHPFOX_COPYRIGHT]
 * @author  		Raymond Benc
 * @package 		Phpfox
 * @version 		$Id: new.html.php 1174 2009-10-11 13:56:13Z Raymond_Benc $
 */
 
defined('PHPFOX') or exit('NO DICE!'); 

?>
{if !count($aPhotos)}
<div class="extra_info">
	{_p var='no_photos_have_been_added_yet'}
	<ul class="action">
		<li><a href="{url link='photo.upload'}">{_p var='be_the_first_to_upload_a_photo'}</a></li>
	</ul>
</div>
{else}
{foreach from=$aPhotos item=aPhoto}
<div class="go_left t_center" style="width:30%;">
	{if ($aPhoto.mature == 0 || (($aPhoto.mature == 1 || $aPhoto.mature == 2) && Phpfox::getUserId() && Phpfox::getUserParam('photo.photo_mature_age_limit') <= Phpfox::getUserBy('age'))) || $aPhoto.user_id == Phpfox::getUserId()}
	<a href="{$aPhoto.link}" title="{_p var='title_by_full_name' title=$aPhoto.title|clean full_name=$aPhoto.full_name|clean}">{img server_id=$aPhoto.server_id path='photo.url_photo' file=$aPhoto.destination suffix='_150' max_width=150 max_height=150 class="hover_action" title=$aPhoto.title}</a>
	{else}
	<a href="{$aPhoto.link}"{if $aPhoto.mature == 1} onclick="tb_show('Warning!', $.ajaxBox('photo.warning', 'height=300&amp;width=350&amp;link={$aPhoto.link}')); return false;"{/if}>{img theme='misc/mature.jpg' alt=''}</a>
	{/if}
	<div class="p_4">
		<a href="{$aPhoto.link}">{$aPhoto.title|clean|shorten:45:'...'|split:20}</a>
		<div class="extra_info">
			{_p var='by_user_info' user_info=$aPhoto|user}
		</div>
	</div>
</div>
{/foreach}
<div class="clear"></div>
{/if}