Subversion Repositories Applications.papyrus

Compare Revisions

Ignore whitespace Rev 1059 → Rev 1060

/trunk/api/text/wiki_papyrus/Render/Xhtml/Syndication.php
22,14 → 22,18
$sortie = '';
$titre = $options['titre'];
$urls = $options['url'];
$nblimite = $options['nb'];
$nouvellefenetre = $options['nouvellefenetre'];
$formatdate = $options['formatdate'];
if (isset($options['template'])) $template = $options['template']; else $template = '';
$tab_param_optionel = array('nb', 'nouvellefenetre', 'formatdate', 'template');
foreach ($tab_param_optionel as $val) {
if (isset($options[$val])) {
$options[$val] = $options[$val];
} else {
$options[$val] = null;
}
}
$tab_url = array_map('trim', explode(',', $urls));
foreach ($tab_url as $cle => $url) {
$url = str_replace('&', '&', $url) ;
$sortie .= voir_rss($titre, $url, $nblimite, $nouvellefenetre, $formatdate, $template);
$sortie .= voir_rss($titre, $url, $options['nb'], $options['nouvellefenetre'], $options['formatdate'], $options['template']);
}
return $sortie;
}