Implemented new design's frontpage

svn path=/branches/design/; revision=17392
This commit is contained in:
ato
2010-10-09 15:25:08 +00:00
parent 2e4fc3be41
commit dd5d29769c
2 changed files with 47 additions and 57 deletions
+11 -23
View File
@@ -5,30 +5,18 @@
<title>FSFE - Free Software Foundation Europe</title>
</head>
<body>
<h1 class="centre">Free Software Foundation Europe</h1>
<div id="campaigns" class="grid-66-33">
<div class="box first">
<img src="samtuke.com/fsfe-mockup/pdf-banner.png" alt="End
Government Advertising of non-Free PDF Readers" />
</div>
<p class="tagline">Free as in Freedom</p>
<p>
Free Software Foundation Europe (FSFE) is a non-profit and in some
countries charitable organisation dedicated to
<a href="documents/freesoftware.html">Free Software</a>. FSFE maintains
that the freedoms to use, study, share and improve software are critical
to ensure equal participation in the information age. We work to create
general understanding and support for software freedom in politics, law
and society-at-large. We also promote the development of technologies,
such as the <a href="/about/basics/gnuproject.html">GNU</a>/Linux operating system, that deliver these freedoms to
all participants in digital society.
</p>
<p>
FSFE's work is made possible by many individual contributions, in
particular to the
<a href="http://fellowship.fsfe.org/">Fellowship of FSFE</a>. One way to
contribute is to
<a href="http://fellowship.fsfe.org/join">join now</a>, and to
encourage others to do likewise.
</p>
<div class="box">
<p>
Donation box comes here.
</p>
</div>
</div>
</body>
<text id="news">Latest news</text>
+36 -34
View File
@@ -125,42 +125,44 @@
<!-- In /html/body node, append dynamic content -->
<xsl:template match="/html/body">
<body>
<!--
<p id="banner">
<a href="http://documentfreedom.org"><img alt="Document Freedom Day" src="http://www.documentfreedom.org/images/2/2c/2010-banner-120x60.png"/></a>
</p>
-->
<xsl:apply-templates />
<div id="news">
<h2><a href="/news/news.html"><xsl:value-of select="/html/text[@id='news']"/></a></h2>
<xsl:for-each select="/html/set/news
[translate (@date, '-', '') &lt;= translate ($today, '-', '')]">
<xsl:sort select="@date" order="descending" />
<xsl:if test="position() &lt; 6">
<xsl:call-template name="news" />
</xsl:if>
</xsl:for-each>
<ul class="tools">
<li><a class="more_news" href="/news/news.html"><xsl:value-of select="/html/text[@id='morenews']" /></a></li>
<li><a class="rss feed" href="/news/news.rss">RSS</a></li>
</ul>
</div> <!-- /#news -->
<div id="events">
<h2><a href="/events/events.html"><xsl:value-of select="/html/text[@id='events']"/></a></h2>
<xsl:for-each select="/html/set/event
[translate (@end, '-', '') &gt;= translate ($today, '-', '')]">
<xsl:sort select="@start" />
<xsl:if test="position() &lt; 6">
<xsl:call-template name="event" />
</xsl:if>
</xsl:for-each>
<ul class="tools">
<li><a class="more_events" href="/events/events.html"><xsl:value-of select="/html/text[@id='moreevents']" /></a></li>
<li><a class="rss feed" href="/events/events.rss">RSS</a></li>
</ul>
</div> <!-- /#events -->
<div class="grid-50-50">
<div class="box first">
<div id="feed" class="section blue-4">
<!--<h2><a href="/news/news.html"><xsl:value-of select="/html/text[@id='news']"/></a></h2>-->
<div>
<a href="#" class="minibutton mousedown"><span>News</span></a>
<a href="#" class="minibutton"><span>Blogs</span></a>
</div>
<div id="all">
<xsl:for-each select="/html/set/news[translate (@date, '-', '') &lt;= translate ($today, '-', '')]">
<xsl:sort select="@date" order="descending" />
<xsl:if test="position() &lt; 6">
<xsl:call-template name="news" />
</xsl:if>
</xsl:for-each>
</div>
</div>
</div>
<div class="box">
<div id="events" class="section blue-3">
<h3><a href="/events/events.html"><xsl:value-of select="/html/text[@id='events']"/></a></h3>
<xsl:for-each select="/html/set/event
[translate (@end, '-', '') &gt;= translate ($today, '-', '')]">
<xsl:sort select="@start" />
<xsl:if test="position() &lt; 6">
<xsl:call-template name="event" />
</xsl:if>
</xsl:for-each>
</div>
</div>
</div>
</body>
</xsl:template>