Change slide timeout from 9 sec to 6 sec
This commit is contained in:
parent
8e28ed5371
commit
488f936bf6
74
index.xsl
74
index.xsl
|
@ -1,30 +1,30 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
|
||||
|
||||
<xsl:import href="tools/xsltsl/static-elements.xsl" />
|
||||
|
||||
|
||||
<xsl:import href="fsfe.xsl" />
|
||||
<xsl:output method="html" encoding="utf-8" indent="yes" doctype-system="about:legacy-compat" />
|
||||
|
||||
|
||||
<xsl:template match="body">
|
||||
<div id="frontpage">
|
||||
<xsl:apply-templates />
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!--xsl:template match="quote-box">
|
||||
<xsl:call-template name="quote-box">
|
||||
<xsl:with-param name="tag" select="@tag" />
|
||||
</xsl:call-template>
|
||||
</xsl:template-->
|
||||
|
||||
|
||||
<xsl:template match="label-ourwork2011">
|
||||
<xsl:call-template name="gettext">
|
||||
<xsl:with-param name="id" select="'support'" />
|
||||
</xsl:call-template>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!--display dynamic list of news items-->
|
||||
<xsl:template match="all-news">
|
||||
<xsl:call-template name="fetch-news">
|
||||
|
@ -33,9 +33,9 @@
|
|||
<xsl:with-param name="show-date" select="'yes'" />
|
||||
<!--TODO enable a "Read More" link with class "learn-more" at the end of newsteaser-->
|
||||
</xsl:call-template>
|
||||
|
||||
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!--display dynamic list of newsletters items-->
|
||||
<xsl:template match="all-newsletters">
|
||||
<xsl:call-template name="fetch-newsletters">
|
||||
|
@ -50,7 +50,7 @@
|
|||
</xsl:element>
|
||||
</xsl:element-->
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!--display dynamic list of event items-->
|
||||
<xsl:template match="all-events">
|
||||
<!-- Current events -->
|
||||
|
@ -59,7 +59,7 @@
|
|||
<xsl:with-param name="tag">front-page</xsl:with-param>
|
||||
<xsl:with-param name="display-details" select="'yes'" />
|
||||
</xsl:call-template>
|
||||
|
||||
|
||||
<!-- Future events -->
|
||||
<xsl:call-template name="fetch-events">
|
||||
<xsl:with-param name="wanted-time" select="'future'" />
|
||||
|
@ -68,7 +68,7 @@
|
|||
<xsl:with-param name="nb-items" select="3" />
|
||||
<!--FIXME ↑ why is it showing one more?-->
|
||||
</xsl:call-template>
|
||||
|
||||
|
||||
<xsl:element name="p">
|
||||
<xsl:element name="a">
|
||||
<xsl:attribute name="href">/events/events.html</xsl:attribute>
|
||||
|
@ -77,18 +77,18 @@
|
|||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!-- display campaign box 3 -->
|
||||
|
||||
|
||||
<xsl:template match="campaign-box-3">
|
||||
<xsl:element name="a">
|
||||
<xsl:attribute name="href">/campaigns/ilovefs/ilovefs<xsl:value-of select="/buildinfo/@language" />.html</xsl:attribute>
|
||||
|
||||
|
||||
<xsl:variable name="lang" select="/buildinfo/@language" />
|
||||
|
||||
|
||||
<xsl:variable name="img-path"
|
||||
select="concat( '/campaigns/valentine/valentine-358x60-', substring($lang, 2, 2) , '.png' )" />
|
||||
|
||||
|
||||
<xsl:element name="img">
|
||||
<xsl:attribute name="src">
|
||||
<xsl:value-of select="$img-path" />
|
||||
|
@ -110,19 +110,19 @@
|
|||
data-cycle-log="false"
|
||||
data-cycle-pause-on-hover="true"
|
||||
data-cycle-speed="500"
|
||||
data-cycle-timeout="9000"
|
||||
data-cycle-timeout="6000"
|
||||
data-cycle-slides="a"
|
||||
data-cycle-fx="scrollHorz"
|
||||
data-cycle-swipe="true">
|
||||
<div class="cycle-pager"/>
|
||||
|
||||
|
||||
<xsl:for-each select="/buildinfo/document/set/campaign[@running = 'yes']">
|
||||
<xsl:apply-templates select="." mode="slideshow" />
|
||||
</xsl:for-each>
|
||||
|
||||
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template match="campaign" mode="slideshow">
|
||||
<a href="{link}" class="campaign-box">
|
||||
<xsl:attribute name="id"><xsl:value-of select="@id" /></xsl:attribute>
|
||||
|
@ -142,39 +142,39 @@
|
|||
<xsl:if test=" text2 != '' ">
|
||||
<p class="text2"><xsl:value-of select="text2" /></p>
|
||||
</xsl:if>
|
||||
|
||||
|
||||
<!-- Author (if existing) -->
|
||||
<xsl:if test="author != ''">
|
||||
<span class="author"><xsl:value-of select="author" /></span>
|
||||
</xsl:if>
|
||||
|
||||
|
||||
<!-- Copyright notice (if existing) -->
|
||||
<xsl:if test="copyright != ''">
|
||||
<span class="copyright"><xsl:value-of select="copyright" /></span>
|
||||
</xsl:if>
|
||||
</a>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!-- display campaign box 4 -->
|
||||
<xsl:template match="campaign-box4">
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!--display labels-->
|
||||
|
||||
|
||||
<!--translated word "newsletter"-->
|
||||
<xsl:template match="newsletter-label">
|
||||
<xsl:call-template name="gettext">
|
||||
<xsl:with-param name="id" select="'newsletter'" />
|
||||
</xsl:call-template>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!--translated sentence "receive-newsletter"-->
|
||||
<xsl:template match="receive-newsletter">
|
||||
<xsl:call-template name="gettext">
|
||||
<xsl:with-param name="id" select="'receive-newsletter'" />
|
||||
</xsl:call-template>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!--translated word "news"-->
|
||||
<xsl:template match="news-label">
|
||||
<xsl:call-template name="gettext">
|
||||
|
@ -188,41 +188,41 @@
|
|||
<xsl:with-param name="id" select="'events'" />
|
||||
</xsl:call-template>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!--translated word "more"-->
|
||||
<xsl:template match="more-label">
|
||||
<xsl:call-template name="more-label" /><xsl:text></xsl:text>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template name="more-label">
|
||||
<xsl:call-template name="gettext">
|
||||
<xsl:with-param name="id" select="'more'" />
|
||||
</xsl:call-template>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!--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>
|
||||
|
||||
|
||||
|
||||
|
||||
<!--translated word "donate"-->
|
||||
<xsl:template match="donate-label">
|
||||
<xsl:call-template name="gettext">
|
||||
|
@ -243,7 +243,7 @@
|
|||
<xsl:with-param name="id" select="'support'" />
|
||||
</xsl:call-template>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template match="about-work-label">
|
||||
<xsl:call-template name="gettext">
|
||||
<xsl:with-param name="id" select="'about-work'" />
|
||||
|
@ -254,5 +254,5 @@
|
|||
<xsl:template match="subscribe-nl">
|
||||
<xsl:call-template name="subscribe-nl" />
|
||||
</xsl:template>
|
||||
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
Loading…
Reference in New Issue