Subversion Repositories Applications.papyrus

Rev

Rev 832 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 832 Rev 932
Line 23... Line 23...
23
        $titre = $options['titre'];
23
        $titre = $options['titre'];
24
        $urls = $options['url'];
24
        $urls = $options['url'];
25
        $nblimite = $options['nb'];
25
        $nblimite = $options['nb'];
26
        $nouvellefenetre = $options['nouvellefenetre'];
26
        $nouvellefenetre = $options['nouvellefenetre'];
27
        $formatdate = $options['formatdate'];
27
        $formatdate = $options['formatdate'];
-
 
28
        if (isset($options['template'])) $template = $options['template']; else $template = '';	
28
        $tab_url = array_map('trim', explode(',', $urls));
29
        $tab_url = array_map('trim', explode(',', $urls));
29
        foreach ($tab_url as $cle => $url) {
30
        foreach ($tab_url as $cle => $url) {
30
             $url = str_replace('&', '&', $url) ;
31
             $url = str_replace('&', '&', $url) ;
31
	         $sortie .= voir_rss($titre, $url, $nblimite, $nouvellefenetre, $formatdate);
32
	         $sortie .= voir_rss($titre, $url, $nblimite, $nouvellefenetre, $formatdate, $template);
32
        }
33
        }
33
        return $sortie;
34
        return $sortie;
34
    }
35
    }
35
}
36
}
36
?>
37
?>
37
38