{include file='header.tpl' p="article"} 

<br />
<table width="886" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="150" valign="top">
	<div id="reg_box">
	<h3 class="captions">{$lang.articles}</h3>
		<div id="list_cats">
		<ul>
		    {$article_categories}
		</ul>
		</div>
	</div>
	<br />
	<div id="reg_box">
	<h3 class="captions">{$lang.members}</h3>
	{if $logged_in == '1'}
	{include file='loggedin_body.tpl'} 
	{else}
	{include file='login_body.tpl'} 
	{/if}
	</div>
	{if ($show_tags == 1) && (count($tags) > 0)}
	<br />
	<div id="reg_box">
	<h3 class="captions">{$lang.tags}</h3>
	<br />
	{foreach from=$tags item=tag key=k}
		{$tag.href}
	{/foreach}
	</div>
	{/if}
	</td>
    <td width="738" valign="top">
	<div id="css_articles">
		<div class="articleContent">
		<h2 class="browseh2">{$article_h2}</h2>
		<table width="100%" border="0" cellspacing="3" cellpadding="3">
		  <tr>
			<td width="100%" valign="top"></td>
			</tr>
			<tr>
			 <td valign="top">
				{if !empty($list_subcats)}	
				 <div id="list_subcats">
				 <h4>{$lang.related_cats}</h4>
				 <ul>
				  {$list_subcats}
				 </ul>
				 </div>
				{/if}
			</td>
			</tr>
		</table>

		{if ! is_array($articles)}
			{$articles}
		{else}
			{foreach from=$articles key=id item=article}
			  <div id="css_articles_list">
			   <h3><a href="{$article.link}" title="{$article.title}">{$article.title}</a></h3>

				<div class="pubDate"><strong>{$lang.articles_published}</strong>: {$article.date} {$lang.articles_by} <a href="{$smarty.const._URL}/profile.{$smarty.const._FEXT}?u={$article.username}">{$article.username}</a> 
					<span class="articleBreadcrumb"><strong>{$lang.articles_filedunder}</strong>: 
					{foreach from=$article.pretty_cats key=cat_name item=cat_href}
					  <a href="{$cat_href}" title="{$cat_name}">{$cat_name}</a> 
					{/foreach} 
					</span>
				</div>
			   <div id="articleParagraph">
			   {$article.content}	  
			    <br />
			   </div>
				 <div class="css_articles_links">				
					{if $logged_in && $is_admin == 'yes'}
					 <a href="{$smarty.const._URL}/admin/article_manager.php?do=edit&id={$article.id}" title="{$lang.edit}" target="_blank">{$lang.edit}</a> | 
					{/if}
					 <a href="{$article.link}">{$lang.read_more} &raquo;</a>
					 <a href="{$article.link}#comments" title="{$lang.post_comment}">{$lang.comments} ({$article.comment_count}) &raquo;</a>
				 </div>
			  </div>
			{/foreach}
		{/if}
		</div>
		<div align="center">{$ad_5}</div>
		<table width="97%" border="0" align="center" cellpadding="2" cellspacing="2">
		  <tr>
			<td width="33%"><a href="{$smarty.const._URL}/rss.php?c={$cat_id}&feed=articles"><img src="{$smarty.const._URL}/templates/{$template_dir}/images/ico_rss_s.gif" alt="" border="0" width="16" height="16" align="absmiddle" /></a> <span class="pag">{$page_count_info}</span></td>
			<td width="33%" align="right">
				{$pagination}
			</td>
		  </tr>
		</table>
	</div>
	</div>
	</td>
  </tr>
</table>
{include file='footer.tpl'} 