mirror of
https://github.com/e107inc/e107.git
synced 2025-08-17 20:01:47 +02:00
Corrected some of the confusion with news-preference labels. Option added to choose what displays in the news list page. $frm->checkboxes now renders field-help correctly.
This commit is contained in:
@@ -1410,7 +1410,7 @@ class e_form
|
||||
* @param string $name
|
||||
* @param array $option_array
|
||||
* @param mixed $checked
|
||||
* @param array $options [optional]
|
||||
* @param array $options [optional useKeyValues]
|
||||
*/
|
||||
function checkboxes($name, $option_array, $checked, $options=array())
|
||||
{
|
||||
@@ -1439,6 +1439,11 @@ class e_form
|
||||
$text .= $this->checkbox($cname, $key, $c, $label);
|
||||
}
|
||||
|
||||
if(!empty($text))
|
||||
{
|
||||
return "<div class='checkboxes' style='display:inline-block'>".$text."</div>";
|
||||
}
|
||||
|
||||
return $text;
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user