';
break;
case 'checkbox_group':
unset($fieldoptions['value']);
$fieldoptions['type'] = 'checkbox';
$options = array();
if(isset($tag['options']) && is_array($tag['options'])){
$options = $tag['options'];
unset($tag['options']);
$checked = false;
if(isset($tag['selected'])){
$checked = explode(",", $tag['selected']);
unset($tag['selected']);
}
}
if(isset($tag['ghost'])){
if((bool)$tag['ghost'] === true){
$output .= '';
break;
case 'checkbox':
if(isset($tag['checked'])){
if((bool)$tag['checked'] === true){
$tag['checked'] = 'checked';
}else{
unset($tag['checked']);
}
}
if(!isset($fieldoptions['id']) || empty($fieldoptions['id'])){
$tag['id'] = $fieldoptions['id'] = $this->slug($fieldname);
}
if(isset($tag['ghost'])){
if((bool)$tag['ghost'] === true){
$output .= '