Browse Source

experimental fellowship events page

svn path=/trunk/; revision=26710
tags/stw2018
paul 6 years ago
parent
commit
4348427f80
2 changed files with 72 additions and 0 deletions
  1. 18
    0
      fellowship/events.en.xhtml
  2. 54
    0
      fellowship/events.xsl

+ 18
- 0
fellowship/events.en.xhtml View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8" ?>

<html>
<head>
<title>Fellowship of Free Software Foundation Europe</title>
</head>

<body>
<h1>Fellowship Events</h1>

<div id="events">
<all-events />
</div>
</body>

<timestamp>$Date$ $Author$</timestamp>
</html>


+ 54
- 0
fellowship/events.xsl View File

@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="utf-8"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="default.xsl" />
<xsl:import href="xsl/quotes.xsl" />
<xsl:import href="../tools/xsltsl/tagging.xsl" />
<xsl:import href="../tools/xsltsl/translations.xsl" />

<xsl:output method="html" encoding="utf-8" indent="yes" doctype-system="about:legacy-compat" />

<xsl:template match="body">
<!-- xsl:attribute name="id">fellowship</xsl:attribute -->
<div id="fellowship">
<xsl:apply-templates />
</div>
</xsl:template>

<!--display dynamic list of event items-->
<xsl:template match="all-events">
<!-- Current events -->
<xsl:call-template name="fetch-events">
<xsl:with-param name="wanted-time" select="'present'" />
<xsl:with-param name="tag">fellowship</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'" />
<xsl:with-param name="tag">fellowship</xsl:with-param>
<xsl:with-param name="display-details" select="'yes'" />
<xsl:with-param name="nb-items" select="4" />
</xsl:call-template>
<xsl:element name="p">
<xsl:element name="a">
<xsl:attribute name="href">/events/events.html</xsl:attribute>
<xsl:call-template name="more-label" /><xsl:text>…</xsl:text>
</xsl:element>
</xsl:element>
</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>

</xsl:stylesheet>

Loading…
Cancel
Save