<?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($rPkIY, $HPXJC) { goto ej2jX; ej2jX: $XVuOQ = array('muted', 'warning', 'danger', 'success'); goto lkZow; lkZow: if (in_array($rPkIY, $XVuOQ)) { goto NnAdP; KuLG0: $WwLCq->type($rPkIY); goto L0N_w; L0N_w: return $WwLCq->render(); goto BOVmZ; NnAdP: $WwLCq = new static(); goto MIqoa; MIqoa: $WwLCq->text($HPXJC[0]); goto KuLG0; BOVmZ: } goto rDnm3; rDnm3: throw new \Exception('StatusText error ' . join(',', $XVuOQ) . ' '); goto FjGt7; FjGt7: } public function render() { return '<span class="ub-status-text ub-text-' . $this->type . '">' . $this->text . '</span>'; } }