1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-19 11:11:10 +01:00
phorge-phorge/src/view/layout/AphrontCrumbsView.php

32 lines
644 B
PHP
Raw Normal View History

<?php
final class AphrontCrumbsView extends AphrontView {
private $crumbs = array();
public function setCrumbs(array $crumbs) {
$this->crumbs = $crumbs;
return $this;
}
public function render() {
require_celerity_resource('aphront-crumbs-view-css');
$out = array();
foreach ($this->crumbs as $crumb) {
$out[] = $crumb;
}
2013-02-13 23:50:15 +01:00
$out = phutil_implode_html(
hsprintf('<span class="aphront-crumbs-spacer">'."\xC2\xBB".'</span>'),
$out);
2013-02-13 23:50:15 +01:00
return hsprintf(
'<div class="aphront-crumbs-view">'.
2013-02-13 23:50:15 +01:00
'<div class="aphront-crumbs-content">%s</div>'.
'</div>',
$out);
}
}