<?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($R_vdm) { } public static function callTodo(Row $AO3Sv) { } public static function registerIcon($R_vdm) { self::$icon[] = $R_vdm; } public static function callIcon(Row $AO3Sv) { foreach (self::$icon as $jIWZA) { call_user_func_array($jIWZA, array($AO3Sv)); } } public static function registerFoot($R_vdm) { self::$foot[] = $R_vdm; } public static function call(AdminPage $JcqUq) { goto aIzzE; JdIwG: foreach (self::$foot as $jIWZA) { if ($jIWZA instanceof \Closure) { call_user_func_array($jIWZA, array($JcqUq)); } } goto NF_nJ; AaVqG: if (!empty($ST81z)) { $JcqUq->row(Box::make(join('', $ST81z), '<i class="iconfont icon-details"></i> 待审核')); } goto JdIwG; aIzzE: $ST81z = array(); goto vH7Pj; vH7Pj: foreach (ContentVerifyBiz::listAll() as $oMd7I) { if (AdminPermission::permit($oMd7I->verifyRule())) { $oQeFj = $oMd7I->verifyCount(); if ($oQeFj > 0) { goto aixCn; FiRSN: $ST81z[] = "<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='{$mZfPT}' data-tab-open data-tab-title='{$yP0KF}'>{$yP0KF} <span class='ub-text-danger tw-font-bold'>{$oQeFj}</span> 条</a>"; goto QPQny; aixCn: $mZfPT = $oMd7I->verifyUrl(); goto p450X; p450X: $yP0KF = $oMd7I->title(); goto FiRSN; QPQny: } } } goto AaVqG; NF_nJ: } }