27,7 → 27,10 |
{ |
// make nice variable names (type, attr, span) |
extract($options); |
|
if (!isset($span)) $span=1; |
if (!isset($type)) $type=''; |
if (!isset($attr)) $attr=''; |
|
$pad = ' '; |
|
switch ($type) { |
35,20 → 38,15 |
case 'table_start': |
$css = $this->formatConf(' class="%s"', 'css_table'); |
return "\n\n".'<table'.$css.' '.trim($attr).'>'."\n"; |
break; |
|
case 'table_end': |
return "</table>\n\n"; |
break; |
|
case 'row_start': |
$css = $this->formatConf(' class="%s"', 'css_tr'); |
return "$pad<tr$css $attr>\n"; |
break; |
|
case 'row_end': |
return "$pad</tr>\n"; |
break; |
|
case 'cell_start': |
|
79,7 → 77,6 |
// done! |
$html .= '>'; |
return $html; |
break; |
|
case 'cell_end': |
if ($attr == 'header') { |
87,7 → 84,6 |
} else { |
return "</td>\n"; |
} |
break; |
|
default: |
return ''; |