Rev 1087 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<?phprequire_once GEN_CHEMIN_API.'syndication_rss/syndication_rss.php';class Text_Wiki_Render_Xhtml_Syndication extends Text_Wiki_Render {/**** Renders a token into text matching the requested format.** @access public** @param array $options The "options" portion of the token (second* element).** @return string The text rendered from the token options.**/function token($options){// Initialisation des variables$sortie = '';$titre = $options['titre'];$urls = $options['url'];$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, $options['nb'], $options['nouvellefenetre'], $options['formatdate'], $options['template']);}return $sortie;}}?>