Changeset View
Changeset View
Standalone View
Standalone View
src/view/phui/PHUIBadgeMiniView.php
Show All 40 Lines | protected function getTagAttributes() { | ||||
$classes = array(); | $classes = array(); | ||||
$classes[] = 'phui-badge-mini'; | $classes[] = 'phui-badge-mini'; | ||||
if ($this->quality) { | if ($this->quality) { | ||||
$classes[] = 'phui-badge-mini-'.$this->quality; | $classes[] = 'phui-badge-mini-'.$this->quality; | ||||
} | } | ||||
return array( | return array( | ||||
'class' => implode(' ', $classes), | 'class' => implode(' ', $classes), | ||||
'sigil' => 'has-tooltip', | 'sigil' => 'has-tooltip', | ||||
'href' => $this->href, | 'href' => $this->href, | ||||
'meta' => array( | 'meta' => array( | ||||
'tip' => $this->header, | 'tip' => $this->header, | ||||
), | ), | ||||
); | ); | ||||
} | } | ||||
protected function getTagContent() { | protected function getTagContent() { | ||||
return id(new PHUIIconView()) | return id(new PHUIIconView()) | ||||
->setIconFont($this->icon); | ->setIconFont($this->icon); | ||||
} | } | ||||
} | } |