Merge pull request #100 from jackmcdade/5.1
dl() now supports multiple descriptions per term
This commit is contained in:
commit
828da38dcd
1 file changed
+7
-1
+7
-1
@@ -294,7 +294,13 @@ class HtmlBuilder
|
||||
$html = "<dl{$attributes}>";
|
||||
|
||||
foreach ($list as $key => $value) {
|
||||
$html .= "<dt>$key</dt><dd>$value</dd>";
|
||||
$value = (array) $value;
|
||||
|
||||
$html .= "<dt>$key</dt>";
|
||||
|
||||
foreach ($value as $v_key => $v_value) {
|
||||
$html .= "<dd>$v_value</dd>";
|
||||
}
|
||||
}
|
||||
|
||||
$html .= '</dl>';
|
||||
|
||||
Reference in new issue
Block a user