{assign var=postid value=$post->getId()}
{assign var=referers value=$articlereferers->getArticleReferers($postid)}
{if $articlereferers->isEnabled()}
<h2 id="referers">{$locale->tr("referers")}</h2>
	<ul>
	{foreach from=$referers item=referer}
		<li><a href="{$referer->getUrl()|escape}" title="{$referer->getUrl()|escape}">{$referer->getUrl()|truncate:75:"..."|escape}</a> ({$referer->getCount()})</li>
	{/foreach}
		<li style="display:none;">&nbsp;</li>
	</ul>
{else if #articlereferers# == 2 }
<h2 id="referers" onclick="expandIt(document.getElementById('referexpand'))" onkeypress="expandIt(document.getElementById('referexpand'))" style="cursor: pointer;">{$locale->tr("referers")}</h2>
	<ul id="referexpand" style="display: none;">
	{foreach from=$referers item=referer}
		<li><a href="{$referer->getUrl()|escape}" title="{$referer->getUrl()|escape}">{$referer->getUrl()|truncate:75:"..."|escape}</a> ({$referer->getCount()})</li>
	{/foreach}
		<li style="display:none;">&nbsp;</li>
	</ul>
{/if}