From d121de81bf5ab1e27b8d00451f796008577ee46a Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Sun, 29 Nov 2015 18:21:09 +0100 Subject: [PATCH] Fixed coding style/documentation issue --- com.woltlab.wcf/acpMenu.xml | 14 ++ .../install/files/acp/templates/menuAdd.tpl | 48 ++-- .../files/acp/templates/menuItemAdd.tpl | 229 +++++++++--------- .../install/files/acp/templates/menuList.tpl | 15 +- .../files/lib/acp/form/MenuAddForm.class.php | 18 +- .../files/lib/acp/form/MenuEditForm.class.php | 15 +- .../lib/acp/form/MenuItemAddForm.class.php | 20 +- .../lib/acp/form/MenuItemEditForm.class.php | 10 +- .../files/lib/acp/form/PageAddForm.class.php | 17 +- .../files/lib/acp/form/PageEditForm.class.php | 19 +- .../files/lib/data/menu/Menu.class.php | 4 +- .../files/lib/data/menu/MenuAction.class.php | 20 +- .../files/lib/data/menu/MenuEditor.class.php | 4 +- .../files/lib/data/menu/MenuList.class.php | 4 +- .../lib/data/menu/item/MenuItem.class.php | 4 +- .../data/menu/item/MenuItemAction.class.php | 22 +- .../data/menu/item/MenuItemEditor.class.php | 4 +- .../lib/data/menu/item/MenuItemList.class.php | 4 +- .../lib/data/menu/item/MenuItemNode.class.php | 32 +-- .../data/menu/item/MenuItemNodeTree.class.php | 18 +- .../files/lib/data/page/Page.class.php | 6 +- .../files/lib/data/page/PageAction.class.php | 22 +- .../files/lib/data/page/PageEditor.class.php | 2 +- .../files/lib/data/page/PageList.class.php | 2 +- .../files/lib/data/page/PageNode.class.php | 32 +-- .../lib/data/page/PageNodeTree.class.php | 30 +-- 26 files changed, 317 insertions(+), 298 deletions(-) diff --git a/com.woltlab.wcf/acpMenu.xml b/com.woltlab.wcf/acpMenu.xml index 9aa827115a..14da8edbfb 100644 --- a/com.woltlab.wcf/acpMenu.xml +++ b/com.woltlab.wcf/acpMenu.xml @@ -618,10 +618,24 @@ admin.content.cms.canManagePage + + + wcf.acp.menu.link.cms.page.list + admin.content.cms.canManagePage + fa-plus + + wcf.acp.menu.link.cms admin.content.cms.canManageMenu + + + + wcf.acp.menu.link.cms.menu.list + admin.content.cms.canManageMenu + fa-plus + diff --git a/wcfsetup/install/files/acp/templates/menuAdd.tpl b/wcfsetup/install/files/acp/templates/menuAdd.tpl index 9178caf12f..82677d9ce2 100644 --- a/wcfsetup/install/files/acp/templates/menuAdd.tpl +++ b/wcfsetup/install/files/acp/templates/menuAdd.tpl @@ -21,33 +21,31 @@
-
-
- {lang}wcf.global.form.data{/lang} +
+

{lang}wcf.global.form.data{/lang}

- -
-
- - {if $errorField == 'title'} - - {if $errorType == 'title' || $errorType == 'multilingual'} - {lang}wcf.global.form.error.{@$errorType}{/lang} - {else} - {lang}wcf.acp.menu.title.error.{@$errorType}{/lang} - {/if} - - {/if} - {lang}wcf.acp.menu.title.description{/lang} - {include file='multipleLanguageInputJavascript' elementIdentifier='title' forceSelection=false} -
- - - {event name='dataFields'} -
+ +
+
+ + {if $errorField == 'title'} + + {if $errorType == 'title' || $errorType == 'multilingual'} + {lang}wcf.global.form.error.{@$errorType}{/lang} + {else} + {lang}wcf.acp.menu.title.error.{@$errorType}{/lang} + {/if} + + {/if} + {lang}wcf.acp.menu.title.description{/lang} + {include file='multipleLanguageInputJavascript' elementIdentifier='title' forceSelection=false} +
+ - {event name='fieldsets'} -
+ {event name='dataFields'} + + + {event name='sections'}
diff --git a/wcfsetup/install/files/acp/templates/menuItemAdd.tpl b/wcfsetup/install/files/acp/templates/menuItemAdd.tpl index ba39e750c4..a27eb1e74d 100644 --- a/wcfsetup/install/files/acp/templates/menuItemAdd.tpl +++ b/wcfsetup/install/files/acp/templates/menuItemAdd.tpl @@ -45,132 +45,129 @@
-
-
- {lang}wcf.acp.pageMenu.data{/lang} +
+

{lang}wcf.global.form.data{/lang}

- - -
-
- - {if $errorField == 'parentItemID'} - - {if $errorType == 'empty'} - {lang}wcf.global.form.error.empty{/lang} - {else} - {lang}wcf.acp.menu.item.parentItemID.error.{$errorType}{/lang} - {/if} - - {/if} -
- - - -
-
- - {if $errorField == 'title'} - - {if $errorType == 'multilingual'} - {lang}wcf.global.form.error.multilingual{/lang} - {else} - {lang}wcf.acp.menu.item.title.error.{$errorType}{/lang} - {/if} - - {/if} + +
+
+ + {if $errorField == 'parentItemID'} + + {if $errorType == 'empty'} + {lang}wcf.global.form.error.empty{/lang} + {else} + {lang}wcf.acp.menu.item.parentItemID.error.{$errorType}{/lang} + {/if} + + {/if} +
+ -
- {lang}wcf.acp.menu.item.link{/lang} - -
-
-
- - -
-
- -
-
-
- - {if $errorField == 'pageID'} - - {if $errorType == 'empty'} - {lang}wcf.global.form.error.empty{/lang} - {else} - {lang}wcf.acp.menu.item.pageID.error.{@$errorType}{/lang} - {/if} - - {/if} -
-
- -
-
-
- - {if $errorField == 'externalURL'} - - {if $errorType == 'empty'} - {lang}wcf.global.form.error.empty{/lang} - {else} - {lang}wcf.acp.menu.item.externalURL.error.{$errorType}{/lang} - {/if} - - {/if} + +
+
+ + {if $errorField == 'title'} + + {if $errorType == 'multilingual'} + {lang}wcf.global.form.error.multilingual{/lang} + {else} + {lang}wcf.acp.menu.item.title.error.{$errorType}{/lang} + {/if} + + {/if} + + {include file='multipleLanguageInputJavascript' elementIdentifier='title' forceSelection=false} +
+
+ + {event name='dataFields'} +
+ +
+

{lang}wcf.acp.menu.item.link{/lang}

+ +
+
+
+ + +
+
+ +
+
+
+ + {if $errorField == 'pageID'} + + {if $errorType == 'empty'} + {lang}wcf.global.form.error.empty{/lang} + {else} + {lang}wcf.acp.menu.item.pageID.error.{@$errorType}{/lang} + {/if} + + {/if} +
+
-
- {lang}wcf.acp.menu.item.advanced{/lang} - +
+
+
+ + {if $errorField == 'externalURL'} + + {if $errorType == 'empty'} + {lang}wcf.global.form.error.empty{/lang} + {else} + {lang}wcf.acp.menu.item.externalURL.error.{$errorType}{/lang} + {/if} + + {/if} + + {include file='multipleLanguageInputJavascript' elementIdentifier='externalURL' forceSelection=false} +
+
+ + {event name='linkFields'} +
+ +
+

{lang}wcf.acp.menu.item.advanced{/lang}

+ +
+
+
+ +
+
+ + {if $action == 'add' || !$menuItem->isLandingPage}
-
+
- +
- - {if $action == 'add' || !$menuItem->isLandingPage} -
-
-
- -
-
- {/if} - - {event name='advancedFields'} -
+ {/if} - {event name='fields'} -
+ {event name='advancedFields'} + + + {event name='sections'}
diff --git a/wcfsetup/install/files/acp/templates/menuList.tpl b/wcfsetup/install/files/acp/templates/menuList.tpl index 956f9b1367..0d10d437b5 100644 --- a/wcfsetup/install/files/acp/templates/menuList.tpl +++ b/wcfsetup/install/files/acp/templates/menuList.tpl @@ -17,7 +17,7 @@