<?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($x9F2U) { } public static function callTodo(Row $L2swt) { } public static function registerIcon($x9F2U) { self::$icon[] = $x9F2U; } public static function callIcon(Row $L2swt) { foreach (self::$icon as $zEBpl) { call_user_func_array($zEBpl, array($L2swt)); } } public static function registerFoot($x9F2U) { self::$foot[] = $x9F2U; } public static function call(AdminPage $mQ9Jw) { goto V1GPk; V1GPk: $hqDoV = array(); goto mIlsJ; mIlsJ: foreach (ContentVerifyBiz::listAll() as $tcA2a) { if (AdminPermission::permit($tcA2a->verifyRule())) { $kQuEY = $tcA2a->verifyCount(); if ($kQuEY > 0) { goto NfZLq; gFAvX: $BRqP6 = $tcA2a->title(); goto d2680; NfZLq: $HheJC = $tcA2a->verifyUrl(); goto gFAvX; d2680: $hqDoV[] = "<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='{$HheJC}' data-tab-open data-tab-title='{$BRqP6}'>{$BRqP6} <span class='ub-text-danger tw-font-bold'>{$kQuEY}</span> 条</a>"; goto ybnjA; ybnjA: } } } goto EiKCB; KVvMF: foreach (self::$foot as $zEBpl) { if ($zEBpl instanceof \Closure) { call_user_func_array($zEBpl, array($mQ9Jw)); } } goto qWJZ9; EiKCB: if (!empty($hqDoV)) { $mQ9Jw->row(Box::make(join('', $hqDoV), '<i class="iconfont icon-details"></i> 待审核')); } goto KVvMF; qWJZ9: } }