{include file="$gentemplates/$header_tpl"}
{strip}
	<div class="header">{$lang.mobile.my_wall}</div>
	<div class="profile_page">
		<div class="subheader">{$lang.mobile.rating}</div>
		<div><b>{$lang.mobile.current_rating}:</b></div>
	    <div class="rating">
	        {$data_10.current_rating_bar}
	        <div id="rate_value">{$data_10.current_rating}</div>
	        <div class="clear"></div>
		</div>
		<div>
	    	{$lang.mobile.all_vote}: {$data_10.all_vote}
	    </div>
		{*if $data_10.user_tags}
		<!-- begin tags list -->
		<div class="wall_delimiter">&nbsp;</div>
		<div id="user_tags">
			<div class="subheader">{$lang.mobile.users_tag_myprofile}</div>
			<div>
				{section name=s loop=$data_10.user_tags}
				{$data_10.user_tags[s].tag}
				&nbsp;<a href="{$data_10.user_tags[s].dellink}"><b>x</b></a>&nbsp;&nbsp;
				{/section}
			</div>
		</div>
		<!-- end tags list -->
		{/if*}
		<div class="wall_delimiter">&nbsp;</div>
	</div>
	
	{if $events.events}
		<div class="profile_page"><div class="subheader">{$lang.mobile.comments}</div></div>
		<div class="wall_events">
			{foreach from=$events.events item=e key=key}
				{if $e.user_info}
					{assign var=event_count value=$e.data_format|@count}
					{if $event_count > 1}{assign var=lang_gid value=$e.gid|cat:'_m'}{else}{assign var=lang_gid value=$e.gid}{/if}
					<div id="wall_events_item_{$e.id}" class="wall_events_item">
						<div class="wall_events_user_icon">
							<a href="{$e.user_info.profile_link}" class="imgcanvas_container"><img class="imgcanvas" src="{$e.user_info.icon_url}{if !$e.user_info.icon_default}main_thumb_{/if}{$e.user_info.icon_file}" title="avatar" /></a>
						</div>
						<div class="wall_events_descr">
							<div>
								<span><a href="{$e.user_info.profile_link}">{$e.user_info.name}</a></span>
								&nbsp;<span>({$e.date_str})</span>
								{if $e.id_del}&nbsp;<a class="float_right" href="homepage.php?sel=delcomment&id_comment={$e.id_del}">{$lang.button.delete}</a>{/if}
							</div>
							<div class="wall_events_event">
								<div class="wall_events_text">{$lang.wall_events[$lang_gid]}</div>
								{foreach from=$e.data_format item=item name=fe}
									{assign var=item_n value=$smarty.foreach.fe.iteration}
									{if $e.gid == 'wall'}
										<div class="wall_events_text">
											<p>{$item.text|nl2br}</p>
										</div>
									{/if}
								{/foreach}
							</div>
						</div>
					</div>
				{/if}
			{/foreach}
		</div>
	{/if}
	
    <div class="profile_page">
		<div class="subheader">{$lang.mobile.add_comment}</div>
		<form method=post action="homepage.php" style="margin: 0px;">
		<input type="hidden" name="sel" value="comment">
		<div>
			<textarea name="message" id="message" rows=5>{$message}</textarea>
		</div>
		<div>
		{if $error}<div>{$error}</div>{/if}
		<input type="submit" class="button" value="{$lang.mobile.submit}">
		</div>
		</form>
		<br><br>
		<input type="button" value="{$lang.mobile.back_to_home}" class="button" onclick="document.location.href='homepage.php'" />
    </div>
{/strip}
{include file="$gentemplates/$footer_tpl"}