<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Layout; use ModStart\Core\Util\IdUtil; use ModStart\Field\AbstractField; class LayoutGrid extends AbstractField { protected $isLayoutField = true; private $layoutClosure = null; public function __construct($ToZUu) { parent::__construct(IdUtil::generate('LayoutGrid')); $this->layoutClosure = $ToZUu; } public function postSetup() { goto Huku6; DNOxY: call_user_func($this->layoutClosure, $this); goto fLb74; Huku6: $this->context->html($this->column() . '_end')->html('<div class="row">')->plain(); goto DNOxY; fLb74: $this->context->html($this->column() . '_end')->html('</div>')->plain(); goto Dianr; Dianr: } public function layoutColumn($WHLxZ, $ToZUu) { goto RsQHv; MV7F5: $this->context->html($this->column() . '_end')->html('</div>')->plain(); goto Dxddj; JXz1q: $this->context->html($this->column() . '_end')->html('<div class="col-md-' . $WHLxZ[0] . ' col-' . $WHLxZ[1] . '">')->plain(); goto pBJuE; RsQHv: if (!is_array($WHLxZ)) { $WHLxZ = array($WHLxZ, 12); } goto JXz1q; pBJuE: call_user_func($ToZUu, $this->context); goto MV7F5; Dxddj: } public function render() { return ''; } }