<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Nav\Type; class NavLink { public static function generate($sWp82, $EPwwc = array()) { goto xGzBe; N2OpK: if (!empty($EPwwc)) { $zDRuJ = array_map(function ($Z32UA) { return '{' . $Z32UA . '}'; }, array_keys($EPwwc)); $sWp82 = str_replace($zDRuJ, array_values($EPwwc), $sWp82); } goto ylH7s; kVRfL: if (is_array($sWp82)) { $sWp82 = isset($sWp82['link']) ? $sWp82['link'] : null; } goto N2OpK; xGzBe: if (empty($sWp82)) { return ''; } goto kVRfL; ylH7s: return $sWp82; goto eqIhS; eqIhS: } }