19 <?=
'<?xml version="1.0" encoding="utf-8"?>' ?>
20 <rss version=
"2.0" xmlns:atom=
"http://www.w3.org/2005/Atom">
22 <atom:link href=
"<?= $request->absolute_url ?>" rel=
"self" type=
"application/rss+xml" />
23 <title><?= $title ?></title>
24 <link><?= $request->root_absolute_url ?></link>
25 <description><?= $description ?></description>
26 <language><?= $request->session->lng ?></language>
28 <?php
if(count($news) > 0): ?>
29 <?php
foreach($news as $n): ?>
30 <?php $id = \Gino\htmlChars($n->id); ?>
31 <?php $title = \Gino\htmlChars($n->ml(
'title')); ?>
32 <?php $text = \Gino\htmlChars($n->ml(
'text')); ?>
33 <?php $text = str_replace(
"src=\"",
"src=\"".$request->root_absolute_url, $text); ?>
34 <?php $text = str_replace(
"href=\"",
"href=\"".$request->root_absolute_url, $text); ?>
35 <?php $date = \date(
'd/m/Y', strtotime($n->date)); ?>
37 <title><?= sprintf(
'%s. %s', $date, $title) ?></title>
38 <link><?= $request->root_absolute_url . $n->getUrl() ?></link>
44 <guid><?= $request->root_absolute_url . $n->getUrl() ?></guid>
Namespace dell'applicazione News