mirror of
https://github.com/e107inc/e107.git
synced 2025-08-08 07:36:32 +02:00
Added 'active' class to checked checkboxes.
This commit is contained in:
@@ -1297,7 +1297,9 @@ class e_form
|
|||||||
|
|
||||||
$text = "";
|
$text = "";
|
||||||
|
|
||||||
$pre = (vartrue($options['label'])) ? "<label class='checkbox'>" : ""; // Bootstrap compatible markup
|
$active = ($checked === true) ? " active" : ""; // allow for styling if needed.
|
||||||
|
|
||||||
|
$pre = (vartrue($options['label'])) ? "<label class='checkbox".$active."'>" : ""; // Bootstrap compatible markup
|
||||||
$post = (vartrue($options['label'])) ? $options['label']."</label>" : "";
|
$post = (vartrue($options['label'])) ? $options['label']."</label>" : "";
|
||||||
unset($options['label']); // not to be used as attribute;
|
unset($options['label']); // not to be used as attribute;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user