<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Layout; use Illuminate\Contracts\Support\Renderable; class Row implements Buildable, Renderable { protected $columns = array(); protected $class = array(); public function __construct($BWI89 = '') { if (!empty($BWI89)) { if ($BWI89 instanceof \Closure) { call_user_func($BWI89, $this); } else { $this->column(12, $BWI89); } } } public function column($GLdhF, $BWI89) { goto IlD2k; dLOZk: $this->addColumn($BlfaU); goto UGR0v; sKiN3: $BlfaU = new Column($BWI89, $GLdhF); goto dLOZk; IlD2k: $GLdhF = $GLdhF < 1 ? round(12 * $GLdhF) : $GLdhF; goto sKiN3; UGR0v: } protected function addColumn(Column $BlfaU) { $this->columns[] = $BlfaU; } public function build() { goto PgZiS; W12ii: foreach ($this->columns as $BlfaU) { $BlfaU->build(); } goto HlHyF; PgZiS: $this->startRow(); goto W12ii; HlHyF: $this->endRow(); goto ymQfL; ymQfL: } protected function startRow() { goto ykCQS; dmsrX: echo '<div class="' . implode(' ', $UfDw1) . '">'; goto DvIxA; N7SLM: $UfDw1[] = 'row'; goto dmsrX; ykCQS: $UfDw1 = $this->class; goto N7SLM; DvIxA: } protected function endRow() { echo '</div>'; } public function render() { goto I5F5u; I5F5u: ob_start(); goto u98MH; NBpKf: return $ZLTa0; goto Zl4WW; J_5qe: ob_end_clean(); goto NBpKf; D0rOw: $ZLTa0 = ob_get_contents(); goto J_5qe; u98MH: $this->build(); goto D0rOw; Zl4WW: } }