Subversion Repositories Applications.papyrus

Rev

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

Rev 932 Rev 1060
Line 20... Line 20...
20
    {
20
    {
21
	// Initialisation des variables
21
	// Initialisation des variables
22
        $sortie = '';
22
        $sortie = '';
23
        $titre = $options['titre'];
23
        $titre = $options['titre'];
24
        $urls = $options['url'];
24
        $urls = $options['url'];
-
 
25
        $tab_param_optionel = array('nb', 'nouvellefenetre', 'formatdate', 'template');
25
        $nblimite = $options['nb'];
26
        foreach ($tab_param_optionel as $val) {
26
        $nouvellefenetre = $options['nouvellefenetre'];
27
        	if (isset($options[$val])) {
27
        $formatdate = $options['formatdate'];
28
        		$options[$val] = $options[$val];
-
 
29
        	} else {
28
        if (isset($options['template'])) $template = $options['template']; else $template = '';	
30
        		$options[$val] = null;
-
 
31
        	}
-
 
32
        }
29
        $tab_url = array_map('trim', explode(',', $urls));
33
        $tab_url = array_map('trim', explode(',', $urls));
30
        foreach ($tab_url as $cle => $url) {
34
        foreach ($tab_url as $cle => $url) {
31
             $url = str_replace('&', '&', $url) ;
35
             $url = str_replace('&', '&', $url) ;
32
	         $sortie .= voir_rss($titre, $url, $nblimite, $nouvellefenetre, $formatdate, $template);
36
	         $sortie .= voir_rss($titre, $url, $options['nb'], $options['nouvellefenetre'], $options['formatdate'], $options['template']);
33
        }
37
        }
34
        return $sortie;
38
        return $sortie;
35
    }
39
    }
36
}
40
}
37
?>
41
?>
38
42