<?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($L1g9F, $CUZy6) { goto eG7Kw; eG7Kw: $GdddG = array('muted', 'warning', 'danger', 'success'); goto KAyIc; KAyIc: if (in_array($L1g9F, $GdddG)) { goto sjkvv; vM1pS: $o5T8w->text($CUZy6[0]); goto ncVoT; sjkvv: $o5T8w = new static(); goto vM1pS; ncVoT: $o5T8w->type($L1g9F); goto v8uz4; v8uz4: return $o5T8w->render(); goto WzssR; WzssR: } goto qq2FA; qq2FA: throw new \Exception('StatusText error ' . join(',', $GdddG) . ' '); goto TksJZ; TksJZ: } public function render() { return '<span class="ub-status-text ub-text-' . $this->type . '">' . $this->text . '</span>'; } }