<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Member\Config; use Illuminate\Support\Str; use ModStart\Core\Util\RenderUtil; class MemberNavMenu { private static $menu = array(); public static function register($hQj_u) { self::$menu[] = $hQj_u; } public static function get() { goto D7M6v; Z8nCI: foreach (self::$menu as $FSL7c) { if ($FSL7c instanceof \Closure) { $FSL7c = call_user_func($FSL7c); } $hQj_u = array_merge($hQj_u, $FSL7c); } goto tV78X; D7M6v: $hQj_u = array(); goto Z8nCI; tV78X: return $hQj_u; goto fk_Ul; fk_Ul: } public static function render() { goto K7ic3; GMPzZ: return RenderUtil::view('module::Member.View.inc.memberNavMenu', array('items' => $WvJLs)); goto AOlTU; K7ic3: $WvJLs = self::get(); goto rzXrd; rzXrd: if (empty($WvJLs)) { return ''; } goto GMPzZ; AOlTU: } }