Link Here
|
1 |
[%# Following on one line for translatability %] |
1 |
<div id="header_langmenu"> |
2 |
[% IF ( ( opaclanguagesdisplay ) && ( ! one_language_enabled ) && ( languages_loop ) && ( OpacLangSelectorMode == 'both' || OpacLangSelectorMode == 'top') ) %] |
2 |
<ul class="navbar-nav"> |
3 |
<div id="header_langmenu"> |
3 |
[% IF ( context == "footer" ) -%] |
4 |
<ul class="navbar-nav"> |
4 |
<li class="nav-item dropup"> |
5 |
[% IF ( context == "footer" ) -%] |
5 |
[% ELSE -%] |
6 |
<li class="nav-item dropup"> |
6 |
<li class="nav-item dropdown"> |
7 |
[% ELSE -%] |
7 |
[% END %] |
8 |
<li class="nav-item dropdown"> |
8 |
<a href="#" title="Switch languages" class="nav-link dropdown-toggle" id="langmenu" data-bs-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><i class="fa fa-flag fa-fw fa-icon-[% context | html %]" aria-hidden="true"></i> <span class="langlabel">Languages</span> <b class="caret"></b></a> |
9 |
[% END %] |
9 |
<div aria-labelledby="langmenu" role="menu" class="dropdown-menu dropdown-menu-end"> |
10 |
<a href="#" title="Switch languages" class="nav-link dropdown-toggle" id="langmenu" data-bs-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><i class="fa fa-flag fa-fw fa-icon-[% context | html %]" aria-hidden="true"></i> <span class="langlabel">Languages</span> <b class="caret"></b></a> |
10 |
[% FOREACH languages_loo IN languages_loop %] |
11 |
<div aria-labelledby="langmenu" role="menu" class="dropdown-menu dropdown-menu-end"> |
11 |
[% IF ( languages_loo.group_enabled ) %] |
12 |
[% FOREACH languages_loo IN languages_loop %] |
12 |
[% IF ( languages_loo.plural ) %] |
13 |
[% IF ( languages_loo.group_enabled ) %] |
13 |
[% FOREACH sublanguages_loo IN languages_loo.sublanguages_loop %] |
14 |
[% IF ( languages_loo.plural ) %] |
14 |
[% IF ( sublanguages_loo.enabled ) %] |
15 |
[% FOREACH sublanguages_loo IN languages_loo.sublanguages_loop %] |
15 |
[% IF ( sublanguages_loo.sublanguage_current ) %] |
16 |
[% IF ( sublanguages_loo.enabled ) %] |
16 |
<a class="dropdown-item" href="#" tabindex="-1" role="menuitem">[% sublanguages_loo.native_description | html %] [% sublanguages_loo.script_description | html %] [% sublanguages_loo.region_description | html %] [% sublanguages_loo.variant_description | html %] <i class="fa fa-check" aria-hidden="true"></i></a> |
17 |
[% IF ( sublanguages_loo.sublanguage_current ) %] |
|
|
18 |
<a class="dropdown-item" href="#" tabindex="-1" role="menuitem">[% sublanguages_loo.native_description | html %] [% sublanguages_loo.script_description | html %] [% sublanguages_loo.region_description | html %] [% sublanguages_loo.variant_description | html %] <i class="fa fa-check" aria-hidden="true"></i></a> |
19 |
[% ELSE %] |
20 |
<a class="dropdown-item" href="/cgi-bin/koha/opac-changelanguage.pl?language=[% sublanguages_loo.rfc4646_subtag | uri %]" tabindex="-1" role="menuitem"> [% sublanguages_loo.native_description | html %] [% sublanguages_loo.script_description | html %] [% sublanguages_loo.region_description | html %] [% sublanguages_loo.variant_description | html %]</a> |
21 |
[% END # /IF ( sublanguages_loo.sublanguage_current ) %] |
22 |
[% END # / IF sublanguages_loo.enabled %] |
23 |
[% END # / FOREACH sublanguages_loo %] |
24 |
[% ELSE %] |
25 |
[% IF ( languages_loo.group_enabled ) %] |
26 |
[% IF ( languages_loo.current ) %] |
27 |
<a class="dropdown-item menu-inactive" href="#" tabindex="-1" role="menuitem"> |
28 |
[% IF ( languages_loo.native_description ) %] |
29 |
[% languages_loo.native_description | html %] |
30 |
[% ELSE %] |
31 |
[% languages_loo.rfc4646_subtag | html %] |
32 |
[% END %] <i class="fa fa-check" aria-hidden="true"></i> |
33 |
</a> |
34 |
[% ELSE %] |
17 |
[% ELSE %] |
35 |
<a class="dropdown-item" href="/cgi-bin/koha/opac-changelanguage.pl?language=[% languages_loo.rfc4646_subtag | uri %]" tabindex="-1" role="menuitem"> |
18 |
<a class="dropdown-item" href="/cgi-bin/koha/opac-changelanguage.pl?language=[% sublanguages_loo.rfc4646_subtag | uri %]" tabindex="-1" role="menuitem"> [% sublanguages_loo.native_description | html %] [% sublanguages_loo.script_description | html %] [% sublanguages_loo.region_description | html %] [% sublanguages_loo.variant_description | html %]</a> |
36 |
[% IF ( languages_loo.native_description ) %] |
19 |
[% END # /IF ( sublanguages_loo.sublanguage_current ) %] |
37 |
[% languages_loo.native_description | html %] |
20 |
[% END # / IF sublanguages_loo.enabled %] |
38 |
[% ELSE %] |
21 |
[% END # / FOREACH sublanguages_loo %] |
39 |
[% languages_loo.rfc4646_subtag | html %] |
22 |
[% ELSE %] |
40 |
[% END %] |
23 |
[% IF ( languages_loo.group_enabled ) %] |
41 |
</a> |
24 |
[% IF ( languages_loo.current ) %] |
42 |
[% END # / IF ( languages_loo.current )%] |
25 |
<a class="dropdown-item menu-inactive" href="#" tabindex="-1" role="menuitem"> |
43 |
[% END # / IF languages_loo.current %] |
26 |
[% IF ( languages_loo.native_description ) %] |
44 |
[% END # / IF ( languages_loo.plural ) %] |
27 |
[% languages_loo.native_description | html %] |
45 |
[% END # / IF ( languages_loo.group_enabled ) %] |
28 |
[% ELSE %] |
46 |
[% END # / FOREACH languages_loo IN languages_loop %] |
29 |
[% languages_loo.rfc4646_subtag | html %] |
47 |
</div> <!-- /# .dropdown-menu --> |
30 |
[% END %] <i class="fa fa-check" aria-hidden="true"></i> |
48 |
</li> <!-- / .dropdown --> |
31 |
</a> |
49 |
<li class="divider-vertical" aria-hidden="false"></li> |
32 |
[% ELSE %] |
50 |
</ul> <!-- /.nav.pull-right --> |
33 |
<a class="dropdown-item" href="/cgi-bin/koha/opac-changelanguage.pl?language=[% languages_loo.rfc4646_subtag | uri %]" tabindex="-1" role="menuitem"> |
51 |
</div> <!-- /#header_langmenu --> |
34 |
[% IF ( languages_loo.native_description ) %] |
52 |
[% END # / IF opaclanguagedisplay %] |
35 |
[% languages_loo.native_description | html %] |
|
|
36 |
[% ELSE %] |
37 |
[% languages_loo.rfc4646_subtag | html %] |
38 |
[% END %] |
39 |
</a> |
40 |
[% END # / IF ( languages_loo.current )%] |
41 |
[% END # / IF languages_loo.current %] |
42 |
[% END # / IF ( languages_loo.plural ) %] |
43 |
[% END # / IF ( languages_loo.group_enabled ) %] |
44 |
[% END # / FOREACH languages_loo IN languages_loop %] |
45 |
</div> <!-- /# .dropdown-menu --> |
46 |
</li> <!-- / .dropdown --> |
47 |
<li class="divider-vertical" aria-hidden="false"></li> |
48 |
</ul> <!-- /.nav.pull-right --> |
49 |
</div> <!-- /#header_langmenu --> |