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

67 lines
2.2 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:output method="xml" indent="no" encoding="UCS-2"/>
<xsl:template name="specificTitle"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></xsl:template>
<xsl:template match="/root">
<html>
<head>
<link rel="stylesheet" href="/static/css/global.css" type="text/css" />
<link rel="stylesheet" type="text/css">
<xsl:attribute name="href">/static/css/<xsl:value-of select="skin/name"/>.css</xsl:attribute>
</link>
<link rel="shortcut icon" href="/static/favicons/smirk.ico" type="image/x-icon" />
<title><xsl:value-of select="title"/></title>
</head>
<body>
<center>
<table width="95%" height="95%">
<tr>
<td align="center" valign="middle">
<h1>
<xsl:choose>
<xsl:when test="session/user">
<xsl:text>Hello, </xsl:text><xsl:value-of select="session/user/name"/>
</xsl:when>
<xsl:otherwise>
<xsl:text>Hello, Guest</xsl:text>
</xsl:otherwise>
</xsl:choose>
</h1>
<xsl:variable name="prefix">
<xsl:text>https://</xsl:text>
<xsl:value-of select="url/host"/>
<xsl:text>:</xsl:text>
<xsl:if test="url/port &gt;= 1000">
<xsl:value-of select="floor(url/port div 1000)"/>
</xsl:if>
</xsl:variable>
<h2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></h2>
<h4>
<a>
<xsl:attribute name="href"><xsl:value-of select="$prefix"/>443/Boards/</xsl:attribute>
<xsl:text><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></xsl:text>
</a>
</h4>
<h4>
<a>
<xsl:attribute name="href"><xsl:value-of select="$prefix"/>447/Boards/</xsl:attribute>
<xsl:text><EFBFBD><EFBFBD><EFBFBD><EFBFBD></xsl:text>
</a>
</h4>
<h4>
<a>
<xsl:attribute name="href"><xsl:value-of select="$prefix"/>445/Boards/</xsl:attribute>
<xsl:text><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> XML</xsl:text>
</a>
</h4>
</td>
</tr>
</table>
</center>
</body>
</html>
</xsl:template>
</xsl:stylesheet>