<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Layout; use ModStart\Core\Util\IdUtil; use ModStart\Field\AbstractField; class LayoutPanel extends AbstractField { protected $isLayoutField = true; private $layoutClosure = null; private $panelTitle; public function __construct($g3XgV, $g59Hh = array()) { goto t5Fou; zCOI0: $this->panelTitle = $g3XgV; goto SV4Ja; t5Fou: parent::__construct(IdUtil::generate('LayoutPanel')); goto zCOI0; SV4Ja: $this->layoutClosure = $g59Hh[0]; goto L6u1_; L6u1_: } public function postSetup() { goto luyKy; NoBke: call_user_func($this->layoutClosure, $this->context()); goto YcIJo; YcIJo: $this->context->html($this->column() . '_end')->html('</div></div>')->plain(); goto tf9ts; luyKy: $this->context->html($this->column() . '_start')->html('<div class="ub-panel"><div class="head"><div class="title">' . $this->panelTitle . '</div></div><div class="body">')->plain(); goto NoBke; tf9ts: } public function render() { return ''; } }