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-03-19 20:02:42 +00:00
|
|
|
<ul id="header" role="navigation">
|
|
|
|
|
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">
|
|
|
|
<xsl:value-of select="$site_strings[@id='path_login-openid']" />
|
|
|
|
</xsl:attribute>
|
|
|
|
|
|
|
|
<xsl:value-of select="$locale_strings[@id='login_openid']" />
|
|
|
|
</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
|
|
|
|
|
|
|
</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>
|