[ Index ] |
|
Code source de Serendipity 1.2 |
1 <?php 2 3 class Text_Wiki_Render_Xhtml_Deflist extends Text_Wiki_Render { 4 5 var $conf = array( 6 'css_dl' => null, 7 'css_dt' => null, 8 'css_dd' => null 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 $type = $options['type']; 27 $pad = " "; 28 29 switch ($type) { 30 31 case 'list_start': 32 $css = $this->formatConf(' class="%s"', 'css_dl'); 33 return "<dl$css>\n"; 34 break; 35 36 case 'list_end': 37 return "</dl>\n\n"; 38 break; 39 40 case 'term_start': 41 $css = $this->formatConf(' class="%s"', 'css_dt'); 42 return $pad . "<dt$css>"; 43 break; 44 45 case 'term_end': 46 return "</dt>\n"; 47 break; 48 49 case 'narr_start': 50 $css = $this->formatConf(' class="%s"', 'css_dd'); 51 return $pad . $pad . "<dd$css>"; 52 break; 53 54 case 'narr_end': 55 return "</dd>\n"; 56 break; 57 58 default: 59 return ''; 60 61 } 62 } 63 } 64 ?>
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 |
![]() |