Commit 8eda8cd8 authored by Mattia Rizzolo's avatar Mattia Rizzolo

Adapt the templates to ptlink's parser HTML::Template

also move them around out of the venus directory
Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mapreri@ubuntu.com>
parent 524add76
<?xml version="1.0"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title><TMPL_VAR name></title>
<link><TMPL_VAR link ESCAPE="HTML"></link>
<language>en</language>
<description><TMPL_VAR name ESCAPE="HTML"> - <TMPL_VAR link ESCAPE="HTML"></description>
<TMPL_IF pubsubhubbub_hub>
<atom:link rel="hub" href="<TMPL_VAR pubsubhubbub_hub ESCAPE="HTML">"/>
</TMPL_IF>
<TMPL_IF fullurl>
<atom:link rel="self" href="<TMPL_VAR fullurl ESCAPE="HTML">" type="application/rss+xml"/>
</TMPL_IF>
<TMPL_LOOP Items>
<item>
<title><TMPL_VAR channel_name ESCAPE="HTML"><TMPL_IF title>: <TMPL_VAR title_plain ESCAPE="HTML"></TMPL_IF></title>
<guid isPermaLink="<TMPL_VAR guid_isPermaLink>"><TMPL_VAR id ESCAPE="HTML"></guid>
<link><TMPL_VAR link ESCAPE="HTML"></link>
<TMPL_IF content>
<description><TMPL_VAR content ESCAPE="HTML"></description>
</TMPL_IF>
<pubDate><TMPL_VAR date_822></pubDate>
<TMPL_IF author_email>
<TMPL_IF author_name>
<author><TMPL_VAR author_email> (<TMPL_VAR author_name>)</author>
<TMPL_ELSE>
<author><TMPL_VAR author_email></author>
</TMPL_IF>
</TMPL_IF>
<TMPL_IF enclosure_href>
<enclosure url="<TMPL_VAR enclosure_href ESCAPE="HTML">" length="<TMPL_VAR enclosure_length>" type="<TMPL_VAR enclosure_type>"/>
</TMPL_IF>
</item>
</TMPL_LOOP>
</channel>
</rss>
......@@ -33,7 +33,7 @@
<a class="active" href="https://planet.ubuntu-it.org">planet</a>
</div>
<span class="suffix">planet</span><span class="title">ubuntu-it</span>
<span class="description">comunità italiana</span>
<span class="description">comunit&agrave; italiana</span>
</div>
<div class="buttons">
<div id="accessibility" title="Maggiore focus ai contenuti" onclick='accessibility_toggle();'></div>
......@@ -44,10 +44,7 @@
<div class="container">
<div class="container-inside">
<ul class="links secondary-links">
<li><a href="rss20.xml">RSS 2.0</a></li>
<li><a href="atom.xml">ATOM</a></li>
<li><a href="opml.xml">OPML</a></li>
<li><a href="foafroll.xml">FOAF</a></li>
<li><a href="rss20.xml">Feed RSS 2.0</a></li>
</ul>
</div>
</div>
......@@ -61,12 +58,12 @@
<div class="container">
<h1>Planet ubuntu-it</h1>
<p>
Planet Ubuntu-it è una finestra nel mondo
Planet Ubuntu-it &egrave; una finestra nel mondo
delle persone che ruotano attorno alla
comunità italiana di Ubuntu. Le opinioni
comunit&agrave; italiana di Ubuntu. Le opinioni
qui espresse sono quelle dei rispettivi
autori e non rappresentano la comunità
italiana di Ubuntu né tanto meno quella
autori e non rappresentano la comunit&agrave;
italiana di Ubuntu n&eacute; tanto meno quella
internazionale. Se vi trovate in disaccordo
con quanto espresso da un autore, scrivete
direttamente a lui o attraverso questo
......@@ -74,11 +71,8 @@
conforme al Codice di Condotta.
</p>
<p>
Potete seguire questo planet nei seguenti
formati: <a href="rss20.xml">RSS 2.0</a>, <a
href="atom.xml">ATOM</a>, <a
href="opml.xml">OPML</a> e <a
href="foafroll.xml">FOAF</a>.
Potete seguire questo planet con il feed
<a href="rss20.xml">RSS 2.0</a>.
</p>
</div>
<div class="container">
......@@ -114,7 +108,7 @@
</span>
</p>
<p class="copyright">
<a href="http://intertwingly.net/code/venus/">
<a href="https://salsa.debian.org/wouter/ptlink">
<img src="https://planet.ubuntu-it.org/images/planet.png" width="80" height="15" alt="Planet" border="0">
</a><br />
Ubuntu e Canonical sono marchi registrati
......
......@@ -20,9 +20,13 @@
<link><TMPL_VAR link ESCAPE="HTML"></link>
<TMPL_IF content>
<description>
<TMPL_IF channel_face ESCAPE="HTML">
&lt;img src="http://planet.ubuntu-it.org/images/<TMPL_VAR channel_face>" alt="" align="right"&gt;
<TMPL_ELSE ESCAPE="HTML">
HTML::Template->new() : ESCAPE option invalid in a TMPL_IF tag at themes/ubuntuit/rss20.xml.tmpl : line 23. at /usr/share/perl5/HTML/Template.pm line 2161.
<TMPL_IF channel_face>
&lt;img src="http://planet.ubuntu-it.org/images/<TMPL_VAR ESCAPE="HTML" channel_face>" alt="" align="right"&gt;
<TMPL_ELSE>
&lt;img src="http://planet.ubuntu-it.org/images/nobody.png" alt="" align="right"&gt;
</TMPL_IF>
<TMPL_VAR content ESCAPE="HTML">
......
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:rss="http://purl.org/rss/1.0/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:planet="http://planet.intertwingly.net/"
exclude-result-prefixes="atom planet">
<xsl:output indent="yes" method="xml"/>
<xsl:template match="atom:feed">
<rdf:RDF>
<foaf:Group>
<foaf:name><xsl:value-of select="atom:author/atom:name"/></foaf:name>
<foaf:homepage><xsl:value-of select="atom:author/atom:uri"/></foaf:homepage>
<xsl:apply-templates select="planet:source"/>
</foaf:Group>
</rdf:RDF>
</xsl:template>
<xsl:template match="planet:source">
<foaf:member>
<foaf:Agent>
<foaf:name><xsl:value-of select="planet:name"/></foaf:name>
<foaf:weblog>
<foaf:Document rdf:about="{atom:link[@rel='alternate']/@href}">
<dc:title><xsl:value-of select="atom:title"/></dc:title>
<rdfs:seeAlso>
<rss:channel rdf:about="{atom:link[@rel='self']/@href}" />
</rdfs:seeAlso>
</foaf:Document>
</foaf:weblog>
</foaf:Agent>
</foaf:member>
</xsl:template>
</xsl:stylesheet>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment