@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 upstream/main 41 lines 656 B view raw
1<?php 2 3final class FuelGridView 4 extends FuelComponentView { 5 6 private $rows = array(); 7 8 public function newRow() { 9 $row = new FuelGridRowView(); 10 $this->rows[] = $row; 11 return $row; 12 } 13 14 public function render() { 15 require_celerity_resource('fuel-grid-css'); 16 17 $rows = $this->rows; 18 19 $body = phutil_tag( 20 'div', 21 array( 22 'class' => 'fuel-grid-body', 23 ), 24 $rows); 25 26 $grid = phutil_tag( 27 'div', 28 array( 29 'class' => 'fuel-grid', 30 ), 31 $body); 32 33 return $this->newComponentTag( 34 'div', 35 array( 36 'class' => 'fuel-grid-component', 37 ), 38 $grid); 39 } 40 41}