Foundry: Formatting

git-svn-id: https://svn.libreccm.org/ccm/trunk@3267 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2015-02-24 16:04:43 +00:00
parent ba3e747651
commit 9259c8ec59
1 changed files with 80 additions and 80 deletions

View File

@ -211,9 +211,9 @@ processor, some are read from the configuration files of Foundry and some are de
</foundry:doc>
<xsl:variable name="languages">
</xsl:variable>-->
</xsl:variable>-->
<foundry:doc section="devel" type="env-var">
<foundry:doc section="devel" type="env-var">
<foundry:doc-desc>
<p>
The languages supported by this theme. They are configured in
@ -232,11 +232,11 @@ processor, some are read from the configuration files of Foundry and some are de
</pre>
</p>
</foundry:doc-desc>
</foundry:doc>
<xsl:variable name="supported-languages"
</foundry:doc>
<xsl:variable name="supported-languages"
select="document(foundry:gen-path('conf/global.xml'))/foundry:configuration/supported-languages"/>
<foundry:doc section="devel" type="template-tag">
<foundry:doc section="devel" type="template-tag">
<foundry:doc-desc>
<p>
The language to use by theme engine for static texts etc. The language is determined
@ -250,8 +250,8 @@ processor, some are read from the configuration files of Foundry and some are de
<li>Otherwise the first of the supported languages is used.</li>
</ul>
</foundry:doc-desc>
</foundry:doc>
<xsl:variable name="language">
</foundry:doc>
<xsl:variable name="language">
<xsl:choose>
<xsl:when test="$supported-languages/language[@locale=$negotiated-language]">
<xsl:value-of select="$negotiated-language"/>
@ -264,54 +264,54 @@ processor, some are read from the configuration files of Foundry and some are de
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
</xsl:variable>
<!-- **************************************************************************** -->
<!-- **************************************************************************** -->
<!--
<!--
Variables describing the user agent.
ToDo: Check if we still need them.
-->
<!--<foundry:doc section="devel" type="evn-var">
-->
<!--<foundry:doc section="devel" type="evn-var">
<foundry:doc-desc>
<p>
The name of the user agent (browser) which is used to access CCM.
</p>
</foundry:doc-desc>
</foundry:doc>-->
<xsl:param name="user-agent"/>
</foundry:doc>-->
<xsl:param name="user-agent"/>
<xsl:variable name="mozilla-version">
<xsl:variable name="mozilla-version">
<xsl:value-of select="substring(substring-after($user-agent, 'Mozilla/'), 1, 1)"/>
</xsl:variable>
</xsl:variable>
<!-- Firefox -->
<xsl:variable name="firefox-version">
<!-- Firefox -->
<xsl:variable name="firefox-version">
<xsl:value-of select="substring(substring-after($user-agent, 'Firefox/'), 1, 1)"/>
</xsl:variable>
</xsl:variable>
<!-- Konqueror -->
<xsl:variable name="konqueror-version">
<!-- Konqueror -->
<xsl:variable name="konqueror-version">
<xsl:value-of select="substring(substring-after($user-agent, 'Konqueror/'), 1, 1)"/>
</xsl:variable>
</xsl:variable>
<!-- Opera -->
<xsl:variable name="opera-version1">
<!-- Opera -->
<xsl:variable name="opera-version1">
<xsl:value-of select="substring(substring-after($user-agent, 'Opera/'), 1, 1)"/>
</xsl:variable>
</xsl:variable>
<xsl:variable name="opera-version2">
<xsl:variable name="opera-version2">
<xsl:value-of select="substring(substring-after($user-agent, 'Opera '), 1, 1)"/>
</xsl:variable>
</xsl:variable>
<!-- MSIE -->
<xsl:variable name="msie_version">
<!-- MSIE -->
<xsl:variable name="msie_version">
<xsl:value-of select="substring(substring-after($user-agent, 'MSIE '), 1, 1)"/>
</xsl:variable>
</xsl:variable>
<!-- AppleWebKit -->
<xsl:variable name="webkit_version">
<!-- AppleWebKit -->
<xsl:variable name="webkit_version">
<xsl:value-of select="substring(substring-after($user-agent, 'AppleWebKit/'), 1, 3)"/>
</xsl:variable>
</xsl:variable>
</xsl:stylesheet>