<?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($znmpZ, $lUGZC = array()) { goto LGtS2; XQdmC: $this->layoutClosure = $lUGZC[0]; goto LFcC0; yEQ4F: $this->panelTitle = $znmpZ; goto XQdmC; LGtS2: parent::__construct(IdUtil::generate('LayoutPanel')); goto yEQ4F; LFcC0: } public function postSetup() { goto OBZh6; ZyXc2: call_user_func($this->layoutClosure, $this->context()); goto uKtv7; OBZh6: $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 ZyXc2; uKtv7: $this->context->html($this->column() . '_end')->html('</div></div>')->plain(); goto uMgb5; uMgb5: } public function render() { return ''; } }