hide "comments" link in Leggero if there aren't any comments and posting has been disabled
This commit is contained in:
parent
cc44e55cdc
commit
3d23a3434d
@ -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>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user