<?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($wu3LD) { } public static function callTodo(Row $BlSOm) { } public static function registerIcon($wu3LD) { self::$icon[] = $wu3LD; } public static function callIcon(Row $BlSOm) { foreach (self::$icon as $kHxHl) { call_user_func_array($kHxHl, array($BlSOm)); } } public static function registerFoot($wu3LD) { self::$foot[] = $wu3LD; } public static function call(AdminPage $hpBip) { goto qufKD; dRsQx: foreach (self::$foot as $kHxHl) { if ($kHxHl instanceof \Closure) { call_user_func_array($kHxHl, array($hpBip)); } } goto Ygsgq; V0sMV: if (!empty($kP9FC)) { $hpBip->row(Box::make(join('', $kP9FC), '<i class="iconfont icon-details"></i> 待审核')); } goto dRsQx; CWtNd: foreach (ContentVerifyBiz::listAll() as $yzKqK) { if (AdminPermission::permit($yzKqK->verifyRule())) { $llekm = $yzKqK->verifyCount(); if ($llekm > 0) { goto RdTQr; pQLoZ: $kP9FC[] = "<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='{$MyYDh}' data-tab-open data-tab-title='{$oa5ye}'>{$oa5ye} <span class='ub-text-danger tw-font-bold'>{$llekm}</span> 条</a>"; goto IADFN; RdTQr: $MyYDh = $yzKqK->verifyUrl(); goto pSd1j; pSd1j: $oa5ye = $yzKqK->title(); goto pQLoZ; IADFN: } } } goto V0sMV; qufKD: $kP9FC = array(); goto CWtNd; Ygsgq: } }