00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00029 class ListItem extends Tpl
00030 {
00031 function ListItem()
00032 {
00033 static $id = 'ListItem_01';
00034
00035 Tpl::Tpl('ListItem');
00036 $this->id = $id++;
00037 }
00038
00039 function to_html($indent, $class)
00040 {
00041 $arr_subtpl = $this->get_subtemplates();
00042 $html = "\n$indent<li $class>" . Tpl::to_html($indent);
00043 if (sizeof($arr_subtpl)!=0) $html .= $indent;
00044 $html .= "</li>\n";
00045 return $html;
00046 }
00047
00048 function to_xml($indent)
00049 {
00050 $arr_subtpl = $this->get_subtemplates();
00051 $html = "\n$indent<listitem><para>" . Tpl::to_xml($indent);
00052 if (sizeof($arr_subtpl)!=0) $html .= $indent;
00053 $html .= "</para></listitem>\n";
00054 return $html;
00055 }
00056 }
00057 ?>