Changeset View
Changeset View
Standalone View
Standalone View
src/view/phui/PHUIPropertyListView.php
Show First 20 Lines • Show All 278 Lines • ▼ Show 20 Lines | private function renderTextPart(array $part) { | ||||
$classes = array(); | $classes = array(); | ||||
$classes[] = 'phui-property-list-text-content'; | $classes[] = 'phui-property-list-text-content'; | ||||
if ($part['type'] == 'image') { | if ($part['type'] == 'image') { | ||||
$classes[] = 'phui-property-list-image-content'; | $classes[] = 'phui-property-list-image-content'; | ||||
} | } | ||||
return phutil_tag( | return phutil_tag( | ||||
'div', | 'div', | ||||
array( | array( | ||||
'class' => implode($classes, ' '), | 'class' => implode(' ', $classes), | ||||
), | ), | ||||
$part['content']); | $part['content']); | ||||
} | } | ||||
private function renderRawPart(array $part) { | private function renderRawPart(array $part) { | ||||
$classes = array(); | $classes = array(); | ||||
$classes[] = 'phui-property-list-raw-content'; | $classes[] = 'phui-property-list-raw-content'; | ||||
return phutil_tag( | return phutil_tag( | ||||
'div', | 'div', | ||||
array( | array( | ||||
'class' => implode($classes, ' '), | 'class' => implode(' ', $classes), | ||||
), | ), | ||||
$part['content']); | $part['content']); | ||||
} | } | ||||
} | } |