<div class="news-summary" id="xnews-{$link_shakebox_index}"
	{if $link_shakebox_currentuser_reports gt 0}
	    style="opacity:0.3;filter:alpha(opacity = 30)"
	{/if}
	>
	
	{if $Voting_Method eq 1}
		{if $story_status eq "published"}
			<ul class="news-upcoming">
		{else}
			<ul class="news-upcoming2">
		{/if}
				<li class="vote-publish"><a id="xvotes-{$link_shakebox_index}" href="{$story_url}">{$link_shakebox_votes}</a></li>
				<li class="vote" id="xvote-{$link_shakebox_index}">
					{if $link_shakebox_currentuser_votes eq 0 && $link_shakebox_currentuser_reports eq 0}
						<a href="javascript:{$link_shakebox_javascript_vote}">{#PLIGG_Visual_Vote_For_It#}</a>
					{else}
						{if $link_shakebox_currentuser_reports neq 0}
							<span>{#PLIGG_Visual_Vote_Report#}</span>
						{else}
							{if $pagename eq "user" && $user_logged_in neq $link_submitter}
								<a href="javascript:{$link_shakebox_javascript_unvote}">{#PLIGG_Visual_Unvote_For_It#}</a>
							{else}
								<span>{#PLIGG_Visual_Vote_Cast#}</span>
							{/if}	
						{/if}
					{/if}
				</li>
			</ul>
	{/if}	

	{if $Voting_Method eq 2}
		<h4 id="ls_title-{$link_shakebox_index}">
			<ul class='star-rating{$star_class}' id="xvotes-{$link_shakebox_index}">
				<li class="current-rating" style="width: {$link_rating_width}px;" id="xvote-{$link_shakebox_index}"></li>
				<span id="mnmc-{$link_shakebox_index}">
					{if $link_shakebox_currentuser_votes eq 0}
						<li><a href="javascript:{$link_shakebox_javascript_vote_1star}" class='one-star'>1</a></li>
						<li><a href="javascript:{$link_shakebox_javascript_vote_2star}" class='two-stars'>2</a></li>
						<li><a href="javascript:{$link_shakebox_javascript_vote_3star}" class='three-stars'>3</a></li>
						<li><a href="javascript:{$link_shakebox_javascript_vote_4star}" class='four-stars'>4</a></li>
						<li><a href="javascript:{$link_shakebox_javascript_vote_5star}" class='five-stars'>5</a></li>
					{else}
						<li class='one-star-noh'>1</li>
						<li class='two-stars-noh'>2</li>
						<li class='three-stars-noh'>3</li>
						<li class='four-stars-noh'>4</li>
						<li class='five-stars-noh'>5</li>
					{/if}
				</span>
			</ul>
		</h4>
	{/if}

	<div class="top"> 
		<div class="toptitle" id="ls_thetitle-{$link_shakebox_index}">
		<input type="hidden" id="link_id-{$link_shakebox_index}" value="{$link_id}">
			{if $use_title_as_link eq true}
				{if $url_short neq "http://" && $url_short neq "://"}
					{if $isadmin eq "yes" && ($pagename eq "published" || $pagename eq "upcoming")}
							<span id="ttl-{$link_shakebox_index}">{$title_short}</span>
							<script type="text/javascript">makeEditable('ttl-{$link_shakebox_index}');</script> 
					{else}
						<a href="{$url}" {if $open_in_new_window eq true} target="_blank"{/if}>{$title_short}</a>
					{/if}
				{else}
					{if $isadmin eq "yes" && ($pagename eq "published" || $pagename eq "upcoming")}
							<span id="ttl-{$link_shakebox_index}">{$title_short}</span>
							<script type="text/javascript">makeEditable('ttl-{$link_shakebox_index}');</script>
					{else}
						<a href="{$story_url}">{$title_short}</a>
					{/if}
				{/if}
		     {else}
				{if $pagename eq "story"}
						<a href="{$url}">{$title_short}</a>
				{else} 
					{if $isadmin eq "yes" && ($pagename eq "published" || $pagename eq "upcoming")}
							<span id="ttl-{$link_shakebox_index}">{$title_short}</span>
							<script type="text/javascript">makeEditable('ttl-{$link_shakebox_index}');</script>
					{else}
						<a href="{$story_url}">{$title_short}</a>
					{/if}
				{/if}
			{/if}        
		</div>

		<div class="news-submitted">
			{if $use_thumbnails eq true && $pagename eq "story" && $url_short neq "http://" && $url_short neq "://"}
				<b><img src="http://images.websnapr.com/?url={$url_short}&size=T" style="float:right; padding-left:10px;padding-top:35px;"></b>
			{/if}
			
			<a href="javascript://" onclick="show_hide_user_links(document.getElementById('userlinks-{$link_shakebox_index}'));">		
			{if $UseAvatars neq "0"}<span id="ls_avatar-{$link_shakebox_index}"><img src="{$Avatar_ImgSrc}" alt="Avatar" /></span>{/if}
			</a>
			
			<span id="ls_posted_by-{$link_shakebox_index}">{#PLIGG_Visual_LS_Posted_By#} </span>
				{if $link_submitter neq $user_logged_in}			
					<a href="javascript://" onclick="show_hide_user_links(document.getElementById('userlinks-{$link_shakebox_index}'));">
				{else}
					<a href="{$submitter_profile_url}">
				{/if}
			<span id="ls_link_submitter-{$link_shakebox_index}">{$link_submitter}</span></a>
			
			<span id="ls_timeago-{$link_shakebox_index}">{$link_submit_timeago} {#PLIGG_Visual_Comment_Ago#}			
				{if $Voting_Method eq 2} - <strong>{#PLIGG_Visual_Vote_Average#}: <span id="mnma-{$link_shakebox_index}">{$link_rating}</span> {#PLIGG_Visual_Vote_Average_With#} <span id="mnmb-{$link_shakebox_index}">{$vote_count}</span> {#PLIGG_Visual_Vote_Average_Votes#}</strong>{/if}
			</span>
			
			<span id="ls_story_link-{$link_shakebox_index}">
				{if $url_short neq "http://" && $url_short neq "://"}
					(<a href="{$url}" {if $open_in_new_window eq true} target="_blank"{/if}>{$url_short}</a>)
				{else}
					({$No_URL_Name})
				{/if}
			</span>
				{if $isadmin eq "yes" || $user_logged_in eq $link_submitter}
					<span id="adminlinksbuttom"> | <a href="javascript://" onclick="var replydisplay=document.getElementById('ls_adminlinks-{$link_shakebox_index}').style.display ? '' : 'none';document.getElementById('ls_adminlinks-{$link_shakebox_index}').style.display = replydisplay;">{#PLIGG_Visual_Admin_Links#}</a></span>
				{/if}	
				{if $isadmin eq "yes"}
					| <a href="{$my_pligg_base}/delete.php?link_id={$link_id}">Delete</a>
				{/if}
			<span id="userlinks-{$link_shakebox_index}" style="display:none;">
			<a href = "{$submitter_profile_url}">{#PLIGG_Visual_LS_View_Profile#}</a>  
				{if $FriendMD5 neq ""}
					| 
					{if $Allow_Friends eq 1}
						<a href ="{$user_add_remove}">{$Friend_Text} {#PLIGG_Visual_LS_My_Friends#}</a>
					{/if}
				{/if}
			</span>
			<br/>
			
			{if $link_category neq ""}
				{if $isadmin eq "yes" && $pagename neq "story"}
					<span id="ls_category-{$link_shakebox_index}" style="float:left;"><b><a href="{$category_url}" style='text-decoration:none;'>{#PLIGG_MiscWords_Category#}</a></b>:</span> <span id="cat-{$link_shakebox_index}">{$link_category}</span><script type="text/javascript">makeEditable('cat-{$link_shakebox_index}');</script>
				{else}
					<span id="ls_category-{$link_shakebox_index}"><b><a href="{$category_url}" style='text-decoration:none;'>{#PLIGG_MiscWords_Category#}</a></b>: <a href="{$category_url}">{$link_category}</a></span>
				{/if}
			{else}
				<br/>
			{/if}
				
			{if $enable_tags eq 'true'}
				{if $tags ne ''}
					| 
					{if $isadmin eq "yes" && ($pagename eq "published" || $pagename eq "upcoming")}
						<span id="ls_tags-{$link_shakebox_index}"><b><a href="{$URL_tagcloud}" title="Tags" style='text-decoration: none;'>{#PLIGG_Visual_Tags_Link_Summary#}</a></b>: </span> 
						<span id="tag-{$link_shakebox_index}">{$tags}</span>
						<script type="text/javascript">makeEditable('tag-{$link_shakebox_index}');</script> 
					{else}
						<span id="ls_tags-{$link_shakebox_index}"><b><a href="{$URL_tagcloud}" title="Tags" style='text-decoration: none;'>{#PLIGG_Visual_Tags_Link_Summary#}</a></b>: 
						{section name=thistag loop=$tag_array}
							<a href="{$tags_url_array[thistag]}" style='text-decoration: none;'>{$tag_array[thistag]}</a>
						{/section}
						</span> 
					{/if}
				{/if}
			{/if}			
				
			<span id="ls_adminlinks-{$link_shakebox_index}" style="display:none">
				{if $isadmin eq "yes"}
					<span id="ls_admin_links-{$link_shakebox_index}">
						<br /><a href="{$story_edit_url}">{#PLIGG_Visual_LS_Admin_Edit#}</a>
						<br /><a href="{$story_admin_url}">{#PLIGG_Visual_LS_Admin_Status#}</a>
				  		{checkActionsTpl location="tpl_link_summary_admin_links"}
					</span>
				{else}
					{if $user_logged_in eq $link_submitter}
						<span id="ls_user_edit_links-{$link_shakebox_index}"><br /><a href="{$story_edit_url}">{#PLIGG_Visual_LS_Admin_Edit#}</a></span>
					{/if}
				{/if}
			</span>
			
		</div>

		{if $viewtype neq "short"}
		    <span class="news-body-text">
		  		<span id="ls_contents-{$link_shakebox_index}">
			  			{if $isadmin eq "yes" && ($pagename eq "published" || $pagename eq "upcoming")}
							<span id="cont-{$link_shakebox_index}">
						  		{checkActionsTpl location="tpl_link_summary_pre_story_content"}
								{if $show_content neq 'FALSE'}
									{$story_content}
								{/if}
							</span>
							<script type="text/javascript">makeEditable('cont-{$link_shakebox_index}');</script>
						{else}
							{checkActionsTpl location="tpl_link_summary_pre_story_content"}
							{if $show_content neq 'FALSE'}
								{$story_content}
							{/if}
						{/if}

					{if $Enable_Extra_Field_1 eq 1}{if $link_field1 neq ""}<br/><b>{$Field_1_Title}:</b> {$link_field1}{/if}{/if}
					{if $Enable_Extra_Field_2 eq 1}{if $link_field2 neq ""}<br/><b>{$Field_2_Title}:</b> {$link_field2}{/if}{/if}
					{if $Enable_Extra_Field_3 eq 1}{if $link_field3 neq ""}<br/><b>{$Field_3_Title}:</b> {$link_field3}{/if}{/if}
					{if $Enable_Extra_Field_4 eq 1}{if $link_field4 neq ""}<br/><b>{$Field_4_Title}:</b> {$link_field4}{/if}{/if}
					{if $Enable_Extra_Field_5 eq 1}{if $link_field5 neq ""}<br/><b>{$Field_5_Title}:</b> {$link_field5}{/if}{/if}
					{if $Enable_Extra_Field_6 eq 1}{if $link_field6 neq ""}<br/><b>{$Field_6_Title}:</b> {$link_field6}{/if}{/if}
					{if $Enable_Extra_Field_7 eq 1}{if $link_field7 neq ""}<br/><b>{$Field_7_Title}:</b> {$link_field7}{/if}{/if}
					{if $Enable_Extra_Field_8 eq 1}{if $link_field8 neq ""}<br/><b>{$Field_8_Title}:</b> {$link_field8}{/if}{/if}
					{if $Enable_Extra_Field_9 eq 1}{if $link_field9 neq ""}<br/><b>{$Field_9_Title}:</b> {$link_field9}{/if}{/if}
					{if $Enable_Extra_Field_10 eq 1}{if $link_field10 neq ""}<br/><b>{$Field_10_Title}:</b> {$link_field10}{/if}{/if}
					{if $Enable_Extra_Field_11 eq 1}{if $link_field11 neq ""}<br/><b>{$Field_11_Title}:</b> {$link_field11}{/if}{/if}
					{if $Enable_Extra_Field_12 eq 1}{if $link_field12 neq ""}<br/><b>{$Field_12_Title}:</b> {$link_field12}{/if}{/if}
					{if $Enable_Extra_Field_13 eq 1}{if $link_field13 neq ""}<br/><b>{$Field_13_Title}:</b> {$link_field13}{/if}{/if}
					{if $Enable_Extra_Field_14 eq 1}{if $link_field14 neq ""}<br/><b>{$Field_14_Title}:</b> {$link_field14}{/if}{/if}
					{if $Enable_Extra_Field_15 eq 1}{if $link_field15 neq ""}<br/><b>{$Field_15_Title}:</b> {$link_field15}{/if}{/if} 		  			
					{if $pagename neq "story"} <a href="{$story_url}">{#PLIGG_Visual_Read_More#}</a> &raquo; {/if}<br /> 
		  		</span>
		    </span>
	  	{/if}
		
	    <span class="news-details">
	    	<span id="ls_comments_url-{$link_shakebox_index}">
	    		{if $story_comment_count eq 0}
					
	    			<span id="linksummaryDiscuss"><a href="{$story_url}" class="comments">{#PLIGG_MiscWords_Discuss#}</a> &nbsp;</span>
	    		{/if}
	    		{if $story_comment_count eq 1}
	    			<span id="linksummaryHasComment"><a href="{$story_url}" class="comments2">{$story_comment_count} {#PLIGG_MiscWords_Comment#}</a> &nbsp;</span>
	    		{/if}
	    		{if $story_comment_count gt 1}
	    			<span id="linksummaryHasComment"><a href="{$story_url}" class="comments2">{$story_comment_count} {#PLIGG_MiscWords_Comments#}</a> &nbsp;</span>
	    		{/if}
	    	</span>  
	    	
			{if $Enable_AddTo eq 1}
				<span id="linksummaryAddLink">
					<a href="javascript://" onclick="var replydisplay=document.getElementById('addto-{$link_shakebox_index}').style.display ? '' : 'none';document.getElementById('addto-{$link_shakebox_index}').style.display = replydisplay;"> {#PLIGG_Visual_LS_AddThisLinkTo#}</a>&nbsp;
				</span>
			{/if}
				
			{if $user_logged_in neq ""}
				<iframe height="0px;" width="0px;" frameborder="0" name="add_stories"></iframe>
				{if $link_mine eq 0}
					<span id="linksummarySaveLink"><a target="add_stories" href="{$user_url_add_links}" onclick="show_hide_user_links(document.getElementById('stories-{$link_shakebox_index}'));">{#PLIGG_MiscWords_Save_Links_Save#}</a>&nbsp;
				{else}
					<span id="linksummaryRemoveLink"><a target="add_stories" href="{$user_url_remove_links}" onclick="show_hide_user_links(document.getElementById('stories-{$link_shakebox_index}'));">{#PLIGG_MiscWords_Save_Links_Remove#}</a>&nbsp;
				{/if}
					</span>
					<span id="stories-{$link_shakebox_index}" style="display:none;"> &raquo; {#PLIGG_MiscWords_Save_Links_Success#} <a href="{$user_url_saved}">{#PLIGG_MiscWords_Save_Links_Go_To_Saved#}</a></span> &nbsp;
			{/if}				
	
			{if $Enable_Recommend eq 1 && $user_logged_in neq ""}
				<span id="ls_recommend-{$link_shakebox_index}">
					<span id="linksummaryTellFriend">
						<a href="javascript://" onclick="show_recommend({$link_shakebox_index}, {$link_id}, '{$instpath}');"> {#PLIGG_Visual_Recommend_Link_Text#}</a> &nbsp;
					</span>
				</span> 
			{/if}		
				
			{if $link_shakebox_currentuser_votes eq 0 && $link_shakebox_currentuser_reports eq 0}
				<span id="xreport-{$link_shakebox_index}"><span id="linksummaryBury"><a href="javascript:{$link_shakebox_javascript_report}">{#PLIGG_Visual_Vote_Bury#}</a></span></span>
			{/if}
 		
			{if $Enable_AddTo eq 1}
				<span id="addto-{$link_shakebox_index}" style="display:none"><br />{#PLIGG_Visual_LS_AddTo#}
					&nbsp;&nbsp;<a title="submit '{$title_short}' to del.icio.us" href="http://del.icio.us/post" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url={$enc_url}&amp;title={$enc_title_short}', '{#PLIGG_Visual_LS_Delicious#}','toolbar=no,width=700,height=400'); return false;"><img src="{$my_base_url}{$my_pligg_base}/templates/{$the_template}/images/delicious.png" border="0" alt="submit '{$title_short}' to del.icio.us" /></a>
					&nbsp;&nbsp;<a title="submit '{$title_short}' to digg" href="http://digg.com/submit?phase=2&amp;url={$enc_url}&amp;title={$title_short}&amp;bodytext={$story_content}"><img src="{$my_base_url}{$my_pligg_base}/templates/{$the_template}/images/digg.png" border="0" alt="submit '{$title_short}' to digg" /></a>
					&nbsp;&nbsp;<a title="submit '{$title_short}' to reddit" href="http://reddit.com/submit?url={$enc_url}&amp;title={$title_short}"><img src="{$my_base_url}{$my_pligg_base}/templates/{$the_template}/images/reddit.gif" border="0" alt="submit '{$title_short}' to reddit" /></a>
					&nbsp;&nbsp;<a title="submit '{$title_short}' to Pligg" href="http://pligg.com/submit.php?url={$enc_url}&amp;title={$title_short}"><img src="{$my_base_url}{$my_pligg_base}/templates/{$the_template}/images/pligg.png" border="0" alt="submit '{$title_short}' to Pligg" /></a>
					&nbsp;&nbsp;<a title="submit '{$title_short}' to yahoo" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u={$enc_url}&amp;title={$title_short}"><img src="{$my_base_url}{$my_pligg_base}/templates/{$the_template}/images/yahoomyweb.png" border="0" alt="submit '{$title_short}' to yahoo" /></a>
					&nbsp;&nbsp;|&nbsp;&nbsp; <a href="javascript:bookmarksite('{$title_url}', '{$enc_url}')">{#PLIGG_Visual_LS_Fav_Book#}</a>&nbsp;&nbsp;
				</span>
			{/if}	
				
			{if $Enable_Recommend eq 1}
				{if $Recommend_Type eq 1}
					<span id="emailto-{$link_shakebox_index}" style="display:none"></span>
				{/if}
			{/if}

			{checkActionsTpl location="tpl_link_summary_end"}
		</span>
	</div>	
</div>
