support array of module options
This commit is contained in:
parent
75599c21d6
commit
0952a461cc
|
@ -159,7 +159,14 @@ for ($i = 0; $i < sizeof($modules); $i++) {
|
||||||
}
|
}
|
||||||
$row = new htmlResponsiveRow();
|
$row = new htmlResponsiveRow();
|
||||||
$row->add(new htmlSubTitle(getModuleAlias($modules[$i], "none"), $iconImage, null, true), 12);
|
$row->add(new htmlSubTitle(getModuleAlias($modules[$i], "none"), $iconImage, null, true), 12);
|
||||||
|
if (is_array($options[$modules[$i]])) {
|
||||||
|
foreach ($options[$modules[$i]] as $option) {
|
||||||
|
$row->add($option, 12);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
$row->add($options[$modules[$i]], 12);
|
$row->add($options[$modules[$i]], 12);
|
||||||
|
}
|
||||||
$configTypes = parseHtml($modules[$i], $row, $old_options, false, $tabindex, 'none');
|
$configTypes = parseHtml($modules[$i], $row, $old_options, false, $tabindex, 'none');
|
||||||
$_SESSION['conf_types'] = array_merge($configTypes, $_SESSION['conf_types']);
|
$_SESSION['conf_types'] = array_merge($configTypes, $_SESSION['conf_types']);
|
||||||
echo "<br>";
|
echo "<br>";
|
||||||
|
|
Loading…
Reference in New Issue