cvs: pear /Text_Wiki/Text/Wiki/Render/Xhtml Box.php

From: Date: Fri, 29 Jul 2005 12:38:34 +0000
Subject: cvs: pear /Text_Wiki/Text/Wiki/Render/Xhtml Box.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-33456@lists.php.net to get a copy of this message
toggg Fri Jul 29 08:38:34 2005 EDT Added files: /pear/Text_Wiki/Text/Wiki/Render/Xhtml Box.php Log: A new rule introduced by tiki for drawing boxes http://cvs.php.net/co.php/pear/Text_Wiki/Text/Wiki/Render/Xhtml/Box.php?r=1.1&p=1 Index: pear/Text_Wiki/Text/Wiki/Render/Xhtml/Box.php +++ pear/Text_Wiki/Text/Wiki/Render/Xhtml/Box.php <?php class Text_Wiki_Render_Xhtml_Box extends Text_Wiki_Render { var $conf = array( 'css' => null ); /** * * 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) { if ($options['type'] == 'start') { $css = $this->formatConf(' class="%s"', 'css'); return "<div class='simplebox'$css>"; } if ($options['type'] == 'end') { return '</div>'; } } } ?>

« previous php.pear.cvs (#33456) next »