<a id="c{$comment_id}"></a>
{checkActionsTpl location="tpl_pligg_story_comments_single_start"}
<div class="comment-wrap">
	<div class="comment-left"> 	
		{if $UseAvatars neq "0"}<img src="{$Avatar_ImgSrc}" align="absmiddle"/><br />{/if}      
		<div class="subtext">
			{#PLIGG_Visual_Comment_WrittenBy#} {if $is_anonymous}<b>Unregistered</b>{/if} <span style="text-transform:capitalize"><a href="{$user_view_url}">{$user_username}</a></span><br />
			{$comment_age} {#PLIGG_Visual_Comment_Ago#} 
			{if $comment_votes lt 0}
				<br /><span id = "show_hide_comment_content-{$comment_id}"> <a href = "javascript://"  onclick="var replydisplay=document.getElementById('comment_content-{$comment_id}').style.display ? '' : 'none'; document.getElementById('comment_content-{$comment_id}').style.display = replydisplay;">{#PLIGG_Visual_Comment_Show_Hide#}</a></span>
			{/if} 
		</div>
	</div>
	
	<img src="{$my_pligg_base}/templates/thestandard/images/comment-top-main.gif" alt=""  />

	<div class="comment-right" id="wholecomment{$comment_id}"> 
		{if $comment_votes gte 0} 
			<span id="comment_content-{$comment_id}">{$comment_content}</span> 
		{else}
			<span id = "comment_content-{$comment_id}" style="display:none">{$comment_content}</span>
		{/if}
	</div>	  

	
		<div class="subtext commenttools">
			{if $comment_parent eq 0 && $current_userid neq 0} 
				<a href = "javascript://" onClick="var replydisplay=document.getElementById('reply-{$comment_id}').style.display ? '' : 'none'; document.getElementById('reply-{$comment_id}').style.display = replydisplay;">{#PLIGG_Visual_Comment_Reply#}</a>
			{/if}
			
			{if $Enable_Comment_Voting eq 1}
				{if $comment_user_vote_count eq 0 && $current_userid neq $comment_author}
					<span id="ratebuttons-{$comment_id}">	  
						<a href="javascript:{$link_shakebox_javascript_voten}" style='text-decoration:none;'>- </a> 
						<a id="cvote-{$comment_id}" style='text-decoration: none;'>{$comment_votes}</a> 
						<a href="javascript:{$link_shakebox_javascript_votey}" style='text-decoration:none;'> +</a> 
					</span>
				{/if}
			{/if}
			
			{if $hide_comment_edit neq 'yes'}
				{if $isadmin eq 1}
					| <a href="{$edit_comment_url}">{#PLIGG_Visual_Comment_Edit#}</a> | <a href="{$delete_comment_url}">{#PLIGG_Visual_Comment_Delete#}</a>
				{else}	  
					{if $user_username eq 'you'}
						| <a href="{$edit_comment_url}">{#PLIGG_Visual_Comment_Edit#}</a> 
					{/if}
				{/if}
			{/if} 
			
		</div>
		<br clear="all" />
	{if $comment_parent eq 0 && $current_userid neq 0} 
	{* display comment form if replying to a comment *}
		<div class="inline-comment" id="reply-{$comment_id}" style="display:none;"> 
			<fieldset><legend>{#PLIGG_Visual_Comment_Send#}</legend>
				<form action="" method="POST" id="thisform" style="display:inline;">
					<label>{#PLIGG_Visual_Comment_NoHTML#}</label>
					<textarea name="reply_comment_content-{$comment_id}" id="reply_comment_content-{$comment_id}" rows="3" cols="62"/>{$TheComment}</textarea><br/>			  
					{if $Spell_Checker eq 1}<input type="button" name="spelling" value="{#PLIGG_Visual_Check_Spelling#}" onClick="openSpellChecker('reply_comment_content-{$comment_id}');" class="log2"/>{/if}
					<input type="submit" name="submit" value="{#PLIGG_Visual_Comment_Submit#}" class="log2" />
					<input type="hidden" name="process" value="newcomment" />
					<input type="hidden" name="randkey" value="{$rand}" />
					<input type="hidden" name="link_id" value="{$comment_link}" />
					<input type="hidden" name="comment_parent_id" value="{$comment_id}" />
					<input type="hidden" name="user_id" value="{$current_userid}" />
				</form>	
			</fieldset>
		</div>
	{/if}	
	  	
</div>
{checkActionsTpl location="tpl_pligg_story_comments_single_end"}
<br clear="all" />
