Changeset View
Changeset View
Standalone View
Standalone View
src/view/phui/PHUITagView.php
Show First 20 Lines • Show All 136 Lines • ▼ Show 20 Lines | if ($this->phid) { | ||||
'href' => $this->href, | 'href' => $this->href, | ||||
'target' => $this->external ? '_blank' : null, | 'target' => $this->external ? '_blank' : null, | ||||
); | ); | ||||
} | } | ||||
return $attributes + array('class' => $classes); | return $attributes + array('class' => $classes); | ||||
} | } | ||||
public function getTagContent() { | protected function getTagContent() { | ||||
if (!$this->type) { | if (!$this->type) { | ||||
throw new Exception(pht('You must call setType() before render()!')); | throw new Exception(pht('You must call setType() before render()!')); | ||||
} | } | ||||
$color = null; | $color = null; | ||||
if (!$this->shade && $this->backgroundColor) { | if (!$this->shade && $this->backgroundColor) { | ||||
$color = 'phui-tag-color-'.$this->backgroundColor; | $color = 'phui-tag-color-'.$this->backgroundColor; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 100 Lines • Show Last 20 Lines |