Changeset View
Changeset View
Standalone View
Standalone View
src/view/phui/PHUIObjectItemView.php
Show First 20 Lines • Show All 293 Lines • ▼ Show 20 Lines | protected function getTagAttributes() { | ||||
if ($this->actions) { | if ($this->actions) { | ||||
$n = count($this->actions); | $n = count($this->actions); | ||||
$item_classes[] = 'phui-oi-with-actions'; | $item_classes[] = 'phui-oi-with-actions'; | ||||
$item_classes[] = 'phui-oi-with-'.$n.'-actions'; | $item_classes[] = 'phui-oi-with-'.$n.'-actions'; | ||||
} | } | ||||
if ($this->disabled) { | if ($this->disabled) { | ||||
$item_classes[] = 'phui-oi-disabled'; | $item_classes[] = 'phui-oi-disabled'; | ||||
} else { | |||||
$item_classes[] = 'phui-oi-enabled'; | |||||
} | } | ||||
switch ($this->effect) { | switch ($this->effect) { | ||||
case 'highlighted': | case 'highlighted': | ||||
$item_classes[] = 'phui-oi-highlighted'; | $item_classes[] = 'phui-oi-highlighted'; | ||||
break; | break; | ||||
case 'selected': | case 'selected': | ||||
$item_classes[] = 'phui-oi-selected'; | $item_classes[] = 'phui-oi-selected'; | ||||
▲ Show 20 Lines • Show All 540 Lines • Show Last 20 Lines |