<!-- BEGIN: MAIN -->
<link rel="stylesheet" href="plugins/cotsocial/tpl/style.css" type="text/css" media="screen"/>

<!-- BEGIN: MESSAGES -->
<div class="warning">{MESSAGE}</div>
<!-- END: MESSAGES -->

<div class="col3-2 first">

	<!-- BEGIN: NOT_FRIENDS -->
	<div class="block">

		<div class="users blockheader">
			{PHP.urr.user_name}'s Wall
			<p class="floatright"><!-- IF {PHP.urr.user_id} == {PHP.usr.id} -->&nbsp;<!-- ELSE --><a class="btn" href="{ADD_FRIEND_LINK}"><span><span>{PHP.L.cotsocial_friendrequest}</span></span></a><!-- ENDIF --></p>
		</div>
		
	</div>
	<!-- END: NOT_FRIENDS -->
	
	<!-- BEGIN: ARE_FRIENDS -->
	<div class="block">
	
		<div class="users blockheader">
			{PHP.urr.user_name}'s Wall
			<p class="floatright"><!-- IF {PHP.urr.user_id} == {PHP.usr.id} -->&nbsp;<!-- ELSE --><a class="btn" href="{REMOVE_FRIEND_LINK}"><span><span>{PHP.L.cotsocial_removefriend}</span></span></a><!-- ENDIF --></p>
		</div>
		
		<h4>Post on {PHP.urr.user_name}'s wall</h4>
		<form method="post" action="{WALL_FORM}">
			<input type="text" name="message" value="{PHP.L.cotsocial_write}" onfocus="if (this.value == '{PHP.L.cotsocial_write}') {this.value=''}" onblur="if(this.value == '') {this.value='{PHP.L.cotsocial_write}'}">
			<input type="hidden" name="parent" value="0">
			<div style="display:none;"><input type="submit" name="submit" value="Send"></div>
		</form>
	
	</div>
	<!-- END: ARE_FRIENDS -->
	
	<!-- BEGIN: USER_WALL -->

		<!-- BEGIN: USER_WALL_PARENT -->
		
			<div class="outer-parent"> 
				<div class="inner" id="avatar">
					<!-- IF {USERWALL_PARENT_AVATAR} -->
					<img src="{USERWALL_PARENT_AVATAR}" class="avatar photo" height="35" width="35" />
					<!-- ELSE -->
					<img src="plugins/cotsocial/images/no-avatar.png" class="avatar photo" height="35" width="35" />
					<!-- ENDIF -->
				</div>
				<div class="inner" id="comment-holder">
					<div id="text">
						<a href="index.php?e=users&m=details&id={USERWALL_PARENT_FROMUSER}&u={USERWALL_PARENT_FROMUSERNAME}">{USERWALL_PARENT_FROMUSERNAME}</a><br />
						{USERWALL_PARENT_MESSAGE}
					</div>
					<div class="ago">{USERWALL_PARENT_DATE}</div>
				</div>
				<!-- IF {USERWALL_PARENT_ONUSER} == {PHP.usr.id} OR {USERWALL_PARENT_FROMUSER} == {PHP.usr.id} --><div class="delete"><a href="{PARENT_REMOVE_URL}"><img src="plugins/cotsocial/images/blank.gif" width="15" height="15"></a></div><!-- ENDIF -->
				<br style="clear:both" />
			</div>

			<div class="fb-comment-holder">
				<div class="main-holder">

					<!-- BEGIN: USER_WALL_SIBLING -->
					<div class="outer"> 
						<div class="inner" id="avatar">
							<!-- IF {USERWALL_SIBLING_AVATAR} -->
							<img src="{USERWALL_SIBLING_AVATAR}" class="avatar photo" height="35" width="35" />
							<!-- ELSE -->
							<img src="plugins/cotsocial/images/no-avatar.png" class="avatar photo" height="35" width="35" />
							<!-- ENDIF -->
						</div>
						<div class="inner" id="comment-holder">
							<div id="text"><a href="index.php?e=users&m=details&id={USERWALL_SIBLING_FROMUSER}&u={USERWALL_SIBLING_FROMUSERNAME}">{USERWALL_SIBLING_FROMUSERNAME}</a> {USERWALL_SIBLING_MESSAGE}</div>
							<div class="ago">{USERWALL_SIBLING_DATE}</div>
						</div>
						<!-- IF {USERWALL_SIBLING_ONUSER} == {PHP.usr.id} OR {USERWALL_SIBLING_FROMUSER} == {PHP.usr.id} --><div class="delete"><a href="index.php?e=users&m=details&id={PHP.urr.user_id}&action=remove&wid={USERWALL_SIBLING_ID}"><img src="plugins/cotsocial/images/blank.gif" width="15" height="15"></a></div><!-- ENDIF -->
						<br style="clear:both" />
					</div>
					<!-- END: USER_WALL_SIBLING -->
					
				</div>
					
				<!-- IF {PHP.usr.id} -->
				<div id="post-comment">
					<div class="lightText" style="font-size:11px;font-family:verdana;">
						<form method="post" action="{POST_FORM}">
							<input type="text" id="uemail" style="width:99%;" name="message" value="{PHP.L.cotsocial_comment}" onfocus="if (this.value == '{PHP.L.cotsocial_comment}') {this.value=''}" onblur="if(this.value == '') {this.value='{PHP.L.cotsocial_comment}'}">
							<input type="hidden" name="parent" value="{USERWALL_PARENT_ID}">
							<input style="display:none;" type="submit" value="submit">
						</form>
					</div>
				</div>
				<!-- ENDIF -->
			</div>
			
		<!-- END: USER_WALL_PARENT -->

	<!-- END: USER_WALL -->
	
</div>

<div class="col3-1">

	<div class="block">

		<h2 class="users">{PHP.urr.user_name}</h2>
		
		<p class="small">
			{USERS_DETAILS_AGE} {PHP.L.cotsocial_yearold} {USERS_DETAILS_GENDER} 
			<!-- BEGIN: USERS_DETAILS_ADMIN --> &nbsp; [ {USERS_DETAILS_ADMIN_EDIT} ]<!-- END: USERS_DETAILS_ADMIN -->
		</p>
		
		<br />

		<div class="blockbody">	

			<center>
			<!-- IF {USERS_DETAILS_PHOTO} -->
			{USERS_DETAILS_PHOTO}
			<!-- ELSE -->
			<img src="plugins/cotsocial/images/no-photo.jpg" class="userimg photo">
			<!-- ENDIF -->
			</center>

		</div>

	</div>
	
	<div class="block">

		<h2 class="users">{PHP.L.cotsocial_friends} ({COTSOCIAL_TOTAL_FRIENDS})</h2>
		
		<table width="100%">
		
			<!-- BEGIN: FRIENDS_LIST -->
			<tr>
				<td width="35" height="35">
				<!-- IF {FRIENS_LIST_AVATAR} -->
				<img src="{FRIENS_LIST_AVATAR}" class="avatar" height="35" width="35" />
				<!-- ELSE -->
				<img src="plugins/cotsocial/images/no-avatar.png" class="avatar" height="35" width="35" />
				<!-- ENDIF -->
				</td> 
				<td class="friends-list"><a href="index.php?e=users&m=details&id={FRIENS_LIST_FRIENDID}&u={FRIENS_LIST_FRIENDNAME}">{FRIENS_LIST_FRIENDNAME}</a></td>
			</tr>
			<!-- END: FRIENDS_LIST -->
			
		</table>

	</div>

</div>
<!-- END: MAIN -->