Changeset View
Changeset View
Standalone View
Standalone View
src/view/phui/PHUISegmentBarView.php
Show All 24 Lines | return array( | ||||
'class' => 'phui-segment-bar-view', | 'class' => 'phui-segment-bar-view', | ||||
); | ); | ||||
} | } | ||||
protected function getTagContent() { | protected function getTagContent() { | ||||
require_celerity_resource('phui-segment-bar-view-css'); | require_celerity_resource('phui-segment-bar-view-css'); | ||||
$label = $this->label; | $label = $this->label; | ||||
if (strlen($label)) { | if (phutil_nonempty_string($label)) { | ||||
$label = phutil_tag( | $label = phutil_tag( | ||||
'div', | 'div', | ||||
array( | array( | ||||
'class' => 'phui-segment-bar-label', | 'class' => 'phui-segment-bar-label', | ||||
), | ), | ||||
$label); | $label); | ||||
} | } | ||||
Show All 24 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0