{include file="$gentemplates/$header_tpl"}
{strip}
<div class="profile_general_table">
    <div style="float:right;">
        <!-- AddThis Button BEGIN -->
			<div class="addthis_toolbox addthis_default_style">
			<a href="http://www.addthis.com/bookmark.php?v=250&amp;username=xa-4b69d5eb1f2c8cb0" class="addthis_button_compact">Share</a>
				<span class="addthis_separator">|</span>
				<a class="addthis_button_facebook"></a>
				<a class="addthis_button_myspace"></a>
				<a class="addthis_button_google"></a>
				<a class="addthis_button_twitter"></a>
			</div>
			<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=xa-4b69d5eb1f2c8cb0"></script>
		<!-- AddThis Button END -->
        {*if $upload_type}<td align="{$default_right}" width="90%"><img src="{$site_root}{$template_root}{$template_images_root}/{if $upload_type eq 'f'}my_photos_icon.gif{/if}{if $upload_type eq 'v'}my_videos_icon.gif{/if}"></td>{/if*}
        <div style="float:right;">
			{if $upload_type eq 'f'}<div style="display: inline; vertical-align: middle;"><img src="{$site_root}{$template_root}{$template_images_root}/add_my_photos.gif"></div>&nbsp;<div style="display: inline; vertical-align: middle; padding-bottom: 8px;"><a href="{$site_root}/{$seo.myprofile}?sel=4&sub=8"><b>{$lang.gallary.my_photos}</b></a></div>{/if}
			{if $upload_type eq 'v'}<div style="display: inline; vertical-align: middle;"><img src="{$site_root}{$template_root}{$template_images_root}/add_my_video.gif"></div>&nbsp;<div style="display: inline; vertical-align: middle; padding-bottom: 8px;"><a href="{$site_root}/{$seo.myprofile}?sel=4&sub=10"><b>{$lang.gallary.my_videos}</b></a></div>{/if}
        </div>
    </div>
	<!-- begin main cell -->
	<div class="content content_adult_2" style="margin: 0px; padding: 15px;">
		<div style="margin: 0px; padding: 0px;">
		<h3 class="p-b5">{$lang.gallary.last_uploads}</h3>
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td style="padding-top: 25px;" valign="top">
			<table cellpadding="10" cellspacing="0" border="0" width="100%">
				{foreach item=item from=$last_uploads name=uploads}

				{if $smarty.foreach.uploads.iteration % 8 == 1}
					<tr>
				{/if}					

				<td class="float_left" style="display: table; width: 20%;" align="center" valign="top" class="text">
					<div>
						<a class="imgcanvas_container" {if $item.is_adult}href="javascript:void(0);" onclick="launchWindow('{$item.view_link}','',800,580);"{else}href="{$item.view_link}"{/if}>
							{if $item.upload_path eq 'default'} 
								<div class="one_video_icon"></div>
							{else}
								<img class="imgcanvas" src="{$item.upload_path}" border="0" class="icon" alt="" />
							{/if}
						</a>
					</div>
					<div style="padding-top: 5px;overflow:hidden;">
						<span class="float_left">{$lang.gallary.category}:&nbsp;</span>
						<a class="float_left" href="{$site_root}/{$seo.gallery}?sel=category&id_category={$item.category_id}&upload_type={$form.upload_type}">{$item.category_name|truncate:15:"...":true}</a>
					</div>
					<div style="padding-top: 3px;overflow:hidden;">
						<span class="float_left">{$lang.gallary.author}:&nbsp;</span>
						<a class="float_left" href="{$item.profile_link}" target="_blank">{$item.author_name|truncate:15:"...":true}</a>
					</div>
				</td>

				{if $smarty.foreach.uploads.iteration % 8 == 0}
					</tr>
				{/if}

				{/foreach}

				{if $smarty.foreach.countryiter.iteration % 5 != 0}
					<td colspan="{math equation="8 - x" x=$smarty.foreach.uploads.iteration}"></td></tr>
				{/if}					
			</table>
			</td>
		</tr>
		</table>
		</div>
	</div>
{/strip}
{include file="$gentemplates/$footer_tpl"}