From e7fb33398b72da705459aa3f95a704fbf1fa7aea Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Sat, 28 Nov 2015 21:07:16 +0100 Subject: [PATCH] Added menu management (WIP) --- com.woltlab.wcf/acpMenu.xml | 8 +- com.woltlab.wcf/userGroupOption.xml | 8 + .../install/files/acp/templates/menuAdd.tpl | 58 ++++ .../files/acp/templates/menuItemAdd.tpl | 182 ++++++++++++ .../files/acp/templates/menuItemList.tpl | 69 +++++ .../install/files/acp/templates/menuList.tpl | 83 ++++++ .../files/lib/acp/form/MenuAddForm.class.php | 127 +++++++++ .../files/lib/acp/form/MenuEditForm.class.php | 101 +++++++ .../lib/acp/form/MenuItemAddForm.class.php | 259 ++++++++++++++++++ .../lib/acp/form/MenuItemEditForm.class.php | 128 +++++++++ .../lib/acp/page/MenuItemListPage.class.php | 88 ++++++ .../files/lib/acp/page/MenuListPage.class.php | 40 +++ .../files/lib/data/menu/Menu.class.php | 39 +++ .../files/lib/data/menu/MenuAction.class.php | 54 ++++ .../files/lib/data/menu/MenuEditor.class.php | 20 ++ .../files/lib/data/menu/MenuList.class.php | 20 ++ .../lib/data/menu/item/MenuItem.class.php | 52 ++++ .../data/menu/item/MenuItemAction.class.php | 64 +++++ .../data/menu/item/MenuItemEditor.class.php | 20 ++ .../lib/data/menu/item/MenuItemList.class.php | 20 ++ .../lib/data/menu/item/MenuItemNode.class.php | 182 ++++++++++++ .../data/menu/item/MenuItemNodeTree.class.php | 108 ++++++++ .../files/lib/data/page/PageAction.class.php | 2 +- wcfsetup/setup/db/install.sql | 29 ++ 24 files changed, 1759 insertions(+), 2 deletions(-) create mode 100644 wcfsetup/install/files/acp/templates/menuAdd.tpl create mode 100644 wcfsetup/install/files/acp/templates/menuItemAdd.tpl create mode 100644 wcfsetup/install/files/acp/templates/menuItemList.tpl create mode 100644 wcfsetup/install/files/acp/templates/menuList.tpl create mode 100644 wcfsetup/install/files/lib/acp/form/MenuAddForm.class.php create mode 100644 wcfsetup/install/files/lib/acp/form/MenuEditForm.class.php create mode 100644 wcfsetup/install/files/lib/acp/form/MenuItemAddForm.class.php create mode 100644 wcfsetup/install/files/lib/acp/form/MenuItemEditForm.class.php create mode 100644 wcfsetup/install/files/lib/acp/page/MenuItemListPage.class.php create mode 100644 wcfsetup/install/files/lib/acp/page/MenuListPage.class.php create mode 100644 wcfsetup/install/files/lib/data/menu/Menu.class.php create mode 100644 wcfsetup/install/files/lib/data/menu/MenuAction.class.php create mode 100644 wcfsetup/install/files/lib/data/menu/MenuEditor.class.php create mode 100644 wcfsetup/install/files/lib/data/menu/MenuList.class.php create mode 100644 wcfsetup/install/files/lib/data/menu/item/MenuItem.class.php create mode 100644 wcfsetup/install/files/lib/data/menu/item/MenuItemAction.class.php create mode 100644 wcfsetup/install/files/lib/data/menu/item/MenuItemEditor.class.php create mode 100644 wcfsetup/install/files/lib/data/menu/item/MenuItemList.class.php create mode 100644 wcfsetup/install/files/lib/data/menu/item/MenuItemNode.class.php create mode 100644 wcfsetup/install/files/lib/data/menu/item/MenuItemNodeTree.class.php diff --git a/com.woltlab.wcf/acpMenu.xml b/com.woltlab.wcf/acpMenu.xml index 003caf6926..9aa827115a 100644 --- a/com.woltlab.wcf/acpMenu.xml +++ b/com.woltlab.wcf/acpMenu.xml @@ -616,6 +616,12 @@ wcf.acp.menu.link.cms admin.content.cms.canManagePage - + + + + + wcf.acp.menu.link.cms + admin.content.cms.canManageMenu + diff --git a/com.woltlab.wcf/userGroupOption.xml b/com.woltlab.wcf/userGroupOption.xml index ddd2e3e283..463227ae4c 100644 --- a/com.woltlab.wcf/userGroupOption.xml +++ b/com.woltlab.wcf/userGroupOption.xml @@ -422,6 +422,14 @@ pdf]]> 1 + +