|
|
@ -2,45 +2,48 @@ |
|
|
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml"> |
|
|
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml"> |
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="user" mode="userInfoBar"> |
|
|
|
<xsl:template match="user" mode="userInfoBar"> |
|
|
|
<div class="user"> |
|
|
|
<div class="userbar"> |
|
|
|
<xsl:attribute name="onMouseOver">for(var i=0;i<this.childNodes.length;i++) if(this.childNodes[i].nodeName == "DIV") this.childNodes[i].style.display="block";</xsl:attribute> |
|
|
|
<xsl:attribute name="onMouseOver">for(var i=0;i<this.childNodes.length;i++) if(this.childNodes[i].nodeName == "DIV") this.childNodes[i].style.display="block";</xsl:attribute> |
|
|
|
<xsl:attribute name="onMouseOut">for(var i=0;i<this.childNodes.length;i++) if(this.childNodes[i].nodeName == "DIV" && this.childNodes[i].getAttribute("default") != "default") this.childNodes[i].style.display="none";</xsl:attribute> |
|
|
|
<xsl:attribute name="onMouseOut">for(var i=0;i<this.childNodes.length;i++) if(this.childNodes[i].nodeName == "DIV" && this.childNodes[i].getAttribute("default") != "default") this.childNodes[i].style.display="none";</xsl:attribute> |
|
|
|
<div class="userbar_name"> |
|
|
|
<div class="userbar_avatar" default="default"> |
|
|
|
<xsl:if test="not(avatar)"> |
|
|
|
<a> |
|
|
|
<xsl:attribute name="default">default</xsl:attribute> |
|
|
|
<xsl:attribute name="href">/Users/User/<xsl:value-of select="id"/>/Info/</xsl:attribute> |
|
|
|
</xsl:if> |
|
|
|
<xsl:choose> |
|
|
|
|
|
|
|
<xsl:when test="avatar"> |
|
|
|
|
|
|
|
<img alt="" class="avatar"> |
|
|
|
|
|
|
|
<xsl:attribute name="src">/Upload/Item/<xsl:value-of select="avatar"/>/</xsl:attribute> |
|
|
|
|
|
|
|
</img> |
|
|
|
|
|
|
|
</xsl:when> |
|
|
|
|
|
|
|
<xsl:otherwise> |
|
|
|
|
|
|
|
<xsl:apply-templates select="current()" mode="userLink"/> |
|
|
|
|
|
|
|
</xsl:otherwise> |
|
|
|
|
|
|
|
</xsl:choose> |
|
|
|
|
|
|
|
</a> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="userbar_additional" style="display:none"> |
|
|
|
<xsl:if test="avatar"> |
|
|
|
<xsl:if test="avatar"> |
|
|
|
<xsl:attribute name="style">display:none</xsl:attribute> |
|
|
|
<div class="userbar_name"> |
|
|
|
|
|
|
|
<xsl:apply-templates select="current()" mode="userLink"/> |
|
|
|
|
|
|
|
</div> |
|
|
|
</xsl:if> |
|
|
|
</xsl:if> |
|
|
|
<xsl:apply-templates select="current()" mode="userLink"/> |
|
|
|
<div class="userbar_title"> |
|
|
|
</div> |
|
|
|
<xsl:value-of select="title"/> |
|
|
|
<div class="userbar_title" style="display:none"> |
|
|
|
|
|
|
|
<xsl:value-of select="title"/> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<xsl:if test="avatar"> |
|
|
|
|
|
|
|
<div class="userbar_avatar" default="default"> |
|
|
|
|
|
|
|
<a> |
|
|
|
|
|
|
|
<xsl:attribute name="href">/Users/User/<xsl:value-of select="id"/>/Info/</xsl:attribute> |
|
|
|
|
|
|
|
<img alt="" class="avatar"> |
|
|
|
|
|
|
|
<xsl:attribute name="src">/Upload/Item/<xsl:value-of select="avatar"/>/</xsl:attribute> |
|
|
|
|
|
|
|
</img> |
|
|
|
|
|
|
|
</a> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</xsl:if> |
|
|
|
<div class="userbar_regdate"> |
|
|
|
<div class="userbar_regdate" style="display:none"> |
|
|
|
<xsl:text>Đĺă.: </xsl:text> |
|
|
|
<xsl:text>Đĺă.: </xsl:text> |
|
|
|
<xsl:apply-templates select="regDate/date" mode="date"/> |
|
|
|
<xsl:apply-templates select="regDate/date" mode="date"/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="userbar_totalposts"> |
|
|
|
<div class="userbar_totalposts" style="display:none"> |
|
|
|
<xsl:text>Ńîîáůĺíčé: </xsl:text> |
|
|
|
<xsl:text>Ńîîáůĺíčé: </xsl:text> |
|
|
|
<xsl:value-of select="totalPosts"/> |
|
|
|
<xsl:value-of select="totalPosts"/> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<xsl:if test="location!=''"> |
|
|
|
|
|
|
|
<div class="userbar_location" style="display:none"> |
|
|
|
|
|
|
|
<xsl:text>Čç: </xsl:text> |
|
|
|
|
|
|
|
<xsl:value-of select="location"/> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</xsl:if> |
|
|
|
<xsl:if test="location!=''"> |
|
|
|
|
|
|
|
<div class="userbar_location"> |
|
|
|
|
|
|
|
<xsl:text>Čç: </xsl:text> |
|
|
|
|
|
|
|
<xsl:value-of select="location"/> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</xsl:if> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</xsl:template> |
|
|
|
</xsl:template> |
|
|
|
</xsl:stylesheet> |
|
|
|
</xsl:stylesheet> |