<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Admin\Config; 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 Xrza_; EPQiO: foreach (ContentVerifyBiz::listAll() as $O9Vtg) { if (AdminPermission::permit($O9Vtg->verifyRule())) { $jVpQK = $O9Vtg->verifyCount(); if ($jVpQK > 0) { goto I7Kgg; fOCxh: $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 p3akJ; qKYQY: $WUQUn = $O9Vtg->title(); goto fOCxh; I7Kgg: $YFzpa = $O9Vtg->verifyUrl(); goto qKYQY; p3akJ: } } } goto M9k5f; mjTBs: foreach (self::$foot as $Z32UA) { if ($Z32UA instanceof \Closure) { call_user_func_array($Z32UA, array($j13Tr)); } } goto hhCS8; Xrza_: $O3_t6 = array(); goto EPQiO; M9k5f: if (!empty($O3_t6)) { $j13Tr->row(Box::make(join('', $O3_t6), '<i class="iconfont icon-details"></i> 待审核')); } goto mjTBs; hhCS8: } }