Browse Source

sync with trunk, testing xsl based promo items

svn path=/branches/test/; revision=30392
pull/8/head
Max Mehl 6 years ago
parent
commit
4531dcc490
10 changed files with 3861 additions and 484 deletions
  1. +18
    -0
      contribute/promoitems/info.en.xml
  2. +20
    -0
      contribute/promoitems/item.en.xml
  3. +748
    -0
      contribute/spreadtheword.de.xhtml
  4. +5
    -417
      contribute/spreadtheword.en.xhtml
  5. +749
    -0
      contribute/spreadtheword.it.xhtml
  6. +840
    -0
      contribute/spreadtheword.nl.xhtml
  7. +705
    -0
      contribute/spreadtheword.sk.xhtml
  8. +2
    -0
      contribute/spreadtheword.sources
  9. +712
    -67
      contribute/spreadtheword.sq.xhtml
  10. +62
    -0
      contribute/spreadtheword.xsl

+ 18
- 0
contribute/promoitems/info.en.xml View File

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8" ?>
<infoset>
<info id="fsfe-folder">
<name>FSFE Folder</name>
<description>
Text 1
</description>
</info>
<info id="nocloud">
<name>There is no cloud, just other people's computers</name>
<description>
Text 2
</description>
</info>
</infoset>

+ 20
- 0
contribute/promoitems/item.en.xml View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Do not translate this file! -->
<itemset>
<item type="fsfe" id="fsfe-folder" order="1">
<image
imglarge="/about/printable/folder.en.F.pdf"
imgsmall="/contribute/promopics/folder-fsfe-en1_thumb.png"/>
</item>
<item type="fsfreedom" id="nocloud" order="1">
<image
imglarge="http://download.fsfe.org/advocacy/stickers/thereisnocloud/thereisnocloud-final-85mm.png"
imgsmall="/contribute/promopics/thereisnocloud_thumb.png"/>
</item>
</itemset>

+ 748
- 0
contribute/spreadtheword.de.xhtml
File diff suppressed because it is too large
View File


+ 5
- 417
contribute/spreadtheword.en.xhtml
File diff suppressed because it is too large
View File


+ 749
- 0
contribute/spreadtheword.it.xhtml
File diff suppressed because it is too large
View File


+ 840
- 0
contribute/spreadtheword.nl.xhtml
File diff suppressed because it is too large
View File


+ 705
- 0
contribute/spreadtheword.sk.xhtml
File diff suppressed because it is too large
View File


+ 2
- 0
contribute/spreadtheword.sources View File

@ -0,0 +1,2 @@
contribute/promoitems/item:global
contribute/promoitems/info:global

+ 712
- 67
contribute/spreadtheword.sq.xhtml
File diff suppressed because it is too large
View File


+ 62
- 0
contribute/spreadtheword.xsl View File

@ -0,0 +1,62 @@
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../fsfe.xsl" />
<xsl:output method="html" encoding="utf-8" indent="yes" doctype-system="about:legacy-compat" />
<!-- Fill dynamic content -->
<xsl:template match="dynamic-content">
<xsl:variable name="type"><xsl:value-of select="@type"/></xsl:variable>
<!-- Full Item -->
<xsl:element name="div">
<xsl:attribute name="class">left break margin-vertical</xsl:attribute>
<xsl:for-each select="/buildinfo/document/set/item [@type = $type]">
<xsl:sort select="@order" order="descending"/>
<xsl:variable name="id"><xsl:value-of select="@id"/></xsl:variable>
<!-- Name -->
<xsl:element name="p">
<xsl:attribute name="id"><xsl:value-of select="$id"/></xsl:attribute>
<xsl:element name="strong">
<xsl:value-of select="/buildinfo/document/set/info[@id=$id]/name" />
</xsl:element>
</xsl:element>
<!-- / Name -->
<!-- Image -->
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="@imglarge" />
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="/buildinfo/document/set/info[@id=$id]/name" />
</xsl:attribute>
<xsl:element name="img">
<xsl:attribute name="class">left grid-30</xsl:attribute>
<xsl:attribute name="src">
<xsl:value-of select="@imgsmall" />
</xsl:attribute>
</xsl:element>
</xsl:element>
<!-- /Image -->
<!-- Description -->
<xsl:element name="p">
<xsl:attribute name="class">right grid-70</xsl:attribute>
<xsl:attribute name="style">margin-top:0;</xsl:attribute>
<xsl:value-of select="@description" />
</xsl:element>
<!-- / Description -->
</xsl:for-each>
</xsl:element>
<!-- / Full Item -->
</xsl:template>
</xsl:stylesheet>

Loading…
Cancel
Save