1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-23 22:53:01 +02:00

Fixes #951 - Chatbox and emote issues.

This commit is contained in:
Cameron
2015-04-05 09:27:57 -07:00
parent 0ac9b1e045
commit cba7be2a46
4 changed files with 34 additions and 14 deletions

View File

@@ -1292,6 +1292,9 @@ class e_form
}
}
$labelClass = (!empty($options['inline'])) ? 'checkbox-inline' : 'checkbox';
$options = $this->format_options('checkbox', $name, $options);
$options['checked'] = $checked; //comes as separate argument just for convenience
@@ -1300,7 +1303,9 @@ class e_form
$active = ($checked === true) ? " active" : ""; // allow for styling if needed.
$pre = (vartrue($options['label'])) ? "<label class='checkbox".$active."'>" : ""; // Bootstrap compatible markup
$pre = (vartrue($options['label'])) ? "<label class='".$labelClass.$active."'>" : ""; // Bootstrap compatible markup
$post = (vartrue($options['label'])) ? $options['label']."</label>" : "";
unset($options['label']); // not to be used as attribute;