setOpt('active_title',1); $this->setOpt('active_setext_title',0); $this->setOpt('active_hr',1); $this->setOpt('active_lists',1); $this->setOpt('active_quote',1); $this->setOpt('active_pre',1); $this->setOpt('active_empty',1); $this->setOpt('active_auto_urls',0); $this->setOpt('active_urls',1); $this->setOpt('active_auto_img',0); $this->setOpt('active_img',1); $this->setOpt('active_anchor',1); $this->setOpt('active_em',1); $this->setOpt('active_strong',1); $this->setOpt('active_br',1); $this->setOpt('active_q',1); $this->setOpt('active_code',1); $this->setOpt('active_acronym',1); $this->setOpt('active_ins',1); $this->setOpt('active_del',1); $this->setOpt('active_footnotes',1); $this->setOpt('active_wikiwords',0); $this->setOpt('active_macros',1); $this->setOpt('parse_pre',1); $this->setOpt('active_fix_word_entities',0); $this->setOpt('active_fr_syntax',0); $this->setOpt('first_title_level',3); $this->setOpt('note_prefix','wiki-footnote'); $this->setOpt('note_str','

Notes

%s
'); $this->setOpt('words_pattern','((?foot_notes = array(); $share_dir = dirname(__FILE__).'/../../share/'; $acro_file = $share_dir.'wiki-acronyms.txt'; $acro_user = $share_dir.'wiki-acronyms-user.txt'; if (file_exists($acro_user)) { $acro_file = $acro_user; } $this->setOpt('acronyms_file',$acro_file); $this->acro_table = $this->__getAcronyms(); $this->registerFunction('url:post',array('wiki2xhtml','postLink')); } function postLink($url,$content) { if (!isset($GLOBALS['blog'])) { return null; } $id = substr($url,5); $post = $GLOBALS['blog']->getPostByID($id); if ($post === false || $post->isEmpty()) { return false; } $res['url'] = $post->getPermURL(); if ($url == $content) { $res['content'] = $post->f('post_titre'); } else { $res['content'] = $content; $res['title'] = $post->f('post_titre'); } if ($post->f('post_lang')) { $res['lang'] = $post->f('post_lang'); } return $res; } } # Wiki2xhtml pour les commentaires class wiki2xhtmlComment extends wiki2xhtmlBasic { function wiki2xhtmlComment() { parent::wiki2xhtml(); $this->setOpt('active_title',0); $this->setOpt('active_setext_title',0); $this->setOpt('active_hr',0); $this->setOpt('active_lists',1); $this->setOpt('active_quote',0); $this->setOpt('active_pre',1); $this->setOpt('active_empty',0); $this->setOpt('active_auto_urls',0); $this->setOpt('active_urls',1); $this->setOpt('active_auto_img',0); $this->setOpt('active_img',0); $this->setOpt('active_anchor',0); $this->setOpt('active_em',1); $this->setOpt('active_strong',1); $this->setOpt('active_br',1); $this->setOpt('active_q',1); $this->setOpt('active_code',1); $this->setOpt('active_acronym',1); $this->setOpt('active_ins',1); $this->setOpt('active_del',1); $this->setOpt('active_footnotes',0); $this->setOpt('active_wikiwords',0); $this->setOpt('active_macros',0); $this->setOpt('parse_pre',0); $this->setOpt('active_fix_word_entities',0); $this->setOpt('active_fr_syntax',0); } } ?>