3 class Text_Wiki_Render_Xhtml_Table
extends Text_Wiki_Render
{
15 * Renders a token into text matching the requested format.
19 * @param array $options The "options" portion of the token (second
22 * @return string The text rendered from the token options.
26 function token($options)
28 // make nice variable names (type, attr, span)
36 $css = $this->formatConf(' class="%s"', 'css_table');
37 return "\n\n<table$css>\n";
41 return "</table>\n\n";
45 $css = $this->formatConf(' class="%s"', 'css_tr');
46 return "$pad<tr$css>\n";
58 // is this a TH or TD cell?
59 if ($attr == 'header') {
60 // start a header cell
61 $css = $this->formatConf(' class="%s"', 'css_th');
64 // start a normal cell
65 $css = $this->formatConf(' class="%s"', 'css_td');
69 // add the column span
71 $html .= " colspan=\"$span\"";
75 if ($attr != 'header' && $attr != '') {
76 $html .= " style=\"text-align: $attr;\"";
85 if ($attr == 'header') {