{if $links_top}
<div style="display:table;width:100%;">
	<div class="float_right" style="padding: 15px 0;">
		{include file="$gentemplates/pagination_top.tpl"}
	</div>
</div>
{/if}
<div class="subcategory_forum">
	<dl>
		<dt class="norm_width" style="width:145px;"><b>{$lang.forum.author}</b></dt>
		<dt class="max_width" style="width:465px;"><b>{$lang.forum.message}</b></dt>
		<dt class="min_width" style="width:98px;"><b>{$lang.forum.actions}</b></dt>
	</dl>
	{section name=f loop=$forum}
	<div class="main_div{if $smarty.section.f.last}{else} pagination_top{/if}">
		<div class="min_width" style="width:140px;">
			<div>
				{if $forum[f].poster_profile eq 1}
					<a href="{$forum[f].profile_link}" target="_blank">
				{/if}
				<b>{$forum[f].login_user}</b>
				{if $forum[f].poster_profile eq 1}</a>{/if}
			</div>
			<div>
				{$forum[f].date}
			</div>
		</div>
		<div class="max_width" style="width:455px;">			
			<p style="width:455px;">{$forum[f].subject}</p>			
			<div style="width:455px;" class="wysiwyg_content">{$forum[f].message}</div>
		</div>
		<div class="norm_width icons" style="width:106px;">
			{if $user_id ne '2'}
				<a href="{$file_name}?sel=quote&amp;id_post={$forum[f].id}" title="{$lang.forum.quote}" class="quote-icon">&nbsp;</a>
			{/if}
			{if $forum[f].is_author eq 1 || $id_creator_subcategory ne 0}		
				<a href="{$file_name}?sel=edit_post&id_post={$forum[f].id}" title="{$lang.forum.edit}" class="edit-icon">&nbsp;</a>
				<a class="delete-icon" title="{$lang.forum.delete}" onclick="{literal} if (confirm('{/literal}{$lang.forum.del_confirm|escape:javascript}{literal}')) { document.location.href='{/literal}{$file_name}?sel=delete_post&id_post={$forum[f].id}{literal}'}; return false;{/literal}">&nbsp;</a>
			{/if}
		</div>
		
		<div class="float_right sharing soc">
			<table>
				<tr>{if $use_forum_sharing_tools_2}
					{literal}
					<td width="136">
						<a target="_blank" class="mrc__plugin_uber_like_button" href="http://connect.mail.ru/share" data-mrc-config="{'nt' : '1', 'cm' : '1', 'ck' : '1', 'sz' : '20', 'st' : '3'}">
							{/literal}{$lang.button.send}{literal}
						</a>
						<script src="http://cdn.connect.mail.ru/js/loader.js" type="text/javascript" charset="UTF-8"></script>
					</td>
					<td>
						<div style="padding-right: 8px;">
							<script type="text/javascript">
							var vk_text = "{/literal}{$lang.button.like}{literal}";
							<!--
							document.write(VK.Share.button(false,{type: "button", text: vk_text}));
							--></script>
						</div>
					</td>
					{/literal}
					{/if}
					{if $use_forum_sharing_tools_1}
					<td>
						<div class="fb-like" data-href="{$data.link_social_like}#breadcrumbs_{$smarty.section.f.index}" data-send="false" data-layout="button_count" data-width="150" data-show-faces="false"></div>
					</td>
					<td>
						<a href="https://twitter.com/share" class="twitter-share-button" data-url="{$data.link_social_like}#breadcrumbs_{$smarty.section.f.index}" data-count="horizontal" data-text="{$forum[f].subject}" data-via="" data-lang="en"></a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>
					</td>
					<td>
						<span class="g">
							<g:plusone href="{$data.link_social_like}#breadcrumbs_{$smarty.section.f.index}"></g:plusone>
						</span>
					</td>
				{/if}
				</tr>
			</table>
		</div>
		
	</div>
	{/section}						
</div>
{include file="$gentemplates/pagination_bottom.tpl"}