-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathlanguage_switch_flags.tpl
More file actions
21 lines (20 loc) · 974 Bytes
/
language_switch_flags.tpl
File metadata and controls
21 lines (20 loc) · 974 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<li id="bootstrapLanguageSwitch" class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<span class="pwg-icon langflag-{$lang_switch.Active.code}"> </span><span class="pwg-button-text">{'Language'|@translate}</span>
</a>
<ul class="dropdown-menu dropdown-menu-scrollable" role="menu">
{foreach from=$lang_switch.flags item=flag name=f}
<li{if $lang_switch.Active.code==$flag.code} class="active"{/if}>
<a href="{$flag.url}">
{if $lang_info.direction=="ltr"}
<span class="pwg-icon langflag-{$flag.code}"> </span><span class="langflag-text-ltf">{$flag.title}</span>
{else}
<span class="langflag-text-rtf">{$flag.title}</span><span class="pwg-icon langflag-{$flag.code}"> </span>
{/if}
</a>
<li>
{/foreach}
</ul>
</li>
{* <!-- common style specific for LanguageSwitch --> *}
{combine_css path=$LANGUAGE_SWITCH_PATH|@cat:"language_switch.css"}