<?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($JPoXh) { parent::__construct(IdUtil::generate('LayoutGrid')); $this->layoutClosure = $JPoXh; } public function postSetup() { goto uPqLL; uPqLL: $this->context->html($this->column() . '_end')->html('<div class="row">')->plain(); goto Z4kNU; wHERZ: $this->context->html($this->column() . '_end')->html('</div>')->plain(); goto nT466; Z4kNU: call_user_func($this->layoutClosure, $this); goto wHERZ; nT466: } public function layoutColumn($GinAB, $JPoXh) { goto NLADn; p1jhI: call_user_func($JPoXh, $this->context); goto RdF34; NLADn: if (!is_array($GinAB)) { $GinAB = array($GinAB, 12); } goto Ot1Kb; Ot1Kb: $this->context->html($this->column() . '_end')->html('<div class="col-md-' . $GinAB[0] . ' col-' . $GinAB[1] . '">')->plain(); goto p1jhI; RdF34: $this->context->html($this->column() . '_end')->html('</div>')->plain(); goto AgqaW; AgqaW: } public function render() { return ''; } }