{include file='header.tpl' p="general"} 

<br />
<table width="886" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="150" valign="top">
	<div id="reg_box">
	<h3 class="captions">{$lang.genre}</h3>
		<div id="list_cats">
		{list_categories}		
		</div>
	</div>
	<br />
	<div id="reg_box">
	<h3 class="captions">{$lang.members}</h3>
	{if $logged_in == '1'}
	{include file='loggedin_body.tpl'} 
	{else}
	{include file='login_body.tpl'} 
	{/if}
	</div>	
	</td>
    <td valign="top">
	<div id="content_index">
	<table width="100%" border="0" cellspacing="1" cellpadding="3">
	  <tr>
		<td width="24%">
		{if $logged_in == '1' && $username == $s_username}
		<span class="avatar_border"><img src="{$avatar}" border="0" alt="" /><br /><a href="{$smarty.const._URL}/upload_avatar.{$smarty.const._FEXT}">{$lang.edit}</a></span>
		{else}
		<span class="avatar_border"><img src="{$avatar}" border="0" alt="" /></span>
		{/if}		</td>
		<td width="76%" valign="top">
		<h1 class="h1_default">{$username}'s {$lang.profile}</h1>
		{if $logged_in == '1' && $username == $s_username}
			<div id="profile_menu">

			<img src="{$smarty.const._URL}/templates/{$template_dir}/images/small_arrow.gif" width="3" height="5" alt="" align="absmiddle" /> <a href="{$smarty.const._URL}/edit_profile.{$smarty.const._FEXT}">{$lang.edit_profile}</a><br />
			<img src="{$smarty.const._URL}/templates/{$template_dir}/images/small_arrow.gif" width="3" height="5" alt="" align="absmiddle" /> <a href="{$smarty.const._URL}/upload_avatar.{$smarty.const._FEXT}">{$lang.update_avatar}</a>			</div>
		{/if}		</td>
	  </tr>
	  <tr>
		<td><strong>{$lang.gender}</strong>:</td>
		<td>{$gender}</td>
	  </tr>
	  <tr>
		<td><strong>{$lang.country}</strong>:</td>
		<td>{$country}</td>
	  </tr>
	  <tr>
		<td><strong>{$lang.member_since}</strong>:</td>
		<td>{$reg_date}</td>
	  </tr>
	  	
	  <tr>
		<td><strong>{$lang.status}</strong>:</td>
		<td>{$status}</td>
	  </tr>
	  <tr>
		<td><strong>{$lang.last_seen}</strong>:</td>
		<td>{$last_seen}</td>
	  </tr>
	  <tr>
	    <td colspan="2"><h2>{$lang.profile_socialfootprint}</h2></td>
	    </tr>
		  <tr>
		  <td colspan="2">
		  <div id="social_icons">
			{if isset($social_website) && $social_website != ''} 
				<a href="{$social_website}" target="_blank"><img src="{$smarty.const._URL}/templates/{$template_dir}/images/ico_social_site.png" width="16" height="16" alt="{$lang.profile_social_website}" border="0" /></a>
			{else}
				<img src="{$smarty.const._URL}/templates/{$template_dir}/images/ico_social_site.png" width="16" height="16" alt="{$lang.profile_social_website}" border="0" class="social_none" />
			{/if} 
			{if isset($social_facebook) && $social_facebook != ''}
				<a href="{$social_facebook}" target="_blank"><img src="{$smarty.const._URL}/templates/{$template_dir}/images/ico_social_fb.png" width="16" height="16" alt="{$lang.profile_social_fb}" border="0" /></a>
			{else}
				<img src="{$smarty.const._URL}/templates/{$template_dir}/images/ico_social_fb.png" width="16" height="16" alt="{$lang.profile_social_website}" border="0" class="social_none" />
			{/if}
			{if isset($social_twitter) && $social_twitter != ''}
				<a href="{$social_twitter}" target="_blank"><img src="{$smarty.const._URL}/templates/{$template_dir}/images/ico_social_twitter.png" width="16" height="16" alt="{$lang.profile_social_twitter}" border="0" /></a>
			{else}
				<img src="{$smarty.const._URL}/templates/{$template_dir}/images/ico_social_twitter.png" width="16" height="16" alt="{$lang.profile_social_twitter}" border="0" class="social_none" />
			{/if}
			{if isset($social_lastfm) && $social_lastfm != ''}
				<a href="{$social_lastfm}" target="_blank"><img src="{$smarty.const._URL}/templates/{$template_dir}/images/ico_social_lastfm.png" width="16" height="16" alt="{$lang.profile_social_lastfm}" border="0" /></a>
			{else}
				<img src="{$smarty.const._URL}/templates/{$template_dir}/images/ico_social_lastfm.png" width="16" height="16" alt="{$lang.profile_social_lastfm}" border="0" class="social_none" />
			{/if}
		  </div>
		  </td>
	  </tr>
	  <tr>
		<td colspan="2">
		{if !empty($about)}
		<h2>{$lang.about_me}</h2>
		{$about}		
		{/if}		</td>
		</tr>
	</table>
	</div>
	{if $favorite == 1}
	<br />
	<div id="content_index">
	<div id="fav_list">
		<h2>{$lang.my_favorites}</h2>
		 {if $items != ''}
		<table width="100%" border="0" cellspacing="0" cellpadding="3">
		  {$items}
		</table>
		 {else}
		 	{$lang.profile_msg_list_empty}
		 {/if}
	 </div>
	 {if $share_link != ''}
	 <div class="watch_all">
	 <img src="{$smarty.const._URL}/templates/{$template_dir}/images/ico_watchall.gif" align="absmiddle" /> <a href="{$share_link}" title="{$lang.profile_watch_all}">{$lang.profile_watch_all}</a>
	 </div>
	 {/if}
	</div>
	 {/if}
	
	{if count($submitted_videos) > 0}
	 <br />
	 <div id="content_index">
	 <div id="fav_list">
		<h2>{$lang.submittedby} {$username}</h2>
		<table width="100%" border="0" cellspacing="0" cellpadding="3">
		 
		 {foreach from=$submitted_videos key=k item=video}
		 <tr class="table_row1">
		 	<td width="49">
		 		<a href="{$video.link}"><img src="{$video.thumb}" class="imag" width="116" height="87" align="left"  alt="{$video.video_title}" /></a>
		 	</td>
			<td>
				<a href="{$video.link}"><span class="artist_name">{$video.artist}</span>
				<br />
				<span class="song_name">{$video.video_title}</span>
				</a>
			</td>
		 </tr>  
		{/foreach}
		
		</table>
		{if count($submitted_videos) == 5}
		<div class="watch_all">
	 	 <img src="{$smarty.const._URL}/templates/{$template_dir}/images/ico_watchall.gif" align="absmiddle" /> <a href="search.php?keywords={$username}&btn=Search&t=user" title="{$lang.profile_watch_all}">{$lang.profile_watch_all}</a>
	 	</div>
		{/if}
	 </div>
	{/if}
	</td>
    <td width="250" valign="top">
	<div id="top_videos">
	<h3 class="captions">{$lang.top_m_videos}</h3>
	{$top_videos}
	</div>
	</td>
  </tr>
</table>
{include file='footer.tpl'} 