<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Admin\Controller; use Illuminate\Routing\Controller; use ModStart\Core\Input\Response; class WidgetIconController extends Controller { public function index() { goto JapiR; dv9Ry: $L4jq2 = array(); goto MEg_F; kNb00: $mxM3u[] = array('title' => '内置图标', 'list' => $L4jq2); goto dv9Ry; LJZmq: return Response::jsonSuccessData($mxM3u); goto WYlfE; wq2vH: $mxM3u[] = array('title' => 'Font Awesome', 'list' => $L4jq2); goto LJZmq; i70rm: $L4jq2 = array(); goto ARO82; ARO82: if (file_exists($SEC4E = public_path('asset/vendor/iconfont/iconfont.css')) && ($iiYqe = file_get_contents($SEC4E))) { preg_match_all('/\\.icon-([a-z0-9\\-]+):before/', $iiYqe, $KBRHO); $L4jq2 = array_map(function ($q7mn_) { return array('title' => $q7mn_, 'cls' => "iconfont icon-{$q7mn_}"); }, $KBRHO[1]); } goto kNb00; MEg_F: if (file_exists($SEC4E = public_path('asset/font-awesome/css/font-awesome.min.css')) && ($iiYqe = file_get_contents($SEC4E))) { preg_match_all('/\\.fa-([a-z0-9\\-]+):before/', $iiYqe, $KBRHO); $L4jq2 = array_map(function ($q7mn_) { return array('title' => $q7mn_, 'cls' => "fa fa-{$q7mn_}"); }, $KBRHO[1]); } goto wq2vH; JapiR: $mxM3u = array(); goto i70rm; WYlfE: } }