@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
at recaptime-dev/main 45 lines 704 B view raw
1<?php 2 3final class FuelMapView 4 extends FuelComponentView { 5 6 private $items = array(); 7 8 public function newItem() { 9 $item = new FuelMapItemView(); 10 $this->items[] = $item; 11 return $item; 12 } 13 14 public function render() { 15 require_celerity_resource('fuel-map-css'); 16 17 $items = $this->items; 18 19 if (!$items) { 20 return null; 21 } 22 23 $body = phutil_tag( 24 'div', 25 array( 26 'class' => 'fuel-map-items', 27 ), 28 $items); 29 30 $map = phutil_tag( 31 'div', 32 array( 33 'class' => 'fuel-map', 34 ), 35 $body); 36 37 return $this->newComponentTag( 38 'div', 39 array( 40 'class' => 'fuel-map-component', 41 ), 42 $map); 43 } 44 45}