2010-01-03 01:31:55 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2003-02-01 10:01:49 +00:00
|
|
|
|
2013-01-17 23:13:14 +00:00
|
|
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
2010-02-11 14:40:11 +00:00
|
|
|
|
2011-01-28 17:37:35 +00:00
|
|
|
<xsl:import href="tools/xsltsl/static-elements.xsl" />
|
2013-01-17 23:13:14 +00:00
|
|
|
<xsl:import href="fsfe.xsl" />
|
2015-03-26 16:48:20 +00:00
|
|
|
|
2013-01-17 23:13:14 +00:00
|
|
|
<xsl:output method="html" encoding="utf-8" indent="yes" doctype-system="about:legacy-compat" />
|
2011-01-12 17:11:44 +00:00
|
|
|
|
2013-01-17 23:13:14 +00:00
|
|
|
<xsl:template match="body">
|
2011-02-27 16:40:04 +00:00
|
|
|
<div id="frontpage">
|
2012-02-12 18:39:33 +00:00
|
|
|
<xsl:apply-templates />
|
2011-02-27 16:40:04 +00:00
|
|
|
</div>
|
|
|
|
</xsl:template>
|
2012-02-12 18:39:33 +00:00
|
|
|
|
2014-01-24 11:17:56 +00:00
|
|
|
<!--xsl:template match="quote-box">
|
2012-02-12 18:39:33 +00:00
|
|
|
<xsl:call-template name="quote-box">
|
|
|
|
<xsl:with-param name="tag" select="@tag" />
|
|
|
|
</xsl:call-template>
|
2014-01-24 11:17:56 +00:00
|
|
|
</xsl:template-->
|
2012-02-12 18:39:33 +00:00
|
|
|
|
|
|
|
<xsl:template match="label-ourwork2011">
|
|
|
|
<xsl:call-template name="gettext">
|
2012-10-08 20:38:15 +00:00
|
|
|
<xsl:with-param name="id" select="'support'" />
|
2012-02-12 18:39:33 +00:00
|
|
|
</xsl:call-template>
|
|
|
|
</xsl:template>
|
|
|
|
|
2011-01-24 11:28:13 +00:00
|
|
|
<!--display dynamic list of news items-->
|
2010-12-17 15:50:23 +00:00
|
|
|
<xsl:template match="all-news">
|
|
|
|
<xsl:call-template name="fetch-news">
|
2011-02-27 16:31:02 +00:00
|
|
|
<xsl:with-param name="tag">front-page</xsl:with-param>
|
|
|
|
<xsl:with-param name="nb-items" select="5" />
|
2014-01-23 18:02:34 +00:00
|
|
|
<xsl:with-param name="show-date" select="'yes'" />
|
|
|
|
<!--TODO enable a "Read More" link with class "learn-more" at the end of newsteaser-->
|
2010-12-17 15:50:23 +00:00
|
|
|
</xsl:call-template>
|
2011-01-24 11:28:13 +00:00
|
|
|
|
2010-12-17 15:50:23 +00:00
|
|
|
</xsl:template>
|
|
|
|
|
2011-01-24 11:28:13 +00:00
|
|
|
<!--display dynamic list of newsletters items-->
|
2010-12-17 15:50:23 +00:00
|
|
|
<xsl:template match="all-newsletters">
|
2011-01-07 17:14:10 +00:00
|
|
|
<xsl:call-template name="fetch-newsletters">
|
2014-01-23 18:02:34 +00:00
|
|
|
<xsl:with-param name="nb-items" select="0" />
|
2011-01-07 17:14:10 +00:00
|
|
|
</xsl:call-template>
|
2014-01-23 18:02:34 +00:00
|
|
|
|
2014-01-23 18:24:43 +00:00
|
|
|
<!--xsl:element name="p">
|
2014-01-23 18:02:34 +00:00
|
|
|
<xsl:element name="a">
|
|
|
|
<xsl:attribute name="href">/news/news.html</xsl:attribute>
|
|
|
|
<xsl:attribute name="class">learn-more</xsl:attribute>
|
|
|
|
<xsl:call-template name="more-news" /><xsl:text></xsl:text>
|
|
|
|
</xsl:element>
|
2014-01-23 18:24:43 +00:00
|
|
|
</xsl:element-->
|
2010-12-17 15:50:23 +00:00
|
|
|
</xsl:template>
|
|
|
|
|
2011-01-24 11:28:13 +00:00
|
|
|
<!--display dynamic list of event items-->
|
2010-12-17 15:50:23 +00:00
|
|
|
<xsl:template match="all-events">
|
2010-12-21 14:32:59 +00:00
|
|
|
<!-- Current events -->
|
2010-12-17 15:50:23 +00:00
|
|
|
<xsl:call-template name="fetch-events">
|
2011-02-27 16:31:02 +00:00
|
|
|
<xsl:with-param name="wanted-time" select="'present'" />
|
|
|
|
<xsl:with-param name="tag">front-page</xsl:with-param>
|
|
|
|
<xsl:with-param name="display-details" select="'yes'" />
|
2010-12-21 14:32:59 +00:00
|
|
|
</xsl:call-template>
|
|
|
|
|
|
|
|
<!-- Future events -->
|
|
|
|
<xsl:call-template name="fetch-events">
|
2011-02-27 16:31:02 +00:00
|
|
|
<xsl:with-param name="wanted-time" select="'future'" />
|
|
|
|
<xsl:with-param name="tag">front-page</xsl:with-param>
|
|
|
|
<xsl:with-param name="display-details" select="'yes'" />
|
2014-01-24 10:48:32 +00:00
|
|
|
<xsl:with-param name="nb-items" select="3" />
|
|
|
|
<!--FIXME ↑ why is it showing one more?-->
|
2010-12-17 15:50:23 +00:00
|
|
|
</xsl:call-template>
|
|
|
|
|
2011-02-24 14:50:49 +00:00
|
|
|
<xsl:element name="p">
|
|
|
|
<xsl:element name="a">
|
|
|
|
<xsl:attribute name="href">/events/events.html</xsl:attribute>
|
2014-01-23 18:02:34 +00:00
|
|
|
<xsl:attribute name="class">learn-more</xsl:attribute>
|
|
|
|
<xsl:call-template name="more-events" /><xsl:text></xsl:text>
|
2011-02-24 14:50:49 +00:00
|
|
|
</xsl:element>
|
|
|
|
</xsl:element>
|
2003-02-01 10:01:49 +00:00
|
|
|
</xsl:template>
|
2011-01-24 11:28:13 +00:00
|
|
|
|
2011-02-14 08:38:55 +00:00
|
|
|
<!-- display campaign box 3 -->
|
|
|
|
|
|
|
|
<xsl:template match="campaign-box-3">
|
2011-02-14 08:49:02 +00:00
|
|
|
<xsl:element name="a">
|
2012-02-08 19:07:23 +00:00
|
|
|
<xsl:attribute name="href">/campaigns/ilovefs/ilovefs<xsl:value-of select="/buildinfo/@language" />.html</xsl:attribute>
|
2011-02-14 08:54:09 +00:00
|
|
|
|
2011-02-14 09:48:05 +00:00
|
|
|
<xsl:variable name="lang" select="/buildinfo/@language" />
|
|
|
|
|
2011-02-14 08:49:02 +00:00
|
|
|
<xsl:variable name="img-path"
|
2011-02-14 09:48:05 +00:00
|
|
|
select="concat( '/campaigns/valentine/valentine-358x60-', substring($lang, 2, 2) , '.png' )" />
|
2011-02-14 08:49:02 +00:00
|
|
|
|
|
|
|
<xsl:element name="img">
|
|
|
|
<xsl:attribute name="src">
|
|
|
|
<xsl:value-of select="$img-path" />
|
|
|
|
</xsl:attribute>
|
|
|
|
<!-- And on error (if previous file does not exist), we load our default image -->
|
2014-07-07 09:52:58 +00:00
|
|
|
<!-- xsl:attribute name="onerror">
|
2011-02-14 08:49:02 +00:00
|
|
|
<xsl:text>this.src='/campaigns/valentine/valentine-358x60-en.png';</xsl:text>
|
2014-07-07 09:52:58 +00:00
|
|
|
</xsl:attribute -->
|
2011-02-14 08:49:02 +00:00
|
|
|
<xsl:attribute name="alt"
|
|
|
|
value="No picture" />
|
|
|
|
</xsl:element>
|
2011-02-14 08:38:55 +00:00
|
|
|
</xsl:element>
|
|
|
|
</xsl:template>
|
2014-01-24 10:37:10 +00:00
|
|
|
|
|
|
|
<xsl:template match="campaigns">
|
|
|
|
<div id="campaigns-boxes" class="cycle-slideshow" data-cycle-pause-on-hover="true" data-cycle-speed="500" data-cycle-timeout="9000" data-cycle-slides="a" data-cycle-fx="scrollHorz" data-cycle-swipe="true">
|
2014-07-07 09:52:58 +00:00
|
|
|
<div class="cycle-pager"/>
|
|
|
|
|
2014-09-15 11:23:33 +00:00
|
|
|
<xsl:for-each select="/buildinfo/textsetbackup/campaigns/campaign[@id='zacchiroli' or @id='becomefellow']">
|
2014-07-07 09:52:58 +00:00
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="count(/buildinfo/textset/campaigns/campaign[@id = current()/@id]) > 0">
|
|
|
|
<xsl:apply-templates select="/buildinfo/textset/campaigns/campaign[@id = current()/@id]" mode="slideshow" />
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
|
|
|
<xsl:apply-templates select="." mode="slideshow" />
|
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
</xsl:for-each>
|
|
|
|
|
2014-01-24 10:37:10 +00:00
|
|
|
</div>
|
|
|
|
</xsl:template>
|
2011-02-14 08:38:55 +00:00
|
|
|
|
2014-07-07 09:52:58 +00:00
|
|
|
<xsl:template match="campaign" mode="slideshow">
|
|
|
|
<a href="{link}" class="campaign-box" id="{@id}">
|
|
|
|
<xsl:if test=" photo != '' ">
|
|
|
|
<img src="{photo}" alt="" />
|
|
|
|
</xsl:if>
|
|
|
|
<p class="text">
|
|
|
|
<xsl:value-of select=" text " />
|
|
|
|
</p>
|
|
|
|
<span class="author">
|
|
|
|
<xsl:value-of select=" author " />
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</xsl:template>
|
|
|
|
|
2012-02-14 01:02:59 +00:00
|
|
|
<!-- display campaign box 4 -->
|
|
|
|
<xsl:template match="campaign-box4">
|
2014-01-23 18:02:34 +00:00
|
|
|
<!--div id="campaign-box-4"-->
|
2012-02-15 23:00:00 +00:00
|
|
|
|
2012-02-15 23:34:59 +00:00
|
|
|
<!--
|
|
|
|
Here are two codes snippets that will provide for a graphical and a text banner.
|
|
|
|
/!\ comment out one of the two, you probably only want one banner on the front page.
|
|
|
|
-->
|
2012-02-15 23:00:00 +00:00
|
|
|
|
|
|
|
<!-- graphical banner -->
|
|
|
|
<!--<a href="/campaigns/ilovefs/ilovefs.html">
|
2012-02-14 01:02:59 +00:00
|
|
|
<img src="/graphics/valentine.png" />
|
2012-02-15 23:00:00 +00:00
|
|
|
</a>-->
|
|
|
|
|
|
|
|
<!--
|
|
|
|
Text banner
|
|
|
|
The ids used here are needed to fetch the correct texts in /tools/texts-content.**.xml
|
2012-02-15 23:34:59 +00:00
|
|
|
/!\ the text with given IDs *must* exist there!
|
2012-02-15 23:00:00 +00:00
|
|
|
-->
|
2013-07-16 14:34:28 +00:00
|
|
|
<!--div class="banner-border">
|
2012-02-15 23:00:00 +00:00
|
|
|
<p>
|
2013-04-11 14:04:19 +00:00
|
|
|
<a href="http://www.defectivebydesign.org/no-drm-in-html5">
|
2012-02-15 23:00:00 +00:00
|
|
|
<xsl:call-template name="gettext">
|
2013-04-11 14:04:19 +00:00
|
|
|
<xsl:with-param name="id" select="'no-drm-in-html5'" />
|
2012-02-15 23:00:00 +00:00
|
|
|
</xsl:call-template>
|
|
|
|
</a>
|
|
|
|
</p>
|
2013-07-16 14:34:28 +00:00
|
|
|
</div -->
|
2012-02-15 23:00:00 +00:00
|
|
|
|
2014-01-23 18:02:34 +00:00
|
|
|
<!--/div-->
|
2011-11-12 12:26:25 +00:00
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
2011-01-24 11:28:13 +00:00
|
|
|
<!--display labels-->
|
|
|
|
|
|
|
|
<!--translated word "newsletter"-->
|
2011-01-11 15:19:08 +00:00
|
|
|
<xsl:template match="newsletter-label">
|
2011-01-17 15:41:25 +00:00
|
|
|
<xsl:call-template name="gettext">
|
|
|
|
<xsl:with-param name="id" select="'newsletter'" />
|
|
|
|
</xsl:call-template>
|
2011-01-11 15:19:08 +00:00
|
|
|
</xsl:template>
|
|
|
|
|
2011-01-24 11:28:13 +00:00
|
|
|
<!--translated sentence "receive-newsletter"-->
|
2011-01-12 13:30:11 +00:00
|
|
|
<xsl:template match="receive-newsletter">
|
2011-01-17 15:41:25 +00:00
|
|
|
<xsl:call-template name="gettext">
|
|
|
|
<xsl:with-param name="id" select="'receive-newsletter'" />
|
|
|
|
</xsl:call-template>
|
2011-01-12 13:30:11 +00:00
|
|
|
</xsl:template>
|
|
|
|
|
2011-01-24 11:28:13 +00:00
|
|
|
<!--translated word "news"-->
|
2011-01-11 15:19:08 +00:00
|
|
|
<xsl:template match="news-label">
|
2011-01-17 15:41:25 +00:00
|
|
|
<xsl:call-template name="gettext">
|
|
|
|
<xsl:with-param name="id" select="'news'" />
|
|
|
|
</xsl:call-template>
|
2011-01-11 15:19:08 +00:00
|
|
|
</xsl:template>
|
|
|
|
|
2011-01-24 11:28:13 +00:00
|
|
|
<!--translated word "events"-->
|
2011-01-11 17:29:45 +00:00
|
|
|
<xsl:template match="events-label">
|
2011-01-17 15:41:25 +00:00
|
|
|
<xsl:call-template name="gettext">
|
|
|
|
<xsl:with-param name="id" select="'events'" />
|
|
|
|
</xsl:call-template>
|
2011-01-11 17:06:49 +00:00
|
|
|
</xsl:template>
|
|
|
|
|
2011-01-24 11:28:13 +00:00
|
|
|
<!--translated word "more"-->
|
2011-01-11 15:19:08 +00:00
|
|
|
<xsl:template match="more-label">
|
2014-01-23 18:02:34 +00:00
|
|
|
<xsl:call-template name="more-label" /><xsl:text></xsl:text>
|
2011-02-24 14:54:40 +00:00
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template name="more-label">
|
2011-01-17 15:41:25 +00:00
|
|
|
<xsl:call-template name="gettext">
|
|
|
|
<xsl:with-param name="id" select="'more'" />
|
|
|
|
</xsl:call-template>
|
2011-01-11 15:19:08 +00:00
|
|
|
</xsl:template>
|
2011-01-11 16:57:55 +00:00
|
|
|
|
2014-01-23 18:02:34 +00:00
|
|
|
<!--translated word "more news"-->
|
|
|
|
<xsl:template match="more-news">
|
|
|
|
<xsl:call-template name="more-news" /><xsl:text></xsl:text>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template name="more-news">
|
|
|
|
<xsl:call-template name="gettext">
|
|
|
|
<xsl:with-param name="id" select="'morenews'" />
|
|
|
|
</xsl:call-template>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<!--translated word "more events"-->
|
|
|
|
<xsl:template match="more-events">
|
|
|
|
<xsl:call-template name="more-events" /><xsl:text></xsl:text>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template name="more-events">
|
|
|
|
<xsl:call-template name="gettext">
|
|
|
|
<xsl:with-param name="id" select="'moreevents'" />
|
|
|
|
</xsl:call-template>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
2011-01-24 11:28:13 +00:00
|
|
|
<!--translated word "donate"-->
|
2011-01-13 10:33:48 +00:00
|
|
|
<xsl:template match="donate-label">
|
2011-01-17 15:41:25 +00:00
|
|
|
<xsl:call-template name="gettext">
|
|
|
|
<xsl:with-param name="id" select="'donate'" />
|
|
|
|
</xsl:call-template>
|
2011-01-13 10:33:48 +00:00
|
|
|
</xsl:template>
|
|
|
|
|
2011-01-24 11:28:13 +00:00
|
|
|
<!--translated word "join"-->
|
2011-01-13 10:33:48 +00:00
|
|
|
<xsl:template match="join-label">
|
2011-01-17 15:41:25 +00:00
|
|
|
<xsl:call-template name="gettext">
|
|
|
|
<xsl:with-param name="id" select="'join'" />
|
|
|
|
</xsl:call-template>
|
2011-01-13 10:33:48 +00:00
|
|
|
</xsl:template>
|
2012-05-21 05:58:06 +00:00
|
|
|
|
|
|
|
<!--translated word "support"-->
|
|
|
|
<xsl:template match="support-label">
|
|
|
|
<xsl:call-template name="gettext">
|
|
|
|
<xsl:with-param name="id" select="'support'" />
|
|
|
|
</xsl:call-template>
|
|
|
|
</xsl:template>
|
2011-01-13 10:33:48 +00:00
|
|
|
|
2012-08-30 06:16:43 +00:00
|
|
|
<xsl:template match="about-work-label">
|
|
|
|
<xsl:call-template name="gettext">
|
|
|
|
<xsl:with-param name="id" select="'about-work'" />
|
|
|
|
</xsl:call-template>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
2011-01-28 17:37:35 +00:00
|
|
|
<xsl:template match="subscribe-nl">
|
|
|
|
<xsl:call-template name="subscribe-nl" />
|
2011-01-13 14:29:42 +00:00
|
|
|
</xsl:template>
|
|
|
|
|
2010-11-24 17:00:57 +00:00
|
|
|
</xsl:stylesheet>
|