<?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($sQIr6, $g59Hh) { goto FTQ3c; A63D9: throw new \Exception('StatusText error ' . join(',', $KDM3X) . ' '); goto nYcNH; FTQ3c: $KDM3X = array('muted', 'warning', 'danger', 'success'); goto hiR4t; hiR4t: if (in_array($sQIr6, $KDM3X)) { goto qdRPc; qdRPc: $qRCHN = new static(); goto OoPKa; b36Vk: return $qRCHN->render(); goto vGzIt; tjrHw: $qRCHN->type($sQIr6); goto b36Vk; OoPKa: $qRCHN->text($g59Hh[0]); goto tjrHw; vGzIt: } goto A63D9; nYcNH: } public function render() { return '<span class="ub-status-text ub-text-' . $this->type . '">' . $this->text . '</span>'; } }