<?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($IJdfw, $CUZy6 = array()) { goto Naob1; u1lZ3: $this->panelTitle = $IJdfw; goto flxr2; flxr2: $this->layoutClosure = $CUZy6[0]; goto Nk0YC; Naob1: parent::__construct(IdUtil::generate('LayoutPanel')); goto u1lZ3; Nk0YC: } public function postSetup() { goto OlEvA; OlEvA: $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 wq0xP; wq0xP: call_user_func($this->layoutClosure, $this->context()); goto w3vCq; w3vCq: $this->context->html($this->column() . '_end')->html('</div></div>')->plain(); goto K_mrr; K_mrr: } public function render() { return ''; } }