|
|
@ -17,163 +17,151 @@ |
|
|
|
<xsl:param name="isDisabled"/> |
|
|
|
<xsl:param name="isDisabled"/> |
|
|
|
<xsl:param name="postfix"/> |
|
|
|
<xsl:param name="postfix"/> |
|
|
|
<a target="_top"> |
|
|
|
<a target="_top"> |
|
|
|
<xsl:if test="not($isDisabled='true')"> |
|
|
|
<xsl:choose> |
|
|
|
<xsl:attribute name="href"><xsl:value-of select="$url"/><xsl:value-of select="$postfix"/>?<xsl:value-of select="current/date/ticks"/></xsl:attribute> |
|
|
|
<xsl:when test="$isDisabled='true'"> |
|
|
|
</xsl:if> |
|
|
|
<xsl:attribute name="class">disabled</xsl:attribute> |
|
|
|
<xsl:if test="starts-with(/root/currentUrl, $url)"> |
|
|
|
</xsl:when> |
|
|
|
<xsl:attribute name="class">currentLink</xsl:attribute> |
|
|
|
<xsl:otherwise> |
|
|
|
</xsl:if> |
|
|
|
<xsl:if test="starts-with(/root/currentUrl, $url)"> |
|
|
|
|
|
|
|
<xsl:attribute name="class">selected</xsl:attribute> |
|
|
|
|
|
|
|
</xsl:if> |
|
|
|
|
|
|
|
<xsl:attribute name="href"><xsl:value-of select="$url"/><xsl:value-of select="$postfix"/>?<xsl:value-of select="current/date/ticks"/></xsl:attribute> |
|
|
|
|
|
|
|
</xsl:otherwise> |
|
|
|
|
|
|
|
</xsl:choose> |
|
|
|
<xsl:value-of select="$text"/> |
|
|
|
<xsl:value-of select="$text"/> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
</xsl:template> |
|
|
|
</xsl:template> |
|
|
|
|
|
|
|
|
|
|
|
<xsl:template name="header"> |
|
|
|
<xsl:template name="header"> |
|
|
|
<table width="95%" align="center" class="tablesurround" cellpadding="1" cellspacing="1"> |
|
|
|
<div class="designslinks" style="float:right;"> |
|
|
|
<tr> |
|
|
|
<xsl:variable name="isClassicEnabled"> |
|
|
|
<td> |
|
|
|
<xsl:call-template name="isClassicEnabled"/> |
|
|
|
<table width="100%" class="tableborders" cellpadding="3" cellspacing="1"> |
|
|
|
</xsl:variable> |
|
|
|
<tr> |
|
|
|
<xsl:variable name="isLiteEnabled"> |
|
|
|
<td align="center" class="menubar"> |
|
|
|
<xsl:call-template name="isLiteEnabled"/> |
|
|
|
<table width="100%" border="0"> |
|
|
|
</xsl:variable> |
|
|
|
<tr> |
|
|
|
<xsl:variable name="isRssEnabled"> |
|
|
|
<td width="15%"> </td> |
|
|
|
<xsl:call-template name="isRssEnabled"/> |
|
|
|
<td width="70%" align="center"> |
|
|
|
</xsl:variable> |
|
|
|
<xsl:if test="session/sessionKey and (session/indicators/unreadPrivateMessages != '0')"> |
|
|
|
<xsl:variable name="rssRelativeLink"> |
|
|
|
<a href="/My/Conversations/"> |
|
|
|
<xsl:call-template name="rssRelativeLink"/> |
|
|
|
<img src="/static/images/newpm.gif" border="0"> |
|
|
|
</xsl:variable> |
|
|
|
<xsl:attribute name="alt"> |
|
|
|
<xsl:variable name="prefix"> |
|
|
|
<xsl:text>Ó âàñ </xsl:text> |
|
|
|
<xsl:text>https://</xsl:text> |
|
|
|
<xsl:value-of select="session/indicators/unreadPrivateMessages"/> |
|
|
|
<xsl:value-of select="url/host"/> |
|
|
|
<xsl:text> íåïðî÷èòàííûõ ëè÷íûõ ñîîáùåíèé</xsl:text> |
|
|
|
<xsl:text>:</xsl:text> |
|
|
|
</xsl:attribute> |
|
|
|
<xsl:if test="url/port >= 1000"> |
|
|
|
</img> |
|
|
|
<xsl:value-of select="floor(url/port div 1000)"/> |
|
|
|
</a> |
|
|
|
</xsl:if> |
|
|
|
<xsl:text> | </xsl:text> |
|
|
|
</xsl:variable> |
|
|
|
</xsl:if> |
|
|
|
<a> |
|
|
|
<xsl:call-template name="headerLink"> |
|
|
|
<xsl:if test="$isClassicEnabled='true'"> |
|
|
|
<xsl:with-param name="url">/Forum/</xsl:with-param> |
|
|
|
<xsl:attribute name="href"> |
|
|
|
<xsl:with-param name="text">Ôîðóì</xsl:with-param> |
|
|
|
<xsl:value-of select="$prefix"/> |
|
|
|
</xsl:call-template> |
|
|
|
<xsl:text>451</xsl:text> |
|
|
|
<xsl:text> | </xsl:text> |
|
|
|
<xsl:value-of select="currentUrl"/> |
|
|
|
<xsl:call-template name="headerLink"> |
|
|
|
</xsl:attribute> |
|
|
|
<xsl:with-param name="url">/Polls/</xsl:with-param> |
|
|
|
</xsl:if> |
|
|
|
<xsl:with-param name="text">Îïðîñû</xsl:with-param> |
|
|
|
<img border="0"> |
|
|
|
</xsl:call-template> |
|
|
|
<xsl:attribute name="src"> |
|
|
|
<xsl:text> | </xsl:text> |
|
|
|
<xsl:text>/static/images/classic.jpg</xsl:text> |
|
|
|
<xsl:call-template name="headerLink"> |
|
|
|
</xsl:attribute> |
|
|
|
<xsl:with-param name="url">/Upload/</xsl:with-param> |
|
|
|
</img> |
|
|
|
<xsl:with-param name="text">Àïëîàä</xsl:with-param> |
|
|
|
</a> |
|
|
|
<xsl:with-param name="isDisabled"> |
|
|
|
<xsl:text>  </xsl:text> |
|
|
|
<xsl:if test="not(session/sessionKey)">true</xsl:if> |
|
|
|
<a> |
|
|
|
</xsl:with-param> |
|
|
|
<xsl:if test="$isLiteEnabled='true'"> |
|
|
|
</xsl:call-template> |
|
|
|
<xsl:attribute name="href"> |
|
|
|
<xsl:text> | </xsl:text> |
|
|
|
<xsl:value-of select="$prefix"/> |
|
|
|
<xsl:call-template name="headerLink"> |
|
|
|
<xsl:text>447</xsl:text> |
|
|
|
<xsl:with-param name="url">/My/</xsl:with-param> |
|
|
|
<xsl:value-of select="currentUrl"/> |
|
|
|
<xsl:with-param name="text">My Home</xsl:with-param> |
|
|
|
</xsl:attribute> |
|
|
|
</xsl:call-template> |
|
|
|
</xsl:if> |
|
|
|
<xsl:text> | </xsl:text> |
|
|
|
<img border="0"> |
|
|
|
<xsl:call-template name="headerLink"> |
|
|
|
<xsl:attribute name="src"> |
|
|
|
<xsl:with-param name="url">/q/faq/</xsl:with-param> |
|
|
|
<xsl:text>/static/images/light</xsl:text> |
|
|
|
<xsl:with-param name="text">FAQ</xsl:with-param> |
|
|
|
<xsl:if test="not($isLiteEnabled='true')"> |
|
|
|
</xsl:call-template> |
|
|
|
<xsl:text>-disabled</xsl:text> |
|
|
|
<xsl:text> | </xsl:text> |
|
|
|
</xsl:if> |
|
|
|
<xsl:call-template name="headerLink"> |
|
|
|
<xsl:text>.png</xsl:text> |
|
|
|
<xsl:with-param name="url">/Users/</xsl:with-param> |
|
|
|
</xsl:attribute> |
|
|
|
<xsl:with-param name="text">Ïîëüçîâàòåëè</xsl:with-param> |
|
|
|
</img> |
|
|
|
</xsl:call-template> |
|
|
|
</a> |
|
|
|
</td> |
|
|
|
<xsl:text>  </xsl:text> |
|
|
|
<td width="15%" align="right"> |
|
|
|
<a> |
|
|
|
<xsl:variable name="isClassicEnabled"> |
|
|
|
<xsl:if test="$isRssEnabled='true'"> |
|
|
|
<xsl:call-template name="isClassicEnabled"/> |
|
|
|
<xsl:attribute name="href"> |
|
|
|
</xsl:variable> |
|
|
|
<xsl:value-of select="$prefix"/> |
|
|
|
<xsl:variable name="isLiteEnabled"> |
|
|
|
<xsl:text>449</xsl:text> |
|
|
|
<xsl:call-template name="isLiteEnabled"/> |
|
|
|
<xsl:value-of select="$rssRelativeLink"/> |
|
|
|
</xsl:variable> |
|
|
|
</xsl:attribute> |
|
|
|
<xsl:variable name="isRssEnabled"> |
|
|
|
</xsl:if> |
|
|
|
<xsl:call-template name="isRssEnabled"/> |
|
|
|
<img border="0"> |
|
|
|
</xsl:variable> |
|
|
|
<xsl:attribute name="src"> |
|
|
|
<xsl:variable name="rssRelativeLink"> |
|
|
|
<xsl:text>/static/images/rss</xsl:text> |
|
|
|
<xsl:call-template name="rssRelativeLink"/> |
|
|
|
<xsl:if test="not($isRssEnabled='true')"> |
|
|
|
</xsl:variable> |
|
|
|
<xsl:text>-disabled</xsl:text> |
|
|
|
<xsl:variable name="prefix"> |
|
|
|
</xsl:if> |
|
|
|
<xsl:text>https://</xsl:text> |
|
|
|
<xsl:text>.png</xsl:text> |
|
|
|
<xsl:value-of select="url/host"/> |
|
|
|
</xsl:attribute> |
|
|
|
<xsl:text>:</xsl:text> |
|
|
|
</img> |
|
|
|
<xsl:if test="url/port >= 1000"> |
|
|
|
</a> |
|
|
|
<xsl:value-of select="floor(url/port div 1000)"/> |
|
|
|
<xsl:if test="$isRssEnabled='true'"> |
|
|
|
</xsl:if> |
|
|
|
<link rel="alternate" type="application/rss+xml" title="RSS"> |
|
|
|
</xsl:variable> |
|
|
|
<xsl:attribute name="href"> |
|
|
|
<a> |
|
|
|
<xsl:value-of select="$prefix"/> |
|
|
|
<xsl:if test="$isClassicEnabled='true'"> |
|
|
|
<xsl:text>449</xsl:text> |
|
|
|
<xsl:attribute name="href"> |
|
|
|
<xsl:value-of select="$rssRelativeLink"/> |
|
|
|
<xsl:value-of select="$prefix"/> |
|
|
|
</xsl:attribute> |
|
|
|
<xsl:text>451</xsl:text> |
|
|
|
</link> |
|
|
|
<xsl:value-of select="currentUrl"/> |
|
|
|
</xsl:if> |
|
|
|
</xsl:attribute> |
|
|
|
</div> |
|
|
|
</xsl:if> |
|
|
|
<div class="header"> |
|
|
|
<img border="0"> |
|
|
|
<xsl:if test="session/sessionKey and (session/indicators/unreadPrivateMessages != '0')"> |
|
|
|
<xsl:attribute name="src"> |
|
|
|
<a href="/My/Conversations/"> |
|
|
|
<xsl:text>/static/images/classic.jpg</xsl:text> |
|
|
|
<img src="/static/images/newpm.gif" border="0"> |
|
|
|
</xsl:attribute> |
|
|
|
<xsl:attribute name="alt"> |
|
|
|
</img> |
|
|
|
<xsl:text>Ó âàñ </xsl:text> |
|
|
|
</a> |
|
|
|
<xsl:value-of select="session/indicators/unreadPrivateMessages"/> |
|
|
|
<xsl:text>  </xsl:text> |
|
|
|
<xsl:text> íåïðî÷èòàííûõ ëè÷íûõ ñîîáùåíèé</xsl:text> |
|
|
|
<a> |
|
|
|
</xsl:attribute> |
|
|
|
<xsl:if test="$isLiteEnabled='true'"> |
|
|
|
</img> |
|
|
|
<xsl:attribute name="href"> |
|
|
|
</a> |
|
|
|
<xsl:value-of select="$prefix"/> |
|
|
|
<xsl:text>   </xsl:text> |
|
|
|
<xsl:text>447</xsl:text> |
|
|
|
</xsl:if> |
|
|
|
<xsl:value-of select="currentUrl"/> |
|
|
|
<xsl:call-template name="headerLink"> |
|
|
|
</xsl:attribute> |
|
|
|
<xsl:with-param name="url">/Forum/</xsl:with-param> |
|
|
|
</xsl:if> |
|
|
|
<xsl:with-param name="text">Ôîðóì</xsl:with-param> |
|
|
|
<img border="0"> |
|
|
|
</xsl:call-template> |
|
|
|
<xsl:attribute name="src"> |
|
|
|
<xsl:text>   </xsl:text> |
|
|
|
<xsl:text>/static/images/light</xsl:text> |
|
|
|
<xsl:call-template name="headerLink"> |
|
|
|
<xsl:if test="not($isLiteEnabled='true')"> |
|
|
|
<xsl:with-param name="url">/Polls/</xsl:with-param> |
|
|
|
<xsl:text>-disabled</xsl:text> |
|
|
|
<xsl:with-param name="text">Îïðîñû</xsl:with-param> |
|
|
|
</xsl:if> |
|
|
|
</xsl:call-template> |
|
|
|
<xsl:text>.png</xsl:text> |
|
|
|
<xsl:text>   </xsl:text> |
|
|
|
</xsl:attribute> |
|
|
|
<xsl:call-template name="headerLink"> |
|
|
|
</img> |
|
|
|
<xsl:with-param name="url">/Upload/</xsl:with-param> |
|
|
|
</a> |
|
|
|
<xsl:with-param name="text">Àïëîàä</xsl:with-param> |
|
|
|
<xsl:text>  </xsl:text> |
|
|
|
<xsl:with-param name="isDisabled"> |
|
|
|
<a> |
|
|
|
<xsl:if test="not(session/sessionKey)">true</xsl:if> |
|
|
|
<xsl:if test="$isRssEnabled='true'"> |
|
|
|
</xsl:with-param> |
|
|
|
<xsl:attribute name="href"> |
|
|
|
</xsl:call-template> |
|
|
|
<xsl:value-of select="$prefix"/> |
|
|
|
<xsl:text>   </xsl:text> |
|
|
|
<xsl:text>449</xsl:text> |
|
|
|
<xsl:call-template name="headerLink"> |
|
|
|
<xsl:value-of select="$rssRelativeLink"/> |
|
|
|
<xsl:with-param name="url">/My/</xsl:with-param> |
|
|
|
</xsl:attribute> |
|
|
|
<xsl:with-param name="text">Ëè÷íîå</xsl:with-param> |
|
|
|
</xsl:if> |
|
|
|
</xsl:call-template> |
|
|
|
<img border="0"> |
|
|
|
<xsl:text>   </xsl:text> |
|
|
|
<xsl:attribute name="src"> |
|
|
|
<xsl:call-template name="headerLink"> |
|
|
|
<xsl:text>/static/images/rss</xsl:text> |
|
|
|
<xsl:with-param name="url">/q/faq/</xsl:with-param> |
|
|
|
<xsl:if test="not($isRssEnabled='true')"> |
|
|
|
<xsl:with-param name="text">FAQ</xsl:with-param> |
|
|
|
<xsl:text>-disabled</xsl:text> |
|
|
|
</xsl:call-template> |
|
|
|
</xsl:if> |
|
|
|
<xsl:text>   </xsl:text> |
|
|
|
<xsl:text>.png</xsl:text> |
|
|
|
<xsl:call-template name="headerLink"> |
|
|
|
</xsl:attribute> |
|
|
|
<xsl:with-param name="url">/Users/</xsl:with-param> |
|
|
|
</img> |
|
|
|
<xsl:with-param name="text">Ïîëüçîâàòåëè</xsl:with-param> |
|
|
|
</a> |
|
|
|
</xsl:call-template> |
|
|
|
<xsl:if test="$isRssEnabled='true'"> |
|
|
|
</div> |
|
|
|
<link rel="alternate" type="application/rss+xml" title="RSS"> |
|
|
|
|
|
|
|
<xsl:attribute name="href"> |
|
|
|
|
|
|
|
<xsl:value-of select="$prefix"/> |
|
|
|
|
|
|
|
<xsl:text>449</xsl:text> |
|
|
|
|
|
|
|
<xsl:value-of select="$rssRelativeLink"/> |
|
|
|
|
|
|
|
</xsl:attribute> |
|
|
|
|
|
|
|
</link> |
|
|
|
|
|
|
|
</xsl:if> |
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
</table> |
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
</table> |
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
</table> |
|
|
|
|
|
|
|
<xsl:if test="starts-with(/root/currentUrl, '/Forum/')"> |
|
|
|
<xsl:if test="starts-with(/root/currentUrl, '/Forum/')"> |
|
|
|
<xsl:call-template name="forumHeader"/> |
|
|
|
<xsl:call-template name="forumHeader"/> |
|
|
|
</xsl:if> |
|
|
|
</xsl:if> |
|
|
|