<?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($yP7h6, $HPXJC = array()) { goto NcrSS; SYfva: $this->panelTitle = $yP7h6; goto f7QfV; NcrSS: parent::__construct(IdUtil::generate('LayoutPanel')); goto SYfva; f7QfV: $this->layoutClosure = $HPXJC[0]; goto KgWPp; KgWPp: } public function postSetup() { goto Gm4hY; Qkeen: $this->context->html($this->column() . '_end')->html('</div></div>')->plain(); goto bplnC; tmG6k: call_user_func($this->layoutClosure, $this->context()); goto Qkeen; Gm4hY: $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 tmG6k; bplnC: } public function render() { return ''; } }