diff -r f0431eb8161e -r 98c052fc3337 includes/wikiengine/Render/Xhtml/Heading.php --- a/includes/wikiengine/Render/Xhtml/Heading.php Sun Jun 21 00:16:21 2009 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,88 +0,0 @@ - - * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 - * @version CVS: $Id: Heading.php,v 1.10 2005/09/18 13:39:39 toggg Exp $ - * @link http://pear.php.net/package/Text_Wiki - */ - -/** - * This class renders headings in XHTML. - * - * @category Text - * @package Text_Wiki - * @author Paul M. Jones - * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 - * @version Release: @package_version@ - * @link http://pear.php.net/package/Text_Wiki - */ -class Text_Wiki_Render_Xhtml_Heading extends Text_Wiki_Render { - - var $conf = array( - 'css_h1' => null, - 'css_h2' => null, - 'css_h3' => null, - 'css_h4' => null, - 'css_h5' => null, - 'css_h6' => null - ); - - function token($options) - { - $collapse = null; - static $jsOutput = false; - // get nice variable names (id, type, level) - extract($options); - - switch($type) { - case 'start': - $css = $this->formatConf(' class="%s"', "css_h$level"); - return ' -'; - - case 'end': - return ' -'.($collapse !== null ? '['.($collapse ? '+' : '-').'] -' : ''); - case 'startContent': - if ($collapse !== null) { - if ($jsOutput) { - $js = ''; - } else { - $js = ' - -'; - } - } else { - $js = ''; - } - return $js.' -
-'; - case 'endContent': - return ' -
-'; - } - } -} -?>