diff --git a/themes/webdirectory/views/site/index.php b/themes/webdirectory/views/site/index.php
index dcfb6ba..ea901b8 100644
--- a/themes/webdirectory/views/site/index.php
+++ b/themes/webdirectory/views/site/index.php
@@ -1,76 +1,78 @@
{$menu['directory']}
+ foreach($viewData['menus'] as $menu) {
+ $link = urlencode($menu['directory']);
+ echo <<{$menu['directory']}
eof;
- }
+ }
}
?>
- $item) {
- //跳过一级目录下的文件
- if (!empty($item['filename'])) {continue;}
+ $item) {
+ //跳过一级目录下的文件
+ if (!empty($item['filename'])) {continue;}
- echo <<
- {$item['directory']}
+ echo <<
+ {$item['directory']}
eof;
- //二级目录
- if (!empty($item['directories'])) {
- foreach($item['directories'] as $fid => $dir) {
- echo <<
- - {$dir['directory']}
+ //二级目录
+ if (!empty($item['directories'])) {
+ foreach($item['directories'] as $fid => $dir) {
+ echo <<
+ - {$dir['directory']}
eof;
- //URL链接
- if (!empty($dir['files'])) {
- foreach($dir['files'] as $urlItem) {
- echo <<
-
- {$urlItem['shortcut']['name']}
- {$urlItem['shortcut']['url']}
-
-
+ //URL链接
+ if (!empty($dir['files'])) {
+ foreach($dir['files'] as $urlItem) {
+ if (empty($urlItem['shortcut'])) {continue;}
+ echo <<