{* Smarty *}

{foreach $ArrLangs as $val}
  {if $val@first}
<div class="MenuLangs">
  {$MS_SP->Sp_LangMessage.label.AvailableLangs}:&nbsp;
  {/if}
  {if $MS_SP->Sp_Lang eq $val}
    <span>{$val|upper}</span> |
  {else}
    <a class="ui-state-default" href="{$smarty.server.REQUEST_URI|regex_replace:'[.UrlLang=..]':''}{if (1 eq count($smarty.get) && 1 eq isset($smarty.get.UrlLang)) or 0 eq count($smarty.get)}?{else}&{/if}UrlLang={$val}" title="{$val}" target="_self">{$val|upper}</a>
  {/if}
  {if $val@last}
</div>
  {/if}
{/foreach}