fetch('#project-url@href', function() { return Dever::load('manage/menu.link#project');//这里可以改写成Dever::object('manage/menu.link')->project }) # 日志的链接 ->fetch('#log-url@href', function() { return Dever::load('manage/menu.link#log'); }) */ ->fetch('#manage-name', 'manage/auth.info#username', 'none') ->fetch('#manage-group', 'manage/auth.info#rolename', 'none') ->fetch(array('.admin-manage@style', 0), 'manage/auth.manage') ->fetch(array('.admin-manage@style', 1), 'manage/auth.manage') # 另外一种形式 # 退出的链接 //->fetch('#logout-url@href', 'manage/menu.link#logout') # 首页的链接 ->fetch('#index-url@href', 'manage/menu.link#index') # banner ->fetch('.banner', 'manage/database.banner', 'none') ->fetch('.topbar@style', '<{Dever::load("manage/database.banner") ? "height:70px;border-top:1px solid #eeeeee;" : "display:none;"}>') ->fetch('.side-menu@style', '<{Dever::load("manage/database.banner") ? "top:120px;" : ""}>') # 项目列表 ->fetch ( '.project-list', 'manage/menu.left', array ( 'a' => array ( 'data-target' => '.<{$v.key}>-menu', 'class++' => '<{if(Dever::input("menu") != $v.key && $v.type != 1):?> collapsed<{endif;}> <{if(Dever::input("menu") == $v.key):?> active<{endif;}>', ), '.project-name' => array ( 'html' => '<{$v.name}>', ), 'i' => array ( 'class' => '<{$v.icon ? $v.icon : "glyphicon glyphicon-folder-close"}>', ), /* ul的内容还可以这样写,但是拼写太痛苦 'ul' => array ( 'id' => '#collapse-nav-<{$k}>', 'html' => '<{foreach($v["child"] as $i => $j){echo \'