<?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($L4owo, $nvZ9A) { goto VYkM2; nWCln: if (in_array($L4owo, $Ai6oc)) { goto C4kxq; zBAPc: $fNHhl->type($L4owo); goto RQDGB; C4kxq: $fNHhl = new static(); goto xMW22; xMW22: $fNHhl->text($nvZ9A[0]); goto zBAPc; RQDGB: return $fNHhl->render(); goto HpzIc; HpzIc: } goto XC59Y; XC59Y: throw new \Exception('StatusText error ' . join(',', $Ai6oc) . ' '); goto bE74V; VYkM2: $Ai6oc = array('muted', 'warning', 'danger', 'success'); goto nWCln; bE74V: } public function render() { return '<span class="ub-status-text ub-text-' . $this->type . '">' . $this->text . '</span>'; } }