testing country page scheme

svn path=/branches/test/; revision=28521
This commit is contained in:
guido 2014-05-22 21:21:02 +00:00
parent be199ae6e6
commit 6bc97f4dda
3 changed files with 298 additions and 89 deletions

View File

@ -1,99 +1,135 @@
<?xml version="1.0" encoding="UTF-8" ?>
<?xml version="1.0" encoding="iso-8859-1" ?>
<html>
<head>
<title>Free Software in the Education - FSFE</title>
<title>FSFE UK - Free Software Foundation Europe</title>
<meta name="description" content="Fighting for freedom in education: non profit organization working to create general understanding and support for software freedom" />
<meta name="keywords" content="free software fsfe open source foss floss oss education" />
</head>
<body>
<p id="category"><a href="/work.html">Our work</a></p>
<h1>Free Software in Education</h1>
<p id="introduction">
We actively promote the use of Free Software in schools and
universities as it encourages schooling of understanding over
product training and upholds the scientific principle.
</p>
<p>
We have set up an <a
href="/activities/education/eduteam.en.html">Education Task
Force</a> to focus on these efforts. It acts as a hub and works on
monitoring the European situation. We participate in Free Software
events and assist other initiatives in making the change possible.
</p>
<p>
The team currently develops a guide how to successfully deploy
Free Software in schools and universities. Amongst other
arguments here are four of the key benefits:
</p>
<ul>
<li>
<strong>Sharing:</strong> Using free software allows schools to
teach children to share and cooperate.
</li>
<li>
<strong>Learning to program:</strong> The possibility/freedom to
tinker motivates children to learn more.
</li>
<!-- <p id="category"><a href="/about/people/people.html">People</a></p> -->
<h1>Edu-Team</h1>
<li>
<strong>Easy to administer:</strong> Free Software is stable,
secure and reliable. It offers unrestricted access to the source
code, thus allowing to modify or adapt it to the schools'
needs.
</li>
<!--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>
<li>
<strong>Licenses:</strong> With Free Software, teachers can give
a copy to each student. There is no risk to mislead any child
to use an illegal copy.
</li>
</ul>
<h2 id="subpages">Navigation</h2>
<ul>
<li>
<h3><a href="/freesoftware/education/argumentation.en.html">Detailed argumentation</a></h3>
<p>
More reasons for schools to <a
href="/freesoftware/education/argumentation.html">use Free
Software</a> and to <a
href="/activities/education/argumentation.html">give precedence to
free software at schools</a>. <!--Paragraph to add when these section will be completed <a
href="http://fsfe.org/activities/education/leaflet-edu-reasonsforstudents.html">
Reasons for students to adopt Free Software</a> and <a
href="http://fsfe.org/activities/education/leaflet-edu-reasonsforparents.html">for
parents to prefer Free Software for the education of their children</a>.-->
</p>
</li>
<li>
<h3><a href="http://lists.gnu.org/mailman/listinfo/edu-eu">Education mailing list</a></h3>
<p>
Join the discussion about Free Software in education.
</p>
</li>
<li>
<h3><a href="/activities/education/eduteam.html">Who we are</a></h3>
<p>
Get involved in the Educational Task Force.
</p>
</li>
<li>
<h3><a href="http://www.gnu.org/education">GNU's education page</a></h3>
<p>
The <a href="/about/basics/gnuproject.html">GNU project</a>
also maintains a info page on Free Software in education.
</p>
</li>
</ul>
<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>
<!-- this element fetches all news items which have the relevant country tag -->
<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>
<!-- this element fetches all event items which have the relevant country tag -->
<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/fsfe"><img src="/graphics/identica.png" alt="identica" title="follow FSFE on identi.ca"/></a>
<span><microblog-label /></span>
</h2>
<div class="entry">
<script type="text/javascript" src="/scripts/identica-badge.js">
{
"user":"fsfeuk",
"server":"identi.ca",
"border":"0px",
"background":"none",
"width":"360px",
"height":"200px"
}
</script>
</div>
</div><!--end #identica-->
<div id="contact" class="section">
<h2><span><contact-label /></span></h2>
<div class="entry">
<!-- this element fetches contact details from /contact/local.en.xml - edit
this file to change the contact details that will be listed -->
<p>Fellowship mailing-list: <a href="mailto:fellowship-uk@lists.fsfe.org">fellowship-uk@lists.fsfe.org</a>.</p>
<contact-details />
</div>
</div><!--end #contact-->
</div><!-- end .clear -->
<div id="team" class="section grid-100">
<h2><span>British Team</span></h2>
<!-- this element fetches all team members which are listed as being a member
of this country's team. Edit /abount/people/people.en.xml to change which
members will be listed here -->
<country-team-list />
<!--<div class="image center">
<img src="/graphics/image.png" alt="team members" />
<p>
(type caption here)
</p>
</div>-->
</div><!--end #team-->
</body>
<timestamp>$Date$ $Author$</timestamp>

View File

@ -0,0 +1,24 @@
about/germany/germany:global
about/people/people:global
about/people/employee:global
about/people/functions:global
about/people/function-:global
about/people/countries:global
about/people/volunteers:global
activities/*/project:global
campaigns/*/project:global
contact/local: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

View File

@ -0,0 +1,149 @@
<?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">activities/education</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 = 'GB'">
<!-- Email -->
<xsl:if test="email != ''">
<xsl:element name="p">
Team mailing-list: <xsl:value-of select="/buildinfo/textset/text[@id='email']" />
<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>