Changeset View
Changeset View
Standalone View
Standalone View
src/view/phui/PHUIHeaderView.php
Show First 20 Lines • Show All 301 Lines • ▼ Show 20 Lines | if ($this->actionItems) { | ||||
array( | array( | ||||
'class' => 'phui-header-action-list', | 'class' => 'phui-header-action-list', | ||||
), | ), | ||||
$action_list); | $action_list); | ||||
} | } | ||||
$icon = null; | $icon = null; | ||||
if ($this->headerIcon) { | if ($this->headerIcon) { | ||||
if ($this->headerIcon instanceof PHUIIconView) { | |||||
$icon = id(clone $this->headerIcon) | |||||
->addClass('phui-header-icon'); | |||||
} else { | |||||
$icon = id(new PHUIIconView()) | $icon = id(new PHUIIconView()) | ||||
->setIcon($this->headerIcon) | ->setIcon($this->headerIcon) | ||||
->addClass('phui-header-icon'); | ->addClass('phui-header-icon'); | ||||
} | } | ||||
} | |||||
$header_content = $this->header; | $header_content = $this->header; | ||||
$href = $this->getHref(); | $href = $this->getHref(); | ||||
if ($href !== null) { | if ($href !== null) { | ||||
$header_content = phutil_tag( | $header_content = phutil_tag( | ||||
'a', | 'a', | ||||
array( | array( | ||||
▲ Show 20 Lines • Show All 228 Lines • Show Last 20 Lines |