public function progress_bar(array $items) { foreach ($items as $step) { if ($step['class'] == 'backup_stage backup_stage_current') { $steps[] = html::span(label::inverse($step['text'])); } else { $steps[] = html::span($step['text']); } } return html::ul('breadcrumb', '<li>' . implode(' > </li><li>', $steps) . '</li>'); //TODO: there's better bootstrap wizard progress out there, but this'll do for now }