Linear/Threaded line only visible when there are comments
Posted: Sun Nov 11, 2007 2:19 pm
The code below shows the Title for the comments, if comments should be showed linear or threaded and the comments itself!
I want the line with which you can select linear or threaded to be visible only when there are comments. I tried to place the bold code within:
{if $entry.has_comments}
[bold code]
{/if}
But this doesnt work! Does anyone has a working solution?
Thank you,
Janine Ringers
I want the line with which you can select linear or threaded to be visible only when there are comments. I tried to place the bold code within:
{if $entry.has_comments}
[bold code]
{/if}
But this doesnt work! Does anyone has a working solution?
Thank you,
Janine Ringers
Code: Select all
{if $is_single_entry and not $is_preview}
<div class="serendipity_comments serendipity_section_comments">
<a id="comments"></a>
<div class="serendipity_commentsTitle">{$CONST.COMMENTS}</div>
<div [b]class="serendipity_center">{$CONST.DISPLAY_COMMENTS_AS}
{if $entry.viewmode eq $CONST.VIEWMODE_LINEAR} ({$CONST.COMMENTS_VIEWMODE_LINEAR} | <a href="{$entry.link_viewmode_threaded}#comments" rel="nofollow">{$CONST.COMMENTS_VIEWMODE_THREADED}</a>)
{else}
(<a rel="nofollow" href="{$entry.link_viewmode_linear}#comments">{$CONST.COMMENTS_VIEWMODE_LINEAR}</a> | {$CONST.COMMENTS_VIEWMODE_THREADED})[/b]
{/if}
</div>{serendipity_printComments entry=$entry.id mode=$entry.viewmode}<br>