Estonian country page

svn path=/trunk/; revision=26052
This commit is contained in:
Heiki Lõhmus 2013-07-29 12:41:44 +00:00
parent 5c0faa937b
commit 9a639bd626
3 changed files with 292 additions and 0 deletions

120
ee/ee.en.xhtml Normal file
View File

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
<html>
<head>
<title>About Free Software Foundation Europe - Estonia</title>
</head>
<body>
<!-- <p id="category"><a href="/about/people/people.html">People</a></p> -->
<h1>Estonia</h1>
<!--Change the content of these campaign boxes to suit your country,
or disable them completely.
<div id="campaigns-boxes">
<div id="campaign-box-1">
<a href="/campaigns/pdfreaders/">
<h3>Help us End Government Advertising of Non-Free PDF Readers</h3>
</a>
</div>
<div id="campaign-box-2">
<a href="donate/donate.html" class="donate-box">
<p>Donate</p>
</a>
<a href="http://fellowship.fsfe.org/join" class="fellowship-box">
<p>Join</p>
</a>
</div>
<div id="campaign-box-3">
</div>
</div>
-->
<div id="news" class="section">
<h2>
<a class="rss-feed" href="/news/news.rss"><img src="/graphics/rss.png" alt="News RSS" title="news RSS feed" /></a>
<a class="ical" href="http://identi.ca/fsfe"><img src="/graphics/identica.png" alt="identica" title="follow FSFE on identi.ca"/></a>
<a href="/news/news.html"><news-label /></a>
</h2>
<country-news />
</div><!--end #news-->
<div id="events" class="section">
<h2>
<a class="rss-feed" href="/events/events.rss"><img src="/graphics/rss.png" alt="Events RSS" title="events RSS feed" /></a>
<a class="ical" href="webcal://fsfe.org/events/events.ics"><img src="/graphics/ical.png" alt="iCal" title="FSFE events as iCal feed" /></a>
<a href="/events/events.html"><events-label /></a>
</h2>
<country-events />
</div><!--end #events-->
<div class="clear">
<!-- enable or disable this div to show or hide an identica feed. change 'user'
parameter to filter the 'dents' that will be shown -->
<!--<div id="identica" class="section">
<h2>
<a class="ical" href="http://identi.ca/fsfede"><img src="/graphics/identica.png" alt="identica" title="Follow FSFE German Team on identi.ca"/></a>
<span><microblog-label /></span>
</h2>
<div class="entry">
<script type="text/javascript" src="http://identi.ca/js/identica-badge.js">
{
"user":"fsfede",
"server":"identi.ca",
"border":"0px",
"background":"none",
"width":"360px",
"height":"200px"
}
</script>
</div>
</div>-->
</div>
<div id="contact" class="section">
<h2><span><contact-label /></span></h2>
<div class="entry">
</div>
</div><!--end #contact-->
<div id="team" class="section grid-100">
<h2><span>Estonian Team</span></h2>
<country-team-list />
</div><!--end #team-->
</body>
</html>
<!--
Local Variables: ***
mode: xml ***
End: ***
-->

22
ee/ee.sources Normal file
View File

@ -0,0 +1,22 @@
about/germany/germany:global
about/people/people:global
about/people/functions:global
about/people/function-:global
about/people/countries:global
about/people/volunteers:global
activities/*/project:global
campaigns/*/project:global
news/*/news:global
news/generated_xml/:global
news/nl/nl:global
de/news/*/news:de
es/news/*/news:es
fr/news/*/news:fr
it/news/*/news:it
se/news/*/news:se
events/*/event:global
de/events/*/event:de
es/events/*/event:es
fr/events/*/event:fr
it/events/*/event:it
se/events/*/event:se

150
ee/ee.xsl Normal file
View File

@ -0,0 +1,150 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:dt="http://xsltsl.org/date-time">
<xsl:import href="../tools/xsltsl/tagging.xsl" />
<xsl:import href="../tools/xsltsl/countries.xsl" />
<xsl:import href="../tools/xsltsl/translations.xsl" />
<xsl:import href="../fsfe.xsl" />
<xsl:output method="html" encoding="utf-8" indent="yes" doctype-system="about:legacy-compat" />
<!-- To localise this page to a new country, copy this file and change the following:
# <xsl:variable name="country-code">de</xsl:variable> -> change xx to your country code
For more information, take a look at the documentation at
http://fsfe.org/contribute/web/tagging.html
-->
<xsl:variable name="country-code">ee</xsl:variable>
<!--display labels-->
<!--translated word "news"-->
<xsl:template match="news-label">
<xsl:call-template name="gettext">
<xsl:with-param name="id" select="'news'" />
</xsl:call-template>
</xsl:template>
<!--translated word "events"-->
<xsl:template match="events-label">
<xsl:call-template name="gettext">
<xsl:with-param name="id" select="'events'" />
</xsl:call-template>
</xsl:template>
<!--translated word "microblog"-->
<xsl:template match="microblog-label">
<xsl:call-template name="gettext">
<xsl:with-param name="id" select="'microblog'" />
</xsl:call-template>
</xsl:template>
<!--translated word "contact"-->
<xsl:template match="contact-label">
<xsl:call-template name="gettext">
<xsl:with-param name="id" select="'contact'" />
</xsl:call-template>
</xsl:template>
<!--translated word "team"-->
<xsl:template match="team-label">
<xsl:call-template name="gettext">
<xsl:with-param name="id" select="'team'" />
</xsl:call-template>
</xsl:template>
<!--define contact information-->
<xsl:template match="contact-details">
<xsl:for-each select="/buildinfo/document/set/contact">
<xsl:if test="@id = 'EE'">
<!-- Email -->
<xsl:if test="email != ''">
<xsl:element name="p">
<xsl:value-of select="/buildinfo/textset/text[@id='email']" />
<xsl:text> </xsl:text>
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:text>mailto:</xsl:text>
<xsl:value-of select="email" />
</xsl:attribute>
<xsl:value-of select="email" />
</xsl:element>
</xsl:element>
</xsl:if>
<!-- Address -->
<xsl:if test="address != ''">
<xsl:apply-templates select="address"/>
</xsl:if>
<!-- Phone -->
<xsl:if test="phone != ''">
<xsl:element name="p">
<xsl:value-of select="/buildinfo/textset/text[@id='phone']" />
<xsl:text> </xsl:text>
<xsl:value-of select="phone" />
</xsl:element>
</xsl:if>
<!-- Fax -->
<xsl:if test="fax != ''">
<xsl:element name="p">
<xsl:value-of select="/buildinfo/textset/text[@id='fax']" />
<xsl:text> </xsl:text>
<xsl:value-of select="fax" />
</xsl:element>
</xsl:if>
</xsl:if>
</xsl:for-each>
</xsl:template>
<!--define dynamic list of country news items-->
<xsl:template match="country-news">
<xsl:call-template name="fetch-news">
<xsl:with-param name="tag">
<xsl:value-of select="$country-code" />
</xsl:with-param>
<xsl:with-param name="nb-items" select="3" />
</xsl:call-template>
</xsl:template>
<!--define dynamic list of country event items-->
<xsl:template match="country-events">
<!-- Current events -->
<xsl:call-template name="fetch-events">
<xsl:with-param name="wanted-time" select="'present'" />
<xsl:with-param name="tag">
<xsl:value-of select="$country-code" />
</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="nb-items" select="3" />
<xsl:with-param name="tag">
<xsl:value-of select="$country-code" />
</xsl:with-param>
<xsl:with-param name="display-details" select="'yes'" />
</xsl:call-template>
</xsl:template>
<!--define dynamic list of country team members-->
<xsl:template match="country-team-list">
<xsl:call-template name="country-people-list">
<xsl:with-param name="team">
<xsl:value-of select="$country-code" />
</xsl:with-param>
</xsl:call-template>
</xsl:template>
</xsl:stylesheet>