[ Index ] |
|
Code source de Serendipity 1.2 |
1 <?php 2 3 class Text_Wiki_Render_Xhtml_Revise extends Text_Wiki_Render { 4 5 var $conf = array( 6 'css_ins' => null, 7 'css_del' => null 8 ); 9 10 11 /** 12 * 13 * Renders a token into text matching the requested format. 14 * 15 * @access public 16 * 17 * @param array $options The "options" portion of the token (second 18 * element). 19 * 20 * @return string The text rendered from the token options. 21 * 22 */ 23 24 function token($options) 25 { 26 if ($options['type'] == 'del_start') { 27 $css = $this->formatConf(' class="%s"', 'css_del'); 28 return "<del$css>"; 29 } 30 31 if ($options['type'] == 'del_end') { 32 return "</del>"; 33 } 34 35 if ($options['type'] == 'ins_start') { 36 $css = $this->formatConf(' class="%s"', 'css_ins'); 37 return "<ins$css>"; 38 } 39 40 if ($options['type'] == 'ins_end') { 41 return "</ins>"; 42 } 43 } 44 } 45 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Nov 24 09:00:37 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |