Re: Wandystan: planeta mikronacje

From: Lord Darth \ <von.thorn_usunto_at_gmail.com>
Date: Tue, 04 Aug 2009 19:37:32 +0200


Stru pisze:
> Chcecie mi powiedzieć, Towarzyszu, że w polskojęzycznym świecie
> mikronacji standardem jest przedrukowywanie "description" a nie
> "content" artykułu?

Może inaczej, zalecany przez Planetę format (jeśli nie jest to np. RSS gotowy z wordpressa) to:

<?php

   header('Content-Type: application/atom+xml; charset=UTF-8');    echo '<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Planeta Mikronacje</title>
<id>http://planeta.mikronacje.info/atom/</id>
<link rel="self" type="application/atom+xml"

href="http://planeta.mikronacje.info/feed.php"/>

<link href="http://planeta.mikronacje.info/"/>
<updated>'.date(DATE_ATOM).'</updated>
<author>
<name>Planeta Mikronacje</name>
</author>
<generator uri="http://planeta.mikronacje.info/"
version="1.0">Planeta Mikronacje</generator>'; foreach ($items as &$item) { echo ' <entry> <title type="html">'.htmlspecialchars($item['title']).'</title> <link href="'.htmlspecialchars($item['link']).'" /> <id>'.htmlspecialchars($item['link']).'</id> <updated>'.date(DATE_ATOM, $item['date']).'</updated> <summary type="html"> '.htmlspecialchars($item['content']).' </summary> </entry> '; } echo '</feed>';

?>
-- 
Menhuerheketheb!
Sekretar Lord Darth "Ruda Grażyna" Kanzler

"What are you doing in our street among the automobiles, horse?
How are your cousins, the centaur and the unicorn?"
Received on Tue 04 Aug 2009 - 10:38:48 CEST

This archive was generated by hypermail 2.4.0 : Wed 08 Jan 2020 - 17:31:26 CET