Hello, I'm adding a new side box to the left bar of my site, but there is a problem with displaing the title of the box. Check the last 3 rows of my code:
PHP Code:
{*
$Id: menu_users_online.tpl,v 1.10 2008/10/29 16:50:56 max Exp $
vim: set ts=2 sw=2 sts=2 et:
*}
{capture name=menu}
{if $users_online}
<div class="uo-box">
<strong>{$lng.lbl_users_online}:</strong>
{foreach from=$users_online item=v name="_users"}
<span class="item nowrap">{$v.count}
{if $v.usertype eq 'A' || ($v.usertype eq 'P' && $active_modules.Simple_Mode)}
{$lng.lbl_admin_s}
{elseif $v.usertype eq 'P'}
{$lng.lbl_provider_s}
{elseif $v.usertype eq 'B'}
{$lng.lbl_partner_s}
{elseif $v.usertype eq 'C' && $v.is_registered eq 'Y'}
{$lng.lbl_registered_customer_s}
{elseif $v.usertype eq 'C' && $v.is_registered eq 'A'}
{$lng.lbl_anonymous_customer_s}
{elseif $v.usertype eq 'C' && $v.is_registered eq ''}
{$lng.lbl_unregistered_customer_s}
{/if}
{if not $smarty.foreach._users.last}, {/if}
</span>
{/foreach}
</div>
{/if}
{/capture}
{include file="customer/menu_dialog.tpl" title="{$lng.who_is_online}; " content=$smarty.capture.menu}
How to avoid getting an error and to display the title properly as a language variable?