It looks like you're new here. If you want to get involved, click one of these buttons!
$class = '';
if (isset($params['label_class']) AND !empty($params['label_class'])) $class = 'class="'.$params['label_class'].'"';
....
$str .= "<label ".$class." for=\"".Form::create_id($id_name)."\" id=\"label_".Form::create_id($id_name)."\"".$styles.">";
Comments
And +1 to exposing similar classes for bootstrap compatibility, eg fuel_nav() - it's a bit of a phaff currently
@almostcompletely - I like your spelling of phaff - is that PHP faff?