<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Admin\Controller; use Illuminate\Routing\Controller; use ModStart\Core\Input\Response; class WidgetIconController extends Controller { public static $PermitMethodMap = array('*' => '*'); public function index() { goto LPZig; dKVnE: $gZCse[] = array('title' => 'Font Awesome', 'list' => $ymJ2H); goto rfX2O; Qaqls: if (file_exists($SgkW3 = public_path('asset/font-awesome/css/font-awesome.min.css')) && ($OfwYj = file_get_contents($SgkW3))) { preg_match_all('/\\.fa-([a-z0-9\\-]+):before/', $OfwYj, $QuDiu); $ymJ2H = array_map(function ($oa5ye) { return array('title' => $oa5ye, 'cls' => "fa fa-{$oa5ye}"); }, $QuDiu[1]); } goto dKVnE; MuGfK: $ymJ2H = array(); goto Qaqls; cWjQi: $gZCse[] = array('title' => '内置图标', 'list' => $ymJ2H); goto MuGfK; LPZig: $gZCse = array(); goto Ews7P; Ews7P: $ymJ2H = array(); goto XDGE2; XDGE2: if (file_exists($SgkW3 = public_path('asset/vendor/iconfont/iconfont.css')) && ($OfwYj = file_get_contents($SgkW3))) { preg_match_all('/\\.icon-([a-z0-9\\-]+):before/', $OfwYj, $QuDiu); $ymJ2H = array_map(function ($oa5ye) { return array('title' => $oa5ye, 'cls' => "iconfont icon-{$oa5ye}"); }, $QuDiu[1]); } goto cWjQi; rfX2O: return Response::jsonSuccessData($gZCse); goto QjlXj; QjlXj: } }