<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Admin\Widget; use ModStart\Admin\Auth\AdminPermission; use ModStart\Admin\Layout\AdminPage; use ModStart\Layout\Row; use ModStart\Widget\Box; use Module\Vendor\Provider\ContentVerify\ContentVerifyBiz; class AdminWidgetDashboard { private static $icon = array(); private static $foot = array(); public static function registerTodo($eNZ5d) { } public static function callTodo(Row $q0jG3) { } public static function registerIcon($eNZ5d) { self::$icon[] = $eNZ5d; } public static function callIcon(Row $q0jG3) { foreach (self::$icon as $Z32UA) { call_user_func_array($Z32UA, array($q0jG3)); } } public static function registerFoot($eNZ5d) { self::$foot[] = $eNZ5d; } public static function call(AdminPage $j13Tr) { goto zvhUX; bhi6g: foreach (self::$foot as $Z32UA) { if ($Z32UA instanceof \Closure) { call_user_func_array($Z32UA, array($j13Tr)); } } goto hhMJY; M4pSC: if (!empty($O3_t6)) { $j13Tr->row(Box::make(join('', $O3_t6), '<i class="iconfont icon-details"></i> 待审核')); } goto bhi6g; X1IOY: foreach (ContentVerifyBiz::listAll() as $O9Vtg) { if (AdminPermission::permit($O9Vtg->verifyRule())) { $jVpQK = $O9Vtg->verifyCount(); if ($jVpQK > 0) { goto pnigS; vOGEM: $O3_t6[] = "<a class='tw-mr-2 tw-mb-2 tw-inline-block tw-bg-yellow-100 tw-text-yellow-600 tw-py-1 tw-px-2 tw-rounded-2xl'\n                                     href='{$YFzpa}' data-tab-open data-tab-title='{$WUQUn}'>{$WUQUn} <span class='ub-text-danger tw-font-bold'>{$jVpQK}</span> 条</a>"; goto p7Duf; pnigS: $YFzpa = $O9Vtg->verifyUrl(); goto TdXBk; TdXBk: $WUQUn = $O9Vtg->title(); goto vOGEM; p7Duf: } } } goto M4pSC; zvhUX: $O3_t6 = array(); goto X1IOY; hhMJY: } }