<?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($ZZMEd, $rxS2C) { goto kjC6Y; bj0qK: throw new \Exception('StatusText error ' . join(',', $Rmgm_) . ' '); goto pKWi1; kjC6Y: $Rmgm_ = array('muted', 'warning', 'danger', 'success'); goto SeUkV; SeUkV: if (in_array($ZZMEd, $Rmgm_)) { goto Ov8js; BMf1G: return $ZceHo->render(); goto lIgsd; LPt2t: $ZceHo->text($rxS2C[0]); goto B5kfW; B5kfW: $ZceHo->type($ZZMEd); goto BMf1G; Ov8js: $ZceHo = new static(); goto LPt2t; lIgsd: } goto bj0qK; pKWi1: } public function render() { return '<span class="ub-status-text ub-text-' . $this->type . '">' . $this->text . '</span>'; } }