{if $db_trace or $call_trace or $plugins_trace} {literal} {/literal}
{$msg_debug_bar}
{if $db_trace}
{$msg_debug_dbtrace}
{/if} {if $call_trace}
{$msg_debug_calltrace}
{/if} {if $plugins_trace}
{$msg_debug_plugins}
{/if}
{/if}