Changeset View
Changeset View
Standalone View
Standalone View
src/view/phui/PHUITimelineEventView.php
Show First 20 Lines • Show All 396 Lines • ▼ Show 20 Lines | foreach ($events as $event) { | ||||
} | } | ||||
} | } | ||||
$image_uri = $this->userHandle->getImageURI(); | $image_uri = $this->userHandle->getImageURI(); | ||||
$wedge = phutil_tag( | $wedge = phutil_tag( | ||||
'div', | 'div', | ||||
array( | array( | ||||
'class' => 'phui-timeline-wedge phui-timeline-border', | 'class' => 'phui-timeline-wedge', | ||||
'style' => (nonempty($image_uri)) ? '' : 'display: none;', | 'style' => (nonempty($image_uri)) ? '' : 'display: none;', | ||||
), | ), | ||||
''); | ''); | ||||
$image = null; | $image = null; | ||||
$badges = null; | $badges = null; | ||||
if ($image_uri) { | if ($image_uri) { | ||||
$image = phutil_tag( | $image = phutil_tag( | ||||
▲ Show 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | public function render() { | ||||
} else { | } else { | ||||
$classes[] = 'phui-timeline-minor-event'; | $classes[] = 'phui-timeline-minor-event'; | ||||
$content = $group_titles; | $content = $group_titles; | ||||
} | } | ||||
$content = phutil_tag( | $content = phutil_tag( | ||||
'div', | 'div', | ||||
array( | array( | ||||
'class' => 'phui-timeline-group phui-timeline-border', | 'class' => 'phui-timeline-group', | ||||
), | ), | ||||
$content); | $content); | ||||
// Image Events | // Image Events | ||||
$pinboard = null; | $pinboard = null; | ||||
if ($this->pinboardItems) { | if ($this->pinboardItems) { | ||||
$pinboard = new PHUIPinboardView(); | $pinboard = new PHUIPinboardView(); | ||||
foreach ($this->pinboardItems as $item) { | foreach ($this->pinboardItems as $item) { | ||||
▲ Show 20 Lines • Show All 254 Lines • Show Last 20 Lines |