Ignore:
Timestamp:
8 Jul 2017, 04:28:19 (7 years ago)
Author:
Henrik Bettermann
Message:

Disable language selector.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.dspou/trunk/layout/rules.xml

    r14451 r14714  
    121121-->
    122122
    123     <!-- the language selector
    124 
    125       quite tricky. We insert a <li> element at beginning of
    126       ul.kofa-navbar-right. This <li> has a header element
    127       (the 'Language' button) and the a number of <li> elements
    128       representing the supported languages.
    129       We change the input content of format
    130 
    131          <a href="foo" title="Lang">Abbrev</a>
    132 
    133       to
    134 
    135          <a href="foo">Lang</a>
    136 
    137       creating new nodes (<xsl:element>) with attributes copied over.
    138     -->
    139     <before css:theme-children="ul.kofa-navbar-right">
    140       <li class="dropdown kofa-langselect">
    141         <a href="#" class="dropdown-toggle"
    142            data-toggle="dropdown">
    143            <img src="/static/img/earth.png" />
    144         </a>
    145         <ul class="dropdown-menu">
    146           <xsl:for-each css:select=" .language a">
    147             <li class="kofa-language">
    148               <xsl:element name="a">
    149                 <xsl:attribute name="href">
    150                   <xsl:value-of select="@href" />
    151                 </xsl:attribute>
    152                 <xsl:value-of select="@title" />
    153               </xsl:element>
    154             </li>
    155           </xsl:for-each>
    156         </ul>
    157       </li>
    158     </before>
    159 
    160123    <!-- Make all data tables responsive -->
    161124
Note: See TracChangeset for help on using the changeset viewer.