diff options
Diffstat (limited to 'includes/pear/Text/Wiki/Render/Xhtml/Table.php')
| -rwxr-xr-x[-rw-r--r--] | includes/pear/Text/Wiki/Render/Xhtml/Table.php | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/includes/pear/Text/Wiki/Render/Xhtml/Table.php b/includes/pear/Text/Wiki/Render/Xhtml/Table.php index 670ff7b..ed76ce6 100644..100755 --- a/includes/pear/Text/Wiki/Render/Xhtml/Table.php +++ b/includes/pear/Text/Wiki/Render/Xhtml/Table.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: Table.php 202250 2005-12-06 15:29:29Z ritzmo $ + * @version CVS: $Id$ * @link http://pear.php.net/package/Text_Wiki */ @@ -26,11 +26,11 @@ class Text_Wiki_Render_Xhtml_Table extends Text_Wiki_Render { var $conf = array( - 'css_table' => null, - 'css_caption' => null, - 'css_tr' => null, - 'css_th' => null, - 'css_td' => null + "css_table" => null, + "css_caption" => null, + "css_tr" => null, + "css_th" => null, + "css_td" => null ); @@ -54,52 +54,52 @@ class Text_Wiki_Render_Xhtml_Table extends Text_Wiki_Render { extract($options); // free format - $format = isset($format) ? ' '. $format : ''; + $format = isset($format) ? " ". $format : ""; - $pad = ' '; + $pad = " "; switch ($type) { - case 'table_start': - $css = $this->formatConf(' class="%s"', 'css_table'); + case "table_start": + $css = $this->formatConf(' class="%s"', "css_table"); return "\n\n<table$css$format>\n"; break; - case 'table_end': + case "table_end": return "</table>\n\n"; break; - case 'caption_start': - $css = $this->formatConf(' class="%s"', 'css_caption'); + case "caption_start": + $css = $this->formatConf(' class="%s"', "css_caption"); return "<caption$css$format>\n"; break; - case 'caption_end': + case "caption_end": return "</caption>\n"; break; - case 'row_start': - $css = $this->formatConf(' class="%s"', 'css_tr'); + case "row_start": + $css = $this->formatConf(' class="%s"', "css_tr"); return "$pad<tr$css$format>\n"; break; - case 'row_end': + case "row_end": return "$pad</tr>\n"; break; - case 'cell_start': + case "cell_start": // base html $html = $pad . $pad; // is this a TH or TD cell? - if ($attr == 'header') { + if ($attr == "header") { // start a header cell - $css = $this->formatConf(' class="%s"', 'css_th'); + $css = $this->formatConf(' class="%s"', "css_th"); $html .= "<th$css"; } else { // start a normal cell - $css = $this->formatConf(' class="%s"', 'css_td'); + $css = $this->formatConf(' class="%s"', "css_td"); $html .= "<td$css"; } @@ -114,7 +114,7 @@ class Text_Wiki_Render_Xhtml_Table extends Text_Wiki_Render { } // add alignment - if ($attr != 'header' && $attr != '') { + if ($attr != "header" && $attr != "") { $html .= " style=\"text-align: $attr;\""; } @@ -123,8 +123,8 @@ class Text_Wiki_Render_Xhtml_Table extends Text_Wiki_Render { return $html; break; - case 'cell_end': - if ($attr == 'header') { + case "cell_end": + if ($attr == "header") { return "</th>\n"; } else { return "</td>\n"; @@ -132,7 +132,7 @@ class Text_Wiki_Render_Xhtml_Table extends Text_Wiki_Render { break; default: - return ''; + return ""; } } |
