<?php

/* ========================================================================
 * $Id: menu.aside.php 2457 2020-05-16 08:11:29Z onez $
 * 
 * Email: www@onez.cn
 * QQ: 6200103
 * HomePage: http://www.onez.cn
 * ========================================================================
 * Copyright 2016-2017 佳蓝科技.
 * 
 * ======================================================================== */

!defined('IN_ONEZ') && exit('Access Denied');
$Menu=array();
$_action=onez()->gp('$action');
if(strpos($_action,'/onez')!==false){#
  return $G['this']->onezapi('data','/menu.onez');
}elseif(strpos($_action,'/system/')!==false){#
  $Menu[]=array (
    'name' => '系统设置',
    'href' => '/system/setting.php',
    'icon' => 'fa fa-cog',
    'group' => '',
  );
  $Menu[]=array (
    'name' => '数据体系管理',
    'href' => '/system/datas/datas.php',
    'icon' => 'fa fa-sitemap',
    'group' => '',
  );
  $Menu[]=array (
    'name' => '用户体系管理',
    'href' => '/system/users/users.php',
    'icon' => 'fa fa-users',
    'group' => '',
  );
  $Menu[]=array (
    'name' => '微信账号管理',
    'href' => '/system/weixin/weixin.php',
    'icon' => 'fa fa-weixin',
    'group' => '',
  );
  $G['this']->slot('/system/menu.aside',$Menu);
}elseif(strpos($_action,'/design/')!==false){#设计模式
  $Menu[]=array (
    'name' => '高级选项',
    'href' => '',
    'icon' => '',
    'group' => '',
  );
  $Menu[]=array (
    'name' => '网站信息',
    'href' => '/design/design.php',
    'icon' => 'fa fa-dashboard',
    'group' => '',
  );
  $Menu[]=array (
    'name' => '基本设置',
    'href' => '/design/setting.php',
    'icon' => 'fa fa-cog',
    'group' => '',
  );
  $Menu[]=array (
    'name' => '应用市场',
    'href' => '/design/plugins/plugins.php',
    'icon' => 'fa fa-heart',
    'group' => '',
  );
  $G['this']->slot('/design/menu.aside',$Menu);
}else{#默认菜单
  $Menu[]=array (
    'name' => '首页',
    'href' => '/index.php',
    'icon' => 'fa fa-home',
    'group' => '',
  );
  $Menu[]=array (
    'name' => '网站管理',
    'href' => '/develop/sites/sites.php',
    'icon' => 'fa fa-sitemap',
    'group' => '',
  );
  $Menu[]=array (
    'name' => '用户管理',
    'href' => '/develop/members/members.php',
    'icon' => 'fa fa-user',
    'group' => '',
  );
  $Menu[]=array (
    'name' => '我的插件',
    'href' => '/develop/plugins/plugins.php',
    'icon' => 'fa fa-heart',
    'group' => '',
  );
  0 && $Menu[]=array (
    'name' => '团队管理',
    'href' => '/develop/teams/teams.php',
    'icon' => 'fa fa-group',
    'group' => '',
  );
  /*
  $Menu[]=array (
    'name' => '财务管理',
    'href' => '/develop/finance/finance.php',
    'icon' => 'fa fa-money',
    'group' => '',
  );
  */
  $G['this']->slot('/develop/menu.aside',$Menu);
}
return $Menu;
