parent
901a5b6d34
commit
73242da6bc
|
@ -75,11 +75,11 @@ class StateBadges extends AbstractWidget
|
||||||
{
|
{
|
||||||
if ($this->has($state)) {
|
if ($this->has($state)) {
|
||||||
$badge = $this->get($state);
|
$badge = $this->get($state);
|
||||||
$badges->addItem(array(
|
$badges->addItem(new NavigationItem($state, array(
|
||||||
'attributes' => array('class' => 'badge ' . $state),
|
'attributes' => array('class' => 'badge ' . $state),
|
||||||
'label' => $badge->count,
|
'label' => $badge->count,
|
||||||
'url' => $this->url
|
'url' => $this->url
|
||||||
));
|
)));
|
||||||
}
|
}
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
@ -88,7 +88,7 @@ class StateBadges extends AbstractWidget
|
||||||
{
|
{
|
||||||
$group = array_intersect_key($this->badges, array_flip($states));
|
$group = array_intersect_key($this->badges, array_flip($states));
|
||||||
if (! empty($group)) {
|
if (! empty($group)) {
|
||||||
$groupItem = new NavigationItem();
|
$groupItem = new NavigationItem(uniqid(), array('name' => ''));
|
||||||
$groupBadges = new Navigation();
|
$groupBadges = new Navigation();
|
||||||
$groupBadges->setLayout(Navigation::LAYOUT_TABS);
|
$groupBadges->setLayout(Navigation::LAYOUT_TABS);
|
||||||
foreach (array_keys($group) as $state) {
|
foreach (array_keys($group) as $state) {
|
||||||
|
|
Loading…
Reference in New Issue