<?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($ML9Et) { } public static function callTodo(Row $Kqhka) { } public static function registerIcon($ML9Et) { self::$icon[] = $ML9Et; } public static function callIcon(Row $Kqhka) { foreach (self::$icon as $YaV4m) { call_user_func_array($YaV4m, array($Kqhka)); } } public static function registerFoot($ML9Et) { self::$foot[] = $ML9Et; } public static function call(AdminPage $iXUoW) { goto PPvcH; ggUsg: if (!empty($I84hM)) { $iXUoW->row(Box::make(join('', $I84hM), '<i class="iconfont icon-details"></i> 待审核')); } goto AFKwj; PPvcH: $I84hM = array(); goto Fu8Bc; Fu8Bc: foreach (ContentVerifyBiz::listAll() as $tDnAb) { if (AdminPermission::permit($tDnAb->verifyRule())) { $uGlTd = $tDnAb->verifyCount(); if ($uGlTd > 0) { goto VVdFu; VVdFu: $rcuj4 = $tDnAb->verifyUrl(); goto qAsMI; M5xg0: $I84hM[] = "<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='{$rcuj4}' data-tab-open data-tab-title='{$H_jRb}'>{$H_jRb} <span class='ub-text-danger tw-font-bold'>{$uGlTd}</span> 条</a>"; goto Ggtge; qAsMI: $H_jRb = $tDnAb->title(); goto M5xg0; Ggtge: } } } goto ggUsg; AFKwj: foreach (self::$foot as $YaV4m) { if ($YaV4m instanceof \Closure) { call_user_func_array($YaV4m, array($iXUoW)); } } goto YAx3i; YAx3i: } }