'checkbox', 'class' => array(), 'name' => $el->name() ); if($el->limit() !== 1) { $attr['name'] .= '[]'; } if(!$el->validate()) $attr['class'][] = 'invalid'; echo $this->execute('form.label', array('el' => $el)); ?> data('options'); $values = (array)$el->value(); foreach($options as $option): $attr['id'] = $this->system->HTML->getUniqueID(); $attr['value'] = $option; // Checked or not if(in_array($option, $values)) { $attr['checked'] = 'checked'; } elseif(isset($attr['checked'])) { unset($attr['checked']); } ?>

system->HTML->arrayToAttributes($attr) ?>/> execute('form.label', array( 'el' => $el, 'attr' => array('class' => $attr['class']), 'for' => $attr['id'], 'label' => $option )); ?>