Adding support for values in nested lists generated in the HTML class.
Signed-off-by: Ben Corlett <bencorlett@me.com>
This commit is contained in:
parent
91c64b38a7
commit
af2bf68a29
|
@ -314,10 +314,17 @@ private static function listing($type, $list, $attributes = array())
|
|||
// produce a nested list within the list being built. Of course, nested
|
||||
// lists may exist within nested lists, etc.
|
||||
if (is_array($value))
|
||||
{
|
||||
if (is_int($key))
|
||||
{
|
||||
$html .= static::listing($type, $value);
|
||||
}
|
||||
else
|
||||
{
|
||||
$html .= '<li>'.$key.static::listing($type, $value).'</li>';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$html .= '<li>'.static::entities($value).'</li>';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue