Browse Source

first test of promo archive

svn path=/branches/test/; revision=31110
pull/8/head
Max Mehl 5 years ago
parent
commit
d2327cf5fb
4 changed files with 299 additions and 0 deletions
  1. +30
    -0
      contribute/promoitems/archive.en.xml
  2. +58
    -0
      contribute/promotion-materials-archive.en.xhtml
  3. +2
    -0
      contribute/promotion-materials-archive.sources
  4. +209
    -0
      contribute/promotion-materials-archive.xsl

+ 30
- 0
contribute/promoitems/archive.en.xml View File

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Do not translate this file! -->
<itemset>
<!-- Test -->
<item type="test" id="testitem" order="1">
<image
imgsmall="/graphics/megaphone.png"/>
</item>
<!-- FSFE and Fellowship -->
<item type="fsfe" id="fellowship-leaflet" order="1">
<image
imgsmall="/contribute/promopics/fellowship-leaflet-thumb.png"/>
</item>
<item type="fsfe" id="fsfe-folder" order="2">
<image
imgsmall="/contribute/promopics/folder-fsfe-en1_thumb.png"/>
</item>
<!-- Free Software and users freedom -->
<item type="fsfreedom" id="nocloud-sticker" order="1">
<image
imgsmall="/contribute/promopics/thereisnocloud_thumb.png"/>
</item>
</itemset>

+ 58
- 0
contribute/promotion-materials-archive.en.xhtml View File

@ -0,0 +1,58 @@
<?xml version="1.0" encoding="UTF-8" ?>
<html>
<head>
<title>Promotion Material Archive - FSFE</title>
<meta content="FSFE's Promotion Material Archive" name="description" />
<meta content="FSFE Graphics Buttons Logo Promotion Sticker Poster Leaflets Flyer Campaigns Free Your Android I cannot read your documents Fellowship Plussy Gnu" name="keywords" />
<style type="text/css">
div.two-column {
float: left;
width: 40%;
}
h1, h2, h3 {
clear: both;
}
div#toc {
float: right;
clear: right;
border: solid 1px;
margin: .5em;
background: rgb(240,240,240);
width: 40%;
}
</style>
</head>
<body>
<p id="category"><a href="/contribute/">Contribute</a></p>
<h1 id="spread-the-word">Promotion Material Archive</h1>
<h3 id="testing" class="left break">Silly tests</h3>
<dynamic-content type="test"/>
<h3 id="fsfe-and-fellowship-material" class="left break">About FSFE and the Fellowship</h3>
<dynamic-content type="fsfe"/>
<h3 id="free-software" class="left break">Free Software and users freedom</h3>
<dynamic-content type="fsfreedom"/>
</body>
<timestamp></timestamp>
</html>
<!--
Local Variables: ***
mode: xml ***
End: ***
-->

+ 2
- 0
contribute/promotion-materials-archive.sources View File

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

+ 209
- 0
contribute/promotion-materials-archive.xsl View File

@ -0,0 +1,209 @@
<?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>
<xsl:for-each select="/buildinfo/document/set/item [@type = $type]">
<xsl:sort select="@order" order="ascending"/>
<!-- Full Item -->
<xsl:element name="div">
<xsl:attribute name="class">left break margin-vertical</xsl:attribute>
<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:for-each select="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> <!-- /img -->
<!-- </xsl:element> --> <!-- /a -->
</xsl:for-each>
<!-- /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:copy-of select="/buildinfo/document/set/info[@id=$id]/description" />
</xsl:element>
<!-- / Description -->
<!-- Details -->
<xsl:element name="p">
<xsl:attribute name="class">right grid-70</xsl:attribute>
<!-- Type -->
<xsl:if test="/buildinfo/document/set/info[@id=$id]/type != ''">
<xsl:element name="strong">
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'stw-type'" /></xsl:call-template>
<xsl:text>: </xsl:text>
</xsl:element>
<xsl:copy-of select="/buildinfo/document/set/info[@id=$id]/type" />
<xsl:element name="br"></xsl:element>
</xsl:if>
<!-- Size -->
<xsl:if test="/buildinfo/document/set/info[@id=$id]/size != ''">
<xsl:element name="strong">
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'stw-size'" /></xsl:call-template>
<xsl:text>: </xsl:text>
</xsl:element>
<xsl:copy-of select="/buildinfo/document/set/info[@id=$id]/size" />
<xsl:element name="br"></xsl:element>
</xsl:if>
<!-- Context (e.g Campaign) -->
<xsl:if test="/buildinfo/document/set/info[@id=$id]/context != ''">
<xsl:element name="strong">
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'stw-context'" /></xsl:call-template>
<xsl:text>: </xsl:text>
</xsl:element>
<xsl:copy-of select="/buildinfo/document/set/info[@id=$id]/context" />
<xsl:element name="br"></xsl:element>
</xsl:if>
<!-- Printed version -->
<xsl:if test="/buildinfo/document/set/info[@id=$id]/printed != ''">
<xsl:element name="span">
<!--<xsl:attribute name="style">font-size:0.8em</xsl:attribute>-->
<xsl:element name="abbr"> <!-- mouseover info text -->
<xsl:attribute name="title">
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'stw-printed-tooltip'" /></xsl:call-template>
</xsl:attribute>
<xsl:element name="strong"> <!-- Field name -->
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'stw-printed'" /></xsl:call-template>
</xsl:element> <!-- /strong -->
</xsl:element> <!-- /abbr -->
<xsl:text>: </xsl:text>
<xsl:element name="br"></xsl:element>
<xsl:copy-of select="/buildinfo/document/set/info[@id=$id]/printed" /> <!-- Dynamic value of the field -->
</xsl:element> <!-- /span -->
<xsl:element name="br"></xsl:element>
</xsl:if>
<!-- Languages -->
<xsl:if test="/buildinfo/document/set/info[@id=$id]/languages != ''">
<xsl:element name="span">
<!--<xsl:attribute name="style">font-size:0.8em</xsl:attribute>-->
<xsl:element name="abbr"> <!-- mouseover info text -->
<xsl:attribute name="title">
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'stw-languages-tooltip'" /></xsl:call-template>
</xsl:attribute>
<xsl:element name="strong"> <!-- Field name -->
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'stw-languages'" /></xsl:call-template>
</xsl:element> <!-- /strong -->
</xsl:element> <!-- /abbr -->
<xsl:text>: </xsl:text>
<xsl:element name="br"></xsl:element>
<xsl:copy-of select="/buildinfo/document/set/info[@id=$id]/languages" /> <!-- Dynamic value of the field -->
</xsl:element> <!-- /span -->
<xsl:element name="br"></xsl:element>
</xsl:if>
<!-- License -->
<xsl:if test="/buildinfo/document/set/info[@id=$id]/license != ''">
<xsl:element name="strong">
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'stw-license'" /></xsl:call-template>
<xsl:text>: </xsl:text>
</xsl:element>
<xsl:copy-of select="/buildinfo/document/set/info[@id=$id]/license" />
<xsl:element name="br"></xsl:element>
</xsl:if>
<!-- Author -->
<xsl:if test="/buildinfo/document/set/info[@id=$id]/author != ''">
<xsl:element name="strong">
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'stw-author'" /></xsl:call-template>
<xsl:text>: </xsl:text>
</xsl:element>
<xsl:copy-of select="/buildinfo/document/set/info[@id=$id]/author" />
<xsl:element name="br"></xsl:element>
</xsl:if>
<!-- Year -->
<xsl:if test="/buildinfo/document/set/info[@id=$id]/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:copy-of select="/buildinfo/document/set/info[@id=$id]/year" />
<xsl:element name="br"></xsl:element>
</xsl:if>
<!-- SMALLER TEXT -->
<!-- Source -->
<xsl:if test="/buildinfo/document/set/info[@id=$id]/source != ''">
<xsl:element name="span">
<xsl:attribute name="style">font-size:0.8em</xsl:attribute>
<xsl:element name="abbr"> <!-- mouseover info text -->
<xsl:attribute name="title">
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'stw-source-tooltip'" /></xsl:call-template>
</xsl:attribute>
<xsl:element name="strong"> <!-- Field name -->
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'stw-source'" /></xsl:call-template>
</xsl:element> <!-- /strong -->
</xsl:element> <!-- /abbr -->
<xsl:text>: </xsl:text>
<xsl:element name="br"></xsl:element>
<xsl:copy-of select="/buildinfo/document/set/info[@id=$id]/source" /> <!-- Dynamic value of the field -->
</xsl:element> <!-- /span -->
<xsl:element name="br"></xsl:element>
</xsl:if>
<!-- Printready -->
<xsl:if test="/buildinfo/document/set/info[@id=$id]/printready != ''">
<xsl:element name="span">
<xsl:attribute name="style">font-size:0.8em</xsl:attribute>
<xsl:element name="abbr"> <!-- mouseover info text -->
<xsl:attribute name="title">
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'stw-printready-tooltip'" /></xsl:call-template>
</xsl:attribute>
<xsl:element name="strong"> <!-- Field name -->
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'stw-printready'" /></xsl:call-template>
</xsl:element> <!-- /strong -->
</xsl:element> <!-- /abbr -->
<xsl:text>: </xsl:text>
<xsl:element name="br"></xsl:element>
<xsl:copy-of select="/buildinfo/document/set/info[@id=$id]/printready" /> <!-- Dynamic value of the field -->
</xsl:element> <!-- /span -->
<xsl:element name="br"></xsl:element>
</xsl:if>
</xsl:element>
<!-- / Details -->
</xsl:element>
<!-- / Full Item -->
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>

Loading…
Cancel
Save