hide "comments" link in Leggero if there aren't any comments and posting has been disabled

This commit is contained in:
real_nowhereman 2009-09-09 17:32:32 +00:00
parent cc44e55cdc
commit 3d23a3434d

View File

@ -23,12 +23,13 @@
{if ($categories)} in {$categories|@filed}{/if} {if ($categories)} in {$categories|@filed}{/if}
</li> </li>
{if !(in_array('commslock', $categories) && !$comments)}
<li class="link-comments"> <li class="link-comments">
<a href="{$id|link:comments_link}#comments">{$comments|tag:comments_number} <a href="{$id|link:comments_link}#comments">{$comments|tag:comments_number}
{if isset($views)}(<strong>{$views}</strong> views){/if} {if isset($views)}(<strong>{$views}</strong> views){/if}
</a> </a>
</li> </li>
{/if}
</ul> </ul>