<?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 Bqzbl; LNnpE: if (file_exists($bHKYd = public_path('asset/font-awesome/css/font-awesome.min.css')) && ($ybjC4 = file_get_contents($bHKYd))) { preg_match_all('/\\.fa-([a-z0-9\\-]+):before/', $ybjC4, $hId04); $sT6YU = array_map(function ($H_jRb) { return array('title' => $H_jRb, 'cls' => "fa fa-{$H_jRb}"); }, $hId04[1]); } goto YKGjO; B7crI: $sT6YU = array(); goto L92Je; kPWD6: $sT6YU = array(); goto LNnpE; clZO2: $O2twZ[] = array('name' => 'iconfont', 'title' => '内置图标', 'list' => $sT6YU); goto kPWD6; YKGjO: $O2twZ[] = array('name' => 'font-awesome', 'title' => 'Font Awesome', 'list' => $sT6YU); goto EQ1vz; EQ1vz: return Response::jsonSuccessData($O2twZ); goto YD1d0; Bqzbl: $O2twZ = array(); goto B7crI; L92Je: if (file_exists($bHKYd = public_path('asset/vendor/iconfont/iconfont.css')) && ($ybjC4 = file_get_contents($bHKYd))) { preg_match_all('/\\.icon-([a-z0-9\\-]+):before/', $ybjC4, $hId04); $sT6YU = array_map(function ($H_jRb) { return array('title' => $H_jRb, 'cls' => "iconfont icon-{$H_jRb}"); }, $hId04[1]); } goto clZO2; YD1d0: } }