Browse Source

year-attribute as category basis

svn path=/branches/test/; revision=31112
pull/8/head
Max Mehl 5 years ago
parent
commit
d408a1aafe
2 changed files with 20 additions and 11 deletions
  1. +15
    -7
      contribute/promotion-materials-archive.en.xhtml
  2. +5
    -4
      contribute/promotion-materials-archive.xsl

+ 15
- 7
contribute/promotion-materials-archive.en.xhtml View File

@ -32,19 +32,27 @@
<body>
<p id="category"><a href="/contribute/">Contribute</a></p>
<h1 id="spread-the-word">Promotion Material Archive</h1>
<h1 id="promoarchive">Promotion Material Archive</h1>
<h3 id="testing" class="left break">Silly tests</h3>
<h3 class="left break">2042</h3>
<dynamic-content type="test"/>
<dynamic-content year="2042"/>
<h3 id="fsfe-and-fellowship-material" class="left break">About FSFE and the Fellowship</h3>
<h3 class="left break">2015</h3>
<dynamic-content type="fsfe"/>
<dynamic-content type="2015"/>
<h3 class="left break">2014</h3>
<h3 id="free-software" class="left break">Free Software and users freedom</h3>
<dynamic-content type="2014"/>
<h3 class="left break">2008</h3>
<dynamic-content type="fsfreedom"/>
<dynamic-content type="2008"/>
<h3 class="left break">2005</h3>
<dynamic-content type="2005"/>
</body>


+ 5
- 4
contribute/promotion-materials-archive.xsl View File

@ -6,9 +6,9 @@
<!-- Fill dynamic content -->
<xsl:template match="dynamic-content">
<xsl:variable name="type"><xsl:value-of select="@type"/></xsl:variable>
<xsl:variable name="year"><xsl:value-of select="@year"/></xsl:variable>
<xsl:for-each select="/buildinfo/document/set/item [@type = $type]">
<xsl:for-each select="/buildinfo/document/set/item [@year = $year]">
<xsl:sort select="@order" order="ascending"/>
<!-- Full Item -->
@ -17,7 +17,7 @@
<!-- Load item variables id and year -->
<xsl:variable name="id"><xsl:value-of select="@id"/></xsl:variable>
<xsl:variable name="year"><xsl:value-of select="@year"/></xsl:variable>
<xsl:variable name="type"><xsl:value-of select="@type"/></xsl:variable>
<!-- Name -->
<xsl:element name="p">
@ -149,12 +149,13 @@
</xsl:if>
<!-- Year -->
<!--
<xsl:element name="strong">
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'stw-year'" /></xsl:call-template>
<xsl:text>: </xsl:text>
</xsl:element>
<xsl:value-of select="$year"/>
<xsl:element name="br"></xsl:element>
<xsl:element name="br"></xsl:element>-->
<!-- SMALLER TEXT -->


Loading…
Cancel
Save