<?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($c6VKG, $lLyBI) { goto U4mSk; BqQrC: throw new \Exception('StatusText error ' . join(',', $YoRvD) . ' '); goto HtogU; U4mSk: $YoRvD = array('muted', 'warning', 'danger', 'success'); goto ujbja; ujbja: if (in_array($c6VKG, $YoRvD)) { goto LU2me; Qn8Qw: return $SKGnU->render(); goto q73tq; LU2me: $SKGnU = new static(); goto s62u3; s62u3: $SKGnU->text($lLyBI[0]); goto Z0qPc; Z0qPc: $SKGnU->type($c6VKG); goto Qn8Qw; q73tq: } goto BqQrC; HtogU: } public function render() { return '<span class="ub-status-text ub-text-' . $this->type . '">' . $this->text . '</span>'; } }