🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
## 使用方法 ### 添加二级菜单字段 `/usr/themes/handsome/component/aside.php`第87行左右`$asideItemsOutput = "";`后面添加如下内容: ``` $asideSecondItemsOutput = ""; ``` ### 修改二级菜单字段判断语句 将`101-106行左右`的下列字段: ``` if (@$itemTarget){ $linkStatus = 'target="'.$itemTarget.'"'; }else{ $linkStatus = 'target="_blank"'; } if (trim($itemFeather)!==""){ ``` 替换为 ``` if (strtoupper($itemStatus) === 'SEC'){ if (trim($itemFeather)!==""){ $asideSecondItemsOutput .= '<li> <a '.$linkStatus.' href="'.$itemLink.'" class ="auto"><span class="nav-icon"><i data-feather="'.$itemFeather.'"></i></span><span>'._mt($itemName).'</span></a></li>'; }else if (trim($itemClass)!==""){ $asideSecondItemsOutput .= '<li> <a '.$linkStatus.' href="'.$itemLink.'" class ="auto"><span class="nav-icon"><i class="'.$itemClass.'"></i></span><span>'._mt($itemName).'</span></a></li>'; } } else if (trim($itemFeather)!==""){ ``` ### 添加二级菜单输出语句 在`125行左右`的`<?php if (@!in_array('component',$this->options->asideSetting)): ?>`语句`上面`添加下列代码: ``` <?php if (@$asideSecondItemsOutput): ?> <li><a class="auto"><span class="pull-right text-muted"> <i class="fontello icon-fw fontello-angle-right text"></i> <i class="fontello icon-fw fontello-angle-down text-active"></i> </span> <i class="glyphicon glyphicon-new-window"></i><span><?php _me("外站工具"); ?></span></a><!-- 默认图标与名称,可以随意修改 --> <ul class="nav nav-sub dk"><li class="nav-sub-header"><a data-no-instant><span><?php _me("外站工具"); ?></span></a></li> <?php echo @$asideSecondItemsOutput ?> </ul></li> <?php endif; ?> ``` ## 如何使用? ``` {"name":"归档","class":"glyphicon glyphicon-tasks","link":"https://你的域名/","target":"_self"}, {"name":"网页版","class":"glyphicon glyphicon-cloud-download","link":"https://你的域名/","status":"sec"}, {"name":"百度盘提取码","class":"glyphicon glyphicon-link","link":"https://你的域名/","status":"sec"}, {"name":"磁链转换","class":"glyphicon glyphicon-magnet","link":"https://你的域名/","status":"sec"}, {"name":"局域网传文件","class":"glyphicon glyphicon-transfer","link":"https://你的域名/","status":"sec"}, {"name":"图床","class":"glyphicon glyphicon-picture","link":"https://你的域名/","status":"sec"}, {"name":"音乐解锁","feather":"music","link":"https://你的域名/","status":"sec"}, {"name":"网盘","feather":"hard-drive","link":"https://你的域名/","status":"sec"} ``` ***** ### 怕麻烦可以跳过上面 在124行下面,即下面代码下面: ``` <!-- /主页 --> <?php endif; ?> <?php echo @$asideItemsOutput ?> ``` 添加下列代码: ~~~ <!--折叠菜单--> <li> <a class="auto"> <span class="pull-right text-muted"> <i class="fontello icon-fw fontello-angle-right text"></i> <i class="fontello icon-fw fontello-angle-down text-active"></i> </span> <!--下方为菜单栏图标--> <i class="glyphicon glyphicon-phone"></i> <span> <?php _me( "小游戏"); ?></span> </a> <ul class="nav nav-sub dk"> <li class="nav-sub-header"> <a data-no-instant> <span> <?php _me( "小游戏"); ?></span> </a> </li> <li> <a href="https://www.cooyf.com/mikutap/" class="auto" target="_blank"> <span class="nav-icon"> <!--下方为小栏目图标--> <i data-feather="slack"></i> </span> <span>mikutap</span></a> </li> </ul> </li> <!--/折叠菜单----> ~~~