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-10 05:05:19 +00:00
|
|
|
<a>
|
|
|
|
<xsl:attribute name="href">
|
|
|
|
<xsl:value-of select="$site_strings[@id='path_root']" />
|
2008-04-06 23:56:34 +00:00
|
|
|
</xsl:attribute>
|
2008-04-10 05:05:19 +00:00
|
|
|
<img id="logo">
|
|
|
|
<xsl:attribute name="src">
|
|
|
|
<xsl:value-of select="$site_strings[@id='path_root']" />/images/logo.png
|
|
|
|
</xsl:attribute>
|
|
|
|
</img>
|
|
|
|
</a>
|
2008-04-06 23:56:34 +00:00
|
|
|
|
2008-04-10 05:05:19 +00:00
|
|
|
<ul id="header" role="navigation">
|
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>
|
2008-04-27 16:53:38 +00:00
|
|
|
<xsl:value-of select="$lang_strings[@id='register']" />
|
2008-03-19 20:02:42 +00:00
|
|
|
</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-27 16:53:38 +00:00
|
|
|
<xsl:value-of select="$lang_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_settings']" />
|
|
|
|
</xsl:attribute>
|
2008-04-27 16:53:38 +00:00
|
|
|
<xsl:value-of select="$lang_strings[@id='settings_details']" />
|
2008-03-19 20:02:42 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
2008-03-07 19:49:19 +00:00
|
|
|
|
|
|
|
<!--
|
2008-04-27 16:53:38 +00:00
|
|
|
<xsl:value-of select="$lang_strings[@id='logged_in_as']" />
|
2008-03-07 19:49:19 +00:00
|
|
|
|
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-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>
|
2008-04-27 16:53:38 +00:00
|
|
|
<xsl:value-of select="$lang_strings[@id='header_upload-video']" />
|
2008-04-06 23:56:34 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
<li id="">
|
|
|
|
<a>
|
|
|
|
<xsl:attribute name="href">
|
|
|
|
<xsl:value-of select="$site_strings[@id='path_settings']" />
|
|
|
|
</xsl:attribute>
|
2008-04-27 16:53:38 +00:00
|
|
|
<xsl:value-of select="$lang_strings[@id='settings_details']" />
|
2008-04-06 23:56:34 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
-->
|
|
|
|
|
|
|
|
<li id="logout">
|
|
|
|
<a>
|
|
|
|
<xsl:attribute name="href">
|
|
|
|
<xsl:value-of select="$site_strings[@id='path_logout']" />
|
|
|
|
</xsl:attribute>
|
2008-04-27 16:53:38 +00:00
|
|
|
<xsl:value-of select="$lang_strings[@id='logout']" />
|
2008-04-06 23:56:34 +00:00
|
|
|
</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>
|