<div class="con_heading">{$pagetitle}</div>

<div class="blog_type_menu">

        {if !$ownertype}
            <div class="blog_type_active"><div class="lang_post_strel">{$LANG.POSTS_RSS} ({$total})</div><span class="img_strelka"><img class="img_strelka" src="/templates/news_portal/images/strelka2.png"/></span></div>
        {else}
            <a class="blog_type_link" href="/blogs">{$LANG.POSTS_RSS}</a>
        {/if}

         {if $ownertype == 'all'}
            <div class="blog_type_active"><div class="lang_post_strel">{$LANG.ALL_BLOGS}</div><span class="img_strelka"><img class="img_strelka" src="/templates/news_portal/images/strelka2.png"/></span></div>
         {else}
            <a class="blog_type_link" href="/blogs/all.html">{$LANG.ALL_BLOGS}</a>
         {/if}

        {if $ownertype == 'single'}
            <div class="blog_type_active"><div class="lang_post_strel">{$LANG.PERSONALS}</div><span class="img_strelka"><img class="img_strelka" src="/templates/news_portal/images/strelka2.png"/></span></div>
        {else}
            <a class="blog_type_link" href="/blogs/single.html">{$LANG.PERSONALS}</a>
        {/if}

        {if $ownertype == 'multi'}
            <div class="blog_type_active"><div class="lang_post_strel">{$LANG.COLLECTIVES}</div><span class="img_strelka"><img class="img_strelka" src="/templates/news_portal/images/strelka2.png"/></span></div>
        {else}
            <a class="blog_type_link" href="/blogs/multi.html">{$LANG.COLLECTIVES}</a>
        {/if}

</div>

{* ============================== Список записей блога ==================================== *}
{if $posts}
	<div class="blog_entries">
		{foreach key=tid item=post from=$posts}
			<div class="blog_entry">
				<table width="100%" cellspacing="0" cellpadding="0" class="blog_records">
					<tr>
						<td width="" class="blog_entry_title_td">
							  <div class="blog_user"> <a class="blog_user2" href="{profile_url login=$post.login}"><img src="{$post.author_avatar}" title="{$post.author}"><br>{$post.author}</a><div class="blog_entry_title">
							   <span class="blog_entry_date">{if !$post.published}<span style="color:#CC0000">{$LANG.ON_MODERATE}</span>{else}{$post.fpubdate}{/if}</span>
                                <br>
								{if $post.blog_url}
                                    <a href="{$post.blog_url}" style="color:gray">{$post.blog_title}</a> &rarr;
                                {/if}
                                <a href="{$post.url}">{$post.title}</a>
                            </div>							
						</td>
					</tr>
					<tr>
						<td>
							<div class="blog_entry_text">{$post.content_html}</div>
							<div class="blog_comments">
                             
                             
                                <span class="post_karma">{$post.rating|rating}</span>
								{if ($post.comments_count > 0)}
									<a class="blog_comments_link" href="{$post.url}#c">{$post.comments_count|spellcount:$LANG.COMMENT:$LANG.COMMENT2:$LANG.COMMENT10}</a>
								{else}
									<a class="blog_comments_link" href="{$post.url}#c">{$LANG.NOT_COMMENTS}</a>
								{/if}
							{if $post.tagline != false}
								 <span class="tagline">{$post.tagline}</span>
							{/if}
							</div>
							<a class="podrobnee2" href="{$post.url}">Подробнее...</a>
							
						</td>
					</tr>
				</table>
			</div>
		{/foreach}		
	</div>	
	
	{$pagination}
{else}
	<p style="clear:both">{$LANG.NOT_POSTS}</p>
{/if}
