<?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($f0dxO, $RSGSj) { goto MybPA; Sa8_1: if (in_array($f0dxO, $eElQG)) { goto zCXZH; FDG5h: $BoHUj->text($RSGSj[0]); goto uIW8L; uIW8L: $BoHUj->type($f0dxO); goto FJJsq; zCXZH: $BoHUj = new static(); goto FDG5h; FJJsq: return $BoHUj->render(); goto kCrka; kCrka: } goto rPcPa; MybPA: $eElQG = array('muted', 'warning', 'danger', 'success'); goto Sa8_1; rPcPa: throw new \Exception('StatusText error ' . join(',', $eElQG) . ' '); goto AFcAU; AFcAU: } public function render() { return '<span class="ub-status-text ub-text-' . $this->type . '">' . $this->text . '</span>'; } }