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/MyHeader.xslt

87 lines
3.5 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 name="myHeader">
<div class="header">
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/My/Login/</xsl:with-param>
<xsl:with-param name="text">Âõîä</xsl:with-param>
<xsl:with-param name="isDisabled">
<xsl:if test="session/sessionKey">true</xsl:if>
</xsl:with-param>
</xsl:call-template>
<xsl:text>&#160;&#160;&#160;</xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/My/Conversations/</xsl:with-param>
<xsl:with-param name="text">
<xsl:choose>
<xsl:when test="session/sessionKey and (session/indicators/unreadPrivateMessages != '0')">
<b>
<xsl:text>Èíáîêñ (</xsl:text>
<xsl:value-of select="session/indicators/unreadPrivateMessages"/>
<xsl:text>)</xsl:text>
</b>
</xsl:when>
<xsl:otherwise>
<xsl:text>Èíáîêñ</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
<xsl:with-param name="isDisabled">
<xsl:if test="not(session/sessionKey)">true</xsl:if>
</xsl:with-param>
</xsl:call-template>
<xsl:if test="conversation">
<xsl:text> &#8594; </xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">
<xsl:text>/My/Conversations/Conversation/</xsl:text>
<xsl:value-of select="conversation/interlocutor/account/id"/>
<xsl:text>/</xsl:text>
</xsl:with-param>
<xsl:with-param name="text"><xsl:value-of select="conversation/interlocutor/account/user/name"/></xsl:with-param>
</xsl:call-template>
</xsl:if>
<xsl:text>&#160;&#160;&#160;</xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/My/Settings/</xsl:with-param>
<xsl:with-param name="text">Íàñòðîéêè</xsl:with-param>
<xsl:with-param name="isDisabled">
<xsl:if test="not(session/sessionKey)">true</xsl:if>
</xsl:with-param>
</xsl:call-template>
<xsl:text>&#160;&#160;&#160;</xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/My/UserData/</xsl:with-param>
<xsl:with-param name="text">Äàííûå (?)</xsl:with-param>
<xsl:with-param name="isDisabled">
<xsl:if test="not(session/sessionKey)">true</xsl:if>
</xsl:with-param>
</xsl:call-template>
<xsl:text>&#160;&#160;&#160;</xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/My/Avatars/</xsl:with-param>
<xsl:with-param name="text">Àâàòàðêè</xsl:with-param>
<xsl:with-param name="isDisabled">
<xsl:if test="not(session/sessionKey)">true</xsl:if>
</xsl:with-param>
</xsl:call-template>
<xsl:text>&#160;&#160;&#160;</xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/Users/User/<xsl:value-of select="session/user/id"/>/Info/</xsl:with-param>
<xsl:with-param name="text">Ïðîôèëü</xsl:with-param>
<xsl:with-param name="isDisabled">
<xsl:if test="not(session/sessionKey)">true</xsl:if>
</xsl:with-param>
</xsl:call-template>
<xsl:text>&#160;&#160;&#160;</xsl:text>
<a target="_top">
<xsl:if test="session/sessionKey">
<xsl:attribute name="href">/do/Logout/?sessionKey=<xsl:value-of select="session/sessionKey"/></xsl:attribute>
</xsl:if>
<xsl:text>Âûõîä</xsl:text>
</a>
</div>
</xsl:template>
</xsl:stylesheet>