2008-03-07 19:49:19 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
<xsl:stylesheet version="1.0"
|
|
|
|
xmlns="http://www.w3.org/1999/xhtml"
|
|
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
|
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
|
|
xmlns:cc="http://web.resource.org/cc/"
|
|
|
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
|
|
>
|
|
|
|
|
|
|
|
<xsl:template name="header">
|
|
|
|
|
2008-04-09 11:25:31 +00:00
|
|
|
<img id="logo">
|
2008-04-06 23:56:34 +00:00
|
|
|
<xsl:attribute name="src">
|
2008-04-09 11:25:31 +00:00
|
|
|
<xsl:value-of select="$site_strings[@id='path_root']" />/images/logo.png
|
2008-04-06 23:56:34 +00:00
|
|
|
</xsl:attribute>
|
|
|
|
</img>
|
|
|
|
|
|
|
|
<ul id="header" role="navigation" style="clear:right;">
|
2008-03-19 20:02:42 +00:00
|
|
|
|
2008-03-07 19:49:19 +00:00
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="string-length(//@username)=0">
|
|
|
|
|
2008-03-19 20:02:42 +00:00
|
|
|
<li>
|
|
|
|
<a>
|
|
|
|
<xsl:attribute name="href">
|
|
|
|
<xsl:value-of select="$site_strings[@id='path_register']" />
|
|
|
|
</xsl:attribute>
|
|
|
|
<xsl:value-of select="$locale_strings[@id='register']" />
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
2008-03-07 19:49:19 +00:00
|
|
|
<!--
|
2008-03-24 16:04:46 +00:00
|
|
|
"login with openid" is obsolete and will be removed in future iterations
|
2008-03-07 19:49:19 +00:00
|
|
|
-->
|
2008-03-19 20:02:42 +00:00
|
|
|
|
|
|
|
<li>
|
|
|
|
<a>
|
|
|
|
<xsl:attribute name="href">
|
2008-04-03 13:47:12 +00:00
|
|
|
<xsl:value-of select="$site_strings[@id='path_login']" />
|
2008-03-19 20:02:42 +00:00
|
|
|
</xsl:attribute>
|
|
|
|
|
2008-04-03 13:47:12 +00:00
|
|
|
<xsl:value-of select="$locale_strings[@id='login']" />
|
2008-03-19 20:02:42 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
2008-03-07 19:49:19 +00:00
|
|
|
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
|
|
|
|
2008-03-19 20:02:42 +00:00
|
|
|
<li>
|
|
|
|
<a>
|
|
|
|
<xsl:attribute name="href">
|
|
|
|
<xsl:value-of select="$site_strings[@id='path_upload']" />
|
|
|
|
</xsl:attribute>
|
|
|
|
<xsl:value-of select="$locale_strings[@id='header_upload-video']" />
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
<a>
|
|
|
|
<xsl:attribute name="href">
|
|
|
|
<xsl:value-of select="$site_strings[@id='path_settings']" />
|
|
|
|
</xsl:attribute>
|
|
|
|
<xsl:value-of select="$locale_strings[@id='settings_details']" />
|
|
|
|
</a>
|
|
|
|
</li>
|
2008-03-07 19:49:19 +00:00
|
|
|
|
|
|
|
<!--
|
|
|
|
<xsl:value-of select="$locale_strings[@id='logged_in_as']" />
|
|
|
|
|
2008-03-19 20:02:42 +00:00
|
|
|
<li>
|
|
|
|
<a>
|
|
|
|
<xsl:attribute name="href">
|
|
|
|
user/<xsl:value-of select="//@username" />
|
|
|
|
</xsl:attribute>
|
|
|
|
<xsl:value-of select="//@username" />
|
|
|
|
</a>
|
|
|
|
</li>
|
2008-03-07 19:49:19 +00:00
|
|
|
-->
|
|
|
|
|
2008-03-19 20:02:42 +00:00
|
|
|
<li>
|
|
|
|
<a>
|
|
|
|
<xsl:attribute name="href">
|
|
|
|
<xsl:value-of select="$site_strings[@id='path_logout']" />
|
|
|
|
</xsl:attribute>
|
|
|
|
<xsl:value-of select="$locale_strings[@id='logout']" />
|
|
|
|
</a>
|
|
|
|
</li>
|
2008-03-07 19:49:19 +00:00
|
|
|
|
2008-04-06 23:56:34 +00:00
|
|
|
<li id="upload">
|
|
|
|
<a>
|
|
|
|
<xsl:attribute name="href">
|
|
|
|
<xsl:value-of select="$site_strings[@id='path_upload']" />
|
|
|
|
</xsl:attribute>
|
|
|
|
<xsl:value-of select="$locale_strings[@id='header_upload-video']" />
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
<li id="">
|
|
|
|
<a>
|
|
|
|
<xsl:attribute name="href">
|
|
|
|
<xsl:value-of select="$site_strings[@id='path_settings']" />
|
|
|
|
</xsl:attribute>
|
|
|
|
<xsl:value-of select="$locale_strings[@id='settings_details']" />
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
-->
|
|
|
|
|
|
|
|
<li id="logout">
|
|
|
|
<a>
|
|
|
|
<xsl:attribute name="href">
|
|
|
|
<xsl:value-of select="$site_strings[@id='path_logout']" />
|
|
|
|
</xsl:attribute>
|
|
|
|
<xsl:value-of select="$locale_strings[@id='logout']" />
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
2008-03-07 19:49:19 +00:00
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
|
2008-03-19 20:02:42 +00:00
|
|
|
</ul>
|
2008-03-07 19:49:19 +00:00
|
|
|
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
</xsl:stylesheet>
|