{if $show_title eq 1}
{$TITLE}
<br/>
{/if}

<ul class="boxPopCats">
	{if isset($popularArticles) && !empty($popularArticles)}
	{foreach item=article from=$popularArticles name=articles}
		<li>
		    <table cellpadding="0" cellspacing="0">
			<tr>
			<td>
				<a class="boxSponsoredA"  href="{if !$smarty.const.ENABLE_REWRITE}
                                            {$smarty.const.DOC_ROOT}/article.php?id={$article.ARTICLE_ID}
                                         {else}
                                            {$smarty.const.DOC_ROOT}/{$article.SEO_URL}{/if}"{if $smarty.foreach.articles.iteration==1}style="color:red;" {/if}>
					{if $article.ARTICLE_IMAGE}
					<img src="{$article.ARTICLE_IMAGE}" alt="{$article.ARTICLE_TITLE|escape}" style="width:40px;">
					{else}
					<img src="{$smarty.const.DOC_ROOT}/widgets/PopularArticles/images/no_photo_thunb.jpg" alt="{$article.ARTICLE_TITLE|escape}" style="width:40px;">
					{/if}
				</a>
			</td>
			<td>
			<a href="{if !$smarty.const.ENABLE_REWRITE}
                                            {$smarty.const.DOC_ROOT}/article.php?id={$article.ARTICLE_ID}
                                         {else}
                                            {$smarty.const.DOC_ROOT}/{$article.SEO_URL}{/if}" title="{l}Read more about{/l}: {$article.ARTICLE_TITLE|escape|trim}">{$article.ARTICLE_TITLE}</a>
			</td>
		    </table>
		</li>
	{/foreach}
	{else}
	<li>We don't have any authors<br/>or article yet</li>
	{/if}
</ul>
