<?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($rDg26) { parent::__construct(IdUtil::generate('LayoutGrid')); $this->layoutClosure = $rDg26; } public function postSetup() { goto UCtdL; Qo02R: $this->context->html($this->column() . '_end')->html('</div>')->plain(); goto h_sgX; tlZL9: call_user_func($this->layoutClosure, $this); goto Qo02R; UCtdL: $this->context->html($this->column() . '_end')->html('<div class="row">')->plain(); goto tlZL9; h_sgX: } public function layoutColumn($PT_2C, $rDg26) { goto E5xdZ; xLh5m: $this->context->html($this->column() . '_end')->html('<div class="col-md-' . $PT_2C[0] . ' col-' . $PT_2C[1] . '">')->plain(); goto tUG6O; tUG6O: call_user_func($rDg26, $this->context); goto Vn36s; E5xdZ: if (!is_array($PT_2C)) { $PT_2C = array($PT_2C, 12); } goto xLh5m; Vn36s: $this->context->html($this->column() . '_end')->html('</div>')->plain(); goto E20xO; E20xO: } public function render() { return ''; } }