Browse Source

Add a new configuration section to the buildinfo, <webset>. Currently with just one attribute, root, used to influence the urls for css. Should have no effect on the regular build, because the unset value is treated as blank, leading to the same output as now.

svn path=/branches/test/; revision=13949
tags/stw2018
adridg 9 years ago
parent
commit
e2e7c0b9fa
2 changed files with 10 additions and 2 deletions
  1. 8
    1
      fsfeurope.xsl
  2. 2
    1
      tools/bogus-build.pl

+ 8
- 1
fsfeurope.xsl View File

@@ -28,7 +28,13 @@
<xsl:template match="head">
<xsl:copy>
<meta name="robots" content="index, follow" />
<link rel="stylesheet" media="all" href="/fsfeurope.css" type="text/css" />
<xsl:element name="link">
<xsl:attribute name="rel">stylesheet</xsl:attribute>
<xsl:attribute name="media">all</xsl:attribute>
<xsl:attribute name="type">text/css</xsl:attribute>
<xsl:attribute name="href">
<xsl:value-of select="/buildinfo/webset/@root" />/fsfeurope.css</xsl:attribute>
</xsl:element>
<link rel="stylesheet" media="print" href="/print.css" type="text/css" />
<xsl:if test="/buildinfo/@language='ar'">
<link rel="stylesheet" media="all" href="/rtl.css" type="text/css" />
@@ -412,6 +418,7 @@
buildinfo/textset|
buildinfo/textsetbackup|
buildinfo/menuset|
buildinfo/webset|
buildinfo/trlist|
buildinfo/fundraising|
buildinfo/localmenuset"/>

+ 2
- 1
tools/bogus-build.pl View File

@@ -36,7 +36,8 @@ print<<EOF;
<textset> <!-- The static text set for this language -->
<text id="menu/about">About</text>
</textset>

<webset root="http://www.fsfeurope.org">
</webset>

<document language="en">
EOF

Loading…
Cancel
Save