Changeset 10159 for main/waeup.diazo/trunk/kofa
- Timestamp:
- 7 May 2013, 22:50:05 (12 years ago)
- Location:
- main/waeup.diazo/trunk/kofa
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.diazo/trunk/kofa/base.xml
r10114 r10159 10 10 <theme href="theme.html" /> 11 11 12 <!-- Head elements -->12 <!-- head elements --> 13 13 <replace css:theme="html head title" 14 14 css:content="html head title" /> … … 17 17 <after css:theme-children="html head" 18 18 css:content="html head base" /> 19 20 <!-- top navigation --> 21 <!-- left top navigation --> 22 <replace css:theme-children="ul.kofa-navbar-left" 23 css:content-children="ul.kofa-navbar-left" /> 24 25 <!-- the language selector 26 27 quite tricky. We insert a <li> element at end of 28 ul.kofa-navbar-left. This <li> has a header element 29 (the 'Language' button) and the a number of <li> elements 30 representing the supported languages. 31 We change the input content of format 32 33 <a href="foo" title="Lang">Abbrev</a> 34 35 to 36 37 <a href="foo">Lang</a> 38 39 creating new nodes (<xsl:element>) with attributes copied over. 40 --> 41 <after css:theme-children="ul.kofa-navbar-left"> 42 <li class="dropdown kofa-langselect"> 43 <a href="#" class="dropdown-toggle" 44 data-toggle="dropdown">Language <b class="caret"></b></a> 45 <ul class="dropdown-menu"> 46 <xsl:for-each css:select=" .language a"> 47 <li class="kofa-language"> 48 <xsl:element name="a"> 49 <xsl:attribute name="href"> 50 <xsl:value-of select="@href" /> 51 </xsl:attribute> 52 <xsl:value-of select="@title" /> 53 </xsl:element> 54 </li> 55 </xsl:for-each> 56 </ul> 57 </li> 58 </after> 59 60 <!-- right side top navigation --> 61 <replace css:theme-children="ul.kofa-navbar-right" 62 css:content-children="ul.kofa-navbar-right" /> 63 64 19 65 </rules> 20 66 21 67 </rules> 22 -
main/waeup.diazo/trunk/kofa/theme.html
r10130 r10159 45 45 </button> 46 46 <a class="brand active" href="#">WAeUP.Kofa</a> 47 <div class="nav-collapse collapse ">48 <ul class="nav ">47 <div class="nav-collapse collapse kofa-primary-nav"> 48 <ul class="nav kofa-navbar-left"> 49 49 <li class="active"><a href="#">Academics</a></li> 50 50 <li><a href="#about">Applicants</a></li> 51 51 <li><a href="#contact">Students</a></li> 52 52 <li><a href="#contact">Hostels</a></li> 53 <li class="dropdown ">53 <li class="dropdown kofa-langselect"> 54 54 <a href="#" class="dropdown-toggle" 55 55 data-toggle="dropdown">Language <b class="caret"></b></a> 56 56 <ul class="dropdown-menu"> 57 <li ><a href="#">en</a></li>58 <li ><a href="#">fr</a></li>59 <li ><a href="#">de</a></li>60 <li ><a href="#">ha</a></li>61 <li ><a href="#">yo</a></li>62 <li ><a href="#">ig</a></li>57 <li class="kofa-language"><a href="#">en</a></li> 58 <li class="kofa-language"><a href="#">fr</a></li> 59 <li class="kofa-language"><a href="#">de</a></li> 60 <li class="kofa-language"><a href="#">ha</a></li> 61 <li class="kofa-language"><a href="#">yo</a></li> 62 <li class="kofa-language"><a href="#">ig</a></li> 63 63 </ul> 64 64 </li> 65 65 </ul> 66 <ul class="nav secondary-nav pull-right ">66 <ul class="nav secondary-nav pull-right kofa-navbar-right"> 67 67 <li class="nav"><a href="#">Contact</a></li> 68 68 <li class="nav"><a href="#">Logout</a></li>
Note: See TracChangeset for help on using the changeset viewer.