diff options
Diffstat (limited to 'includes/pear/Text/Wiki/Render/Xhtml/Heading.php')
| -rwxr-xr-x[-rw-r--r--] | includes/pear/Text/Wiki/Render/Xhtml/Heading.php | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/includes/pear/Text/Wiki/Render/Xhtml/Heading.php b/includes/pear/Text/Wiki/Render/Xhtml/Heading.php index 0d3c05f..cd6d7bc 100644..100755 --- a/includes/pear/Text/Wiki/Render/Xhtml/Heading.php +++ b/includes/pear/Text/Wiki/Render/Xhtml/Heading.php @@ -9,7 +9,7 @@ * @package Text_Wiki * @author Paul M. Jones <pmjones@php.net> * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 - * @version CVS: $Id: Heading.php 196293 2005-09-18 13:39:39Z toggg $ + * @version CVS: $Id$ * @link http://pear.php.net/package/Text_Wiki */ @@ -26,12 +26,12 @@ 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 + "css_h1" => null, + "css_h2" => null, + "css_h3" => null, + "css_h4" => null, + "css_h5" => null, + "css_h6" => null ); function token($options) @@ -42,19 +42,19 @@ class Text_Wiki_Render_Xhtml_Heading extends Text_Wiki_Render { extract($options); switch($type) { - case 'start': + case "start": $css = $this->formatConf(' class="%s"', "css_h$level"); - return ' -<h'.$level.$css.' id="'.$id.'"'.($collapse !== null ? ' onclick="hideTOC(\''.$id.'\');"' : '').'>'; + return " +<h".$level.$css.' id="'.$id.'"'.($collapse !== null ? ' onclick="hideTOC(\''.$id.'\');"' : "").">"; - case 'end': - return '</h'.$level.'> -'.($collapse !== null ? '<a id="'.$id.'__link" href="javascript:void();" onclick="hideTOC(\''.$id.'\')">['.($collapse ? '+' : '-').']</a> -' : ''); - case 'startContent': + case "end": + return "</h".$level."> +".($collapse !== null ? '<a id="'.$id.'__link" href="javascript:void();" onclick="hideTOC(\''.$id.'\')">['.($collapse ? "+" : "-")."]</a> +" : ""); + case "startContent": if ($collapse !== null) { if ($jsOutput) { - $js = ''; + $js = ""; } else { $js = ' <script language="javascript"> @@ -73,15 +73,15 @@ function hideTOC(id) { '; } } else { - $js = ''; + $js = ""; } return $js.' -<div style="'.($collapse === true ? 'display: none; ' : '').'padding: 0px; margin: 0px; border: none;" id="'.$id.'__content"> +<div style="'.($collapse === true ? "display: none; " : "").'padding: 0px; margin: 0px; border: none;" id="'.$id.'__content"> '; - case 'endContent': - return ' + case "endContent": + return " </div> -'; +"; } } } |
