<?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($gFSnq) { } public static function callTodo(Row $B1vjt) { } public static function registerIcon($gFSnq) { self::$icon[] = $gFSnq; } public static function callIcon(Row $B1vjt) { foreach (self::$icon as $FSL7c) { call_user_func_array($FSL7c, array($B1vjt)); } } public static function registerFoot($gFSnq) { self::$foot[] = $gFSnq; } public static function call(AdminPage $WLCMC) { goto r8amC; BqmDi: foreach (ContentVerifyBiz::listAll() as $kHDkQ) { if (AdminPermission::permit($kHDkQ->verifyRule())) { $xXifJ = $kHDkQ->verifyCount(); if ($xXifJ > 0) { goto T2ZHe; T2ZHe: $ucbhG = $kHDkQ->verifyUrl(); goto sj3mP; sj3mP: $SLZ1j = $kHDkQ->title(); goto hPcP8; hPcP8: $OZWEP[] = "<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='{$ucbhG}' data-tab-open data-tab-title='{$SLZ1j}'>{$SLZ1j} <span class='ub-text-danger tw-font-bold'>{$xXifJ}</span> 条</a>"; goto Lrj2I; Lrj2I: } } } goto AWwcr; AWwcr: if (!empty($OZWEP)) { $WLCMC->row(Box::make(join('', $OZWEP), '<i class="iconfont icon-details"></i> 待审核')); } goto IjLAf; IjLAf: foreach (self::$foot as $FSL7c) { if ($FSL7c instanceof \Closure) { call_user_func_array($FSL7c, array($WLCMC)); } } goto qWRkI; r8amC: $OZWEP = array(); goto BqmDi; qWRkI: } }