source: trunk/web/app/out/dist/backend/atom.php @ 1

Last change on this file since 1 was 1, checked in by dj3c1t, 12 years ago

import initial

File size: 1.3 KB
Line 
1<<?= "?" ?>xml version="1.0" encoding="UTF-8" <?= "?" ?>>
2<feed xml:lang="fr" xmlns="http://www.w3.org/2005/Atom">
3  <id><?= $env->out["atom"]["id"] ?></id>
4  <author><name><?= $env->out["atom"]["author_name"] ?></name></author>
5  <updated><?= $env->out["atom"]["updated"] ?></updated>
6  <title><?= $env->out["atom"]["title"] ?></title>
7  <link rel="self" href="<?= $env->out["atom"]["link"]["self"] ?>"/>
8  <link rel="alternate" type="text/html" href="<?= $env->out["atom"]["link"]["alternate"] ?>"/>
9
10<?php if($env->out["atom"]["entries"]) : foreach($env->out["atom"]["entries"] as $id_entry => $entry) : ?>
11<entry xml:lang="fr">
12  <id><?= $entry["id"] ?></id>
13  <updated><?= $entry["updated"] ?></updated>
14  <author><name><?= utf8_encode($entry["author_name"]) ?></name></author>
15  <title><?= utf8_encode($entry["title"]) ?></title>
16  <link rel="alternate" type="text/html" href="<?= str_replace("&amp;", "&", $entry["link"]["alternate"]) ?>" />
17<?php if($entry["enclosure"]) : ?>
18  <link rel="enclosure" type="<?= $entry["content_type"] ?>" href="<?= $entry["enclosure"] ?>"/>
19<?php endif; ?>
20<?php if($entry["summary"]) : ?>
21  <summary type="html"><![CDATA[<?= $entry["summary"] ?>]]></summary>
22<?php endif; ?>
23<?php if($entry["content"]) : ?>
24  <content type="html"><![CDATA[<?= $entry["content"] ?>]]></content>
25<?php endif; ?>
26</entry>
27<?php endforeach; endif; ?>
28
29</feed>
Note: See TracBrowser for help on using the repository browser.