<?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($TUuqF, $MVaFK) { goto ypdTp; ypdTp: $U0Xav = array('muted', 'warning', 'danger', 'success'); goto nTS7G; nTS7G: if (in_array($TUuqF, $U0Xav)) { goto ILaST; D165B: $xU_gb->text($MVaFK[0]); goto Of6My; ILaST: $xU_gb = new static(); goto D165B; gNrI0: return $xU_gb->render(); goto ibCWU; Of6My: $xU_gb->type($TUuqF); goto gNrI0; ibCWU: } goto yMAhv; yMAhv: throw new \Exception('StatusText error ' . join(',', $U0Xav) . ' '); goto cBJul; cBJul: } public function render() { return '<span class="ub-status-text ub-text-' . $this->type . '">' . $this->text . '</span>'; } }