<?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($glP3G, $bY7Wp) { goto vZaBZ; vZaBZ: $DslRv = array('muted', 'warning', 'danger', 'success'); goto TtItC; TtItC: if (in_array($glP3G, $DslRv)) { goto nsm56; nsm56: $bMeyO = new static(); goto be_fn; be_fn: $bMeyO->text($bY7Wp[0]); goto r5f7F; r5f7F: $bMeyO->type($glP3G); goto qXpqm; qXpqm: return $bMeyO->render(); goto xy6Wd; xy6Wd: } goto sM3KN; sM3KN: throw new \Exception('StatusText error ' . join(',', $DslRv) . ' '); goto NJSXv; NJSXv: } public function render() { return '<span class="ub-status-text ub-text-' . $this->type . '">' . $this->text . '</span>'; } }