public static function progressBar($width = 0, $htmlOptions = array())
{
self::addCssClass('progress', $htmlOptions);
if (TbArray::popValue('striped', $htmlOptions, false)) {
self::addCssClass('progress-striped', $htmlOptions);
}
if (TbArray::popValue('animated', $htmlOptions, false)) {
self::addCssClass('active', $htmlOptions);
}
$barOptions = TbArray::popValue('barOptions', $htmlOptions, array());
$color = TbArray::popValue('color', $htmlOptions);
if (!empty($color)) {
$barOptions['color'] = $color;
}
$content = TbArray::popValue('content', $htmlOptions);
if (!empty($content)) {
$barOptions['content'] = $content;
}
$content = self::bar($width, $barOptions);
return self::tag('div', $htmlOptions, $content);
}