<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Widget; class StatusText extends AbstractWidget { public static function getAssets() { return array('style' => '.ub-status-text{display:inline-block;margin-right:0.5rem;}'); } public static function __callStatic($XggBq, $lUGZC) { goto uKRZm; uKRZm: $T9vBG = array('muted', 'warning', 'danger', 'success'); goto gLexs; GSeMr: throw new \Exception('StatusText error ' . join(',', $T9vBG) . ' '); goto zyxei; gLexs: if (in_array($XggBq, $T9vBG)) { goto FWfGz; jNVMG: return $IEFeS->render(); goto N2IBn; Kc3rd: $IEFeS->text($lUGZC[0]); goto XpiO3; FWfGz: $IEFeS = new static(); goto Kc3rd; XpiO3: $IEFeS->type($XggBq); goto jNVMG; N2IBn: } goto GSeMr; zyxei: } public function render() { return '<span class="ub-status-text ub-text-' . $this->type . '">' . $this->text . '</span>'; } }