<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Field; use ModStart\Core\Util\ConvertUtil; class Html extends AbstractField { protected $html = ''; protected $plain = false; protected $isLayoutField = true; public function html($B8MP1) { $this->html = $B8MP1; return $this; } public function plain() { $this->plain = true; return $this; } public function render() { goto PNoCk; PNoCk: if ($this->html instanceof \Closure) { $this->html = ConvertUtil::render($this->html->call($this->variables(), $this->context)); } goto qYUpe; OgLnG: return "<div class=\"line\">\n    <div class=\"label\">\n        {{$lPHIy}}:\n    </div>\n    <div class=\"field\">\n        {$this->html}\n    </div>\n</div>"; goto jhbIN; qYUpe: if ($this->plain) { return $this->html; } goto OgLnG; jhbIN: } }