Added absolute attribute on relevant menu items
This commit is contained in:
parent
48df1e94ef
commit
7a770327a9
15
cscweb.xsl
15
cscweb.xsl
|
@ -178,11 +178,18 @@ google_ad_channel = "1106187834";
|
|||
</xsl:template>
|
||||
|
||||
<xsl:template match="menuitem">
|
||||
<td align="center" class="menuitem">
|
||||
<a href="{$pre}{@href}"><img border="0" src="{$pre}buttons/{@icon}.png"
|
||||
<xsl:variable name="pre2">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@absolute = 'true'"/>
|
||||
<xsl:otherwise select="$pre"/>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
|
||||
<td align="center" class="menuitem">
|
||||
<a href="{$pre2}{@href}"><img border="0" src="{$pre}buttons/{@icon}.png"
|
||||
width="40" height="40" alt="{@title}" /><!--</a>--><br />
|
||||
<!--<a href="{$pre}{@href}">--><xsl:value-of select="@title"/></a>
|
||||
</td>
|
||||
<!--<a href="{$pre2}{@href}">--><xsl:value-of select="@title"/></a>
|
||||
</td>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="menudefs">
|
||||
|
|
10
menu.xml
10
menu.xml
|
@ -10,10 +10,10 @@
|
|||
<menuitem title="Clubs" icon="clubs" href="clubs/"/>
|
||||
<!--<menuitem title="Stats" icon="stats" href="/stats/"/>-->
|
||||
<menuitem title="Media" icon="package_multimedia" href="media/"/>
|
||||
<menuitem title="Library" icon="koha" href="http://koha.csclub.uwaterloo.ca"/>
|
||||
<menuitem title="Wiki" icon="sunflower" href="http://wiki.csclub.uwaterloo.ca"/>
|
||||
<menuitem title="Library" icon="koha" absolute="true" href="http://koha.csclub.uwaterloo.ca"/>
|
||||
<menuitem title="Wiki" icon="sunflower" absolute="true" href="http://wiki.csclub.uwaterloo.ca"/>
|
||||
<menuitem title="Webmail" icon="horde" href="horde"/>
|
||||
<menuitem title="Mailman" icon="mm-icon" href="/cgi-bin/mailman/listinfo"/>
|
||||
<menuitem title="gopher" icon="gopher" href="gopher://csclub.uwaterloo.ca"/>
|
||||
<menuitem title="gitweb" icon="gitweb" href="http://gitweb.csclub.uwaterloo.ca"/>
|
||||
<menuitem title="Mailman" icon="mm-icon" absolute="true" href="/cgi-bin/mailman/listinfo"/>
|
||||
<menuitem title="gopher" icon="gopher" absolute="true" href="gopher://csclub.uwaterloo.ca"/>
|
||||
<menuitem title="gitweb" icon="gitweb" absolute="true" href="http://gitweb.csclub.uwaterloo.ca"/>
|
||||
</menudefs>
|
||||
|
|
Loading…
Reference in New Issue