1<?php 2 3/** 4 * 5 * Address rule end renderer for Xhtml 6 * 7 * PHP versions 4 and 5 8 * 9 * @category Text 10 * 11 * @package Text_Wiki 12 * 13 * @author Michele Tomaiuolo <tomamic@yahoo.it> 14 * 15 * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 16 * 17 * @version CVS: $Id$ 18 * 19 * @link http://pear.php.net/package/Text_Wiki 20 * 21 */ 22 23class Text_Wiki_Render_Xhtml_Address extends Text_Wiki_Render { 24 25 var $conf = array( 26 'css' => null 27 ); 28 29 /** 30 * 31 * Renders a token into text matching the requested format. 32 * 33 * @access public 34 * 35 * @param array $options The "options" portion of the token (second 36 * element). 37 * 38 * @return string The text rendered from the token options. 39 * 40 */ 41 42 function token($options) 43 { 44 if ($options['type'] == 'start') { 45 $css = $this->formatConf(' class="%s"', 'css'); 46 return "<address$css>"; 47 } 48 49 if ($options['type'] == 'end') { 50 return '</address>'; 51 } 52 } 53} 54?> 55