<?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($Cq64_, $RSGSj = array()) { goto sWRGR; u4FzC: $this->layoutClosure = $RSGSj[0]; goto NHpc7; sWRGR: parent::__construct(IdUtil::generate('LayoutPanel')); goto YO4Hu; YO4Hu: $this->panelTitle = $Cq64_; goto u4FzC; NHpc7: } public function postSetup() { goto ht4gZ; s64UH: call_user_func($this->layoutClosure, $this->context()); goto ejm7l; ejm7l: $this->context->html($this->column() . '_end')->html('</div></div>')->plain(); goto K468B; ht4gZ: $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 s64UH; K468B: } public function render() { return ''; } }