View | Details | Raw Unified | Return to bug 14776
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead-sco.inc (-10 / +42 lines)
Lines 1-3 Link Here
1
[% USE Koha %]
2
[% SET OpacLangSelectorMode = Koha.Preference('OpacLangSelectorMode') %]
1
<div id="wrap">
3
<div id="wrap">
2
    <div class="navbar navbar-inverse navbar-static-top">
4
    <div class="navbar navbar-inverse navbar-static-top">
3
        <div class="navbar-inner">
5
        <div class="navbar-inner">
Lines 9-23 Link Here
9
                    </ul>
11
                    </ul>
10
                </div>
12
                </div>
11
13
12
                [% IF ( validuser ) %]
14
               [% IF OpacLangSelectorMode == 'both' || OpacLangSelectorMode == 'top' %]
13
                    <div id="members">
15
                   [% IF ( opaclanguagesdisplay ) %]
14
                        <ul class="nav pull-right">
16
                       [% IF ( languages_loop && opaclanguagesdisplay ) %]
15
                            <li><p class="members navbar-text">Welcome, <a href="/cgi-bin/koha/opac-user.pl"><span class="loggedinusername">[% FOREACH USER_INF IN USER_INFO %][% USER_INF.title %] [% USER_INF.firstname %] [% USER_INF.surname %][% END %]</span></a></p></li>
17
                           [% UNLESS ( one_language_enabled ) %]
16
                            <li class="divider-vertical"></li>
18
                               <div id="checkoutlanguage">
17
                            <li><p class="navbar-text">[% IF persona %]<a class="logout" id="logout" href="/cgi-bin/koha/opac-main.pl?logout.x=1" onclick='navigator.id.logout();'>[% ELSE %]<a class="logout" id="logout" href="/cgi-bin/koha/opac-main.pl?logout.x=1">[% END %]Log out</a></p></li>
19
                                   <ul class="nav pull-right">
18
                        </ul>
20
                                       <li class="dropdown">
19
                    </div> <!-- /members -->
21
                                           <a href="#" title="Switch languages" class="dropdown-toggle" id="langmenu" data-toggle="dropdown" role="button"><i class="icon-flag icon-white"></i> <span class="langlabel">Languages</span> <b class="caret"></b></a>
20
                [% END # / IF validuser %]
22
                                               <ul aria-labelledby="langmenu" role="menu" class="dropdown-menu">
23
                                                 [% FOREACH languages_loo IN languages_loop.sort('rfc4646_subtag') %]
24
                                                     [% IF ( languages_loo.group_enabled ) %]
25
                                                         [% IF ( languages_loo.plural ) %]
26
                                                             [% FOREACH sublanguages_loo IN languages_loo.sublanguages_loop %]
27
                                                                 [% IF ( sublanguages_loo.enabled ) %]
28
                                                                     [% IF ( sublanguages_loo.sublanguage_current ) %]
29
                                                                         <li role="presentation"> <a href="#" tabindex="-1" class="menu-inactive" role="menuitem">[% sublanguages_loo.native_description %] [% sublanguages_loo.script_description %] [% sublanguages_loo.region_description %] [% sublanguages_loo.variant_description %]&nbsp;<i class="icon-ok"></i></a></li>
30
                                                                     [% ELSE %]
31
                                                                         <li role="presentation"><a href="/cgi-bin/koha/opac-changelanguage.pl?language=[% sublanguages_loo.rfc4646_subtag %]"  tabindex="-1" role="menuitem" class="listmenulink"> [% sublanguages_loo.native_description %] [% sublanguages_loo.script_description %] [% sublanguages_loo.region_description %] [% sublanguages_loo.variant_description %]</a></li>
32
                                                                     [% END %]
33
                                                                 [% END # / IF sublanguages_loo.enabled %]
34
                                                             [% END # / FOREACH sublanguages_loo %]
35
                                                         [% ELSE %]
36
                                                             [% IF ( languages_loo.group_enabled ) %]
37
                                                                 [% IF ( languages_loo.current ) %]
38
                                                                     <li role="presentation"><a href="#" tabindex="-1" class="menu-inactive" role="menuitem">[% IF ( languages_loo.native_description ) %][% languages_loo.native_description %][% ELSE %][% languages_loo.rfc4646_subtag %][% END %]&nbsp;<i class="icon-ok"></i></a></li>
39
                                                                 [% ELSE %]
40
                                                                     <li role="presentation"><a href="/cgi-bin/koha/opac-changelanguage.pl?language=[% languages_loo.rfc4646_subtag %]"  tabindex="-1" role="menuitem" class="listmenulink">[% IF ( languages_loo.native_description ) %][% languages_loo.native_description %][% ELSE %][% languages_loo.rfc4646_subtag %][% END %]</a></li>
41
                                                                 [% END %]
42
                                                             [% END # / IF languages_loo.current %]
43
                                                         [% END # / IF ( languages_loo.plural ) %]
44
                                                     [% END # / IF ( languages_loo.group_enabled ) %]
45
                                                 [% END # / FOREACH languages_loo IN languages_loop %]
46
                                             </ul> <!-- /# .dropdown-menu -->
47
                                         </li> <!-- / .dropdown -->
48
                                     </div> <!-- / checkoutlanguage >
49
                                 [% END # / UNLESS ( one_language_enabled ) %]
50
                             </ul>
51
                         [% END # / IF ( languages_loop && opaclanguagesdisplay ) %]
52
                     [% END # / IF opaclanguagesdisplay %]
53
                 [% END # / IF OpacLangSelectorMode %]
21
54
22
            </div> <!-- /container-fluid -->
55
            </div> <!-- /container-fluid -->
23
        </div> <!-- /navbar-inner -->
56
        </div> <!-- /navbar-inner -->
24
- 

Return to bug 14776