An alternative to UBB.threads
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
FLocal/templates/Modern/elems/UserInfoBar.xslt

49 lines
1.9 KiB

<?xml version="1.0" encoding="Windows-1251"?>
<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">
<div class="userbar">
<xsl:attribute name="onMouseOver">for(var i=0;i&lt;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&lt;this.childNodes.length;i++) if(this.childNodes[i].nodeName == "DIV" &amp;&amp; this.childNodes[i].getAttribute("default") != "default") this.childNodes[i].style.display="none";</xsl:attribute>
<div class="userbar_avatar" default="default">
<a>
<xsl:attribute name="href">/Users/User/<xsl:value-of select="id"/>/Info/</xsl:attribute>
<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">
<div class="userbar_name">
<xsl:apply-templates select="current()" mode="userLink"/>
</div>
</xsl:if>
<div class="userbar_title">
<xsl:value-of select="title"/>
</div>
<div class="userbar_regdate">
<xsl:text>Ðåã.: </xsl:text>
<xsl:apply-templates select="regDate/date" mode="date"/>
</div>
<div class="userbar_totalposts">
<xsl:text>Ñîîáùåíèé: </xsl:text>
<xsl:value-of select="totalPosts"/>
</div>
<xsl:if test="location!=''">
<div class="userbar_location">
<xsl:text>Èç: </xsl:text>
<xsl:value-of select="location"/>
</div>
</xsl:if>
</div>
</div>
</xsl:template>
</xsl:stylesheet>