<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Nav\Type; class NavLink { public static function generate($qeYtF, $KJ3xr = array()) { goto qC6Gm; OomY3: return $qeYtF; goto RBM2C; qC6Gm: if (empty($qeYtF)) { return ''; } goto cs6W6; CqIpc: if (!empty($KJ3xr)) { $upVgk = array_map(function ($vPOhn) { return '{' . $vPOhn . '}'; }, array_keys($KJ3xr)); $qeYtF = str_replace($upVgk, array_values($KJ3xr), $qeYtF); } goto OomY3; cs6W6: if (is_array($qeYtF)) { $qeYtF = isset($qeYtF['link']) ? $qeYtF['link'] : null; } goto CqIpc; RBM2C: } }