{* this is inspired by theme/defaults/template/picture.tpl *} {* *} {html_head} {/html_head} {* *} {if $COMMENTS_ON_TOP} {footer_script}{literal} // comments show/hide var commentsswicther=jQuery("#commentsSwitcher"); var comments=jQuery("#theCategoryPage #comments"); commentsswicther.html("
 
"); {/literal}{if $themeconf.name != 'elegant'}switcharrow = commentsswicther.children(".switchArrow");{else}switcharrow = $("
");{/if}{literal} if (comments.length == 1) { var comments_button=jQuery("#comments h3"); if (comments_button.length == 0) { jQuery("#addComment").before("

Comments

"); comments_button=jQuery("#comments h3"); } {/literal}{if $DISPLAY_COMMENTS_BLOCK} comments.addClass("commentsshown"); comments_button.addClass("comments_toggle").addClass("comments_toggle_on"); switcharrow.html("↑"); {else} comments.addClass("commentshidden"); comments_button.addClass("comments_toggle").addClass("comments_toggle_off"); switcharrow.html("↓"); {/if}{literal} comments_button.click(function() { commentsToggle() }); commentsswicther.click(function() { commentsToggle() }); } function commentsToggle() { var comments=jQuery("#theCategoryPage #comments"); var comments_button=jQuery("#comments h3"); if (comments.hasClass("commentshidden")) { comments.removeClass("commentshidden").addClass("commentsshown"); comments_button.addClass("comments_toggle_off").removeClass("comments_toggle_off"); switcharrow.html("↑"); } else { comments.addClass("commentshidden").removeClass("commentsshown"); comments_button.addClass("comments_toggle_on").removeClass("comments_toggle_on"); switcharrow.html("↓"); } } {/literal}{/footer_script} {/if} {if isset($COMMENT_COUNT)}

{$pwg->l10n_dec('%d comment', '%d comments',$COMMENT_COUNT)}

{if isset($comment_add)}

{'Add a comment'|@translate}

{if $comment_add.SHOW_AUTHOR}

{/if}

{/if} {if isset($comments)}
{if (($COMMENT_COUNT > 2) || !empty($comment_navbar))}
{if $COMMENT_COUNT > 2} {$COMMENTS_ORDER_TITLE} {/if} {if !empty($comment_navbar) }{include file=$COA_ABSOLUTE_PATH|@cat:'template/navigation_bar.tpl'|@get_extent:'navbar'}{/if}
{/if} {include file='comment_list.tpl'}
{/if} {if not $COMMENTS_ON_TOP}
{/if}
{/if}{*comments*}