Location: PHPKode > projects > Blandware AtLeap Lite - CMS on PHP > atleaplite/smarty/templates/switch_locale_form.tpl
{* Smarty template *}
<div class="block">
    <div id="switchLocaleForm">
	    <div class="switchLocaleFormTitle">{message key='language.switchForm.language'}</div>
        {foreach from=$languages item=language}
            {assign var="langCode" value=$language->code}
            {message key="language.$langCode" assign="langTitle"}
            <div class="switchLocaleFormItem">
                {if $currentLanguage != $language->code}
                    <a href="{rewriteUrl url=$requestUri language=$language->code}" title="{$langTitle}">{$langTitle}</a>
                {else}
                    <b>{$langTitle}</b>
                {/if}
            </div>
        {/foreach}
        </div>
    </div>
</div>
Return current item: Blandware AtLeap Lite - CMS on PHP