]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
move text out of input, into a separate span
authorEvan Prodromou <evan@controlezvous.ca>
Thu, 26 Jun 2008 18:22:31 +0000 (14:22 -0400)
committerEvan Prodromou <evan@controlezvous.ca>
Thu, 26 Jun 2008 18:22:31 +0000 (14:22 -0400)
darcs-hash:20080626182231-34904-e8d139c2a8b5cd07fa0179b0bcf5cd41f1a1217b.gz

lib/util.php

index 2c2ee4c0c54763af4587e8f2362f1b120bf7b1a3..a20f64c85ffdb6ba0b1dba10358edac41c394ccd 100644 (file)
@@ -329,7 +329,11 @@ function common_checkbox($id, $label, $instructions=NULL, $value='true')
        if ($value) {
                $attrs['value'] = htmlspecialchars($value);
        }
-       common_element('input', $attrs, $label);
+       common_element('input', $attrs);
+       # XXX: use a <label>
+       common_text(' ');
+       common_element('span', 'checkbox_label', $label);
+       common_text(' ');
        if ($instructions) {
                common_element('span', 'input_instructions', $instructions);
        }