<?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($FOLBJ) { parent::__construct(IdUtil::generate('LayoutGrid')); $this->layoutClosure = $FOLBJ; } public function postSetup() { goto gDvnP; cBpy9: call_user_func($this->layoutClosure, $this); goto TB41i; gDvnP: $this->context->html($this->column() . '_end')->html('<div class="row">')->plain(); goto cBpy9; TB41i: $this->context->html($this->column() . '_end')->html('</div>')->plain(); goto yE0ng; yE0ng: } public function layoutColumn($eZvFb, $FOLBJ) { goto swyw4; kWpUk: call_user_func($FOLBJ, $this->context); goto tUY8F; tUY8F: $this->context->html($this->column() . '_end')->html('</div>')->plain(); goto JA7fm; rjdlZ: $this->context->html($this->column() . '_end')->html('<div class="col-md-' . $eZvFb[0] . ' col-' . $eZvFb[1] . '">')->plain(); goto kWpUk; swyw4: if (!is_array($eZvFb)) { $eZvFb = array($eZvFb, 12); } goto rjdlZ; JA7fm: } public function render() { return ''; } }