From fd6af01e313f441189c4cd69668766d2ded7ced3 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Tue, 30 May 2017 21:03:03 +0200 Subject: Several changes have been made in this commit, which together with the previous commits result in version 2.2 [changed template parameters]: + Implemented [core]: A new method called "getAll" has been added to the "Attribute" class which now returns all attributes as key->value array. The first parameter can be an array with attribute names which shall be excluded from returning. + Optimization [core]: The function "generateItemData" has been renamed to "generateItemTemplateData" and has been restructured to use the new implemented method "getAll" from the "Attribute" class. + Optimization [core]: The function "generateNaviTemplate" has been added and the functions "generatePageNaviTemplate", "generatePostNaviTemplate" and "generateUserNaviTemplate" have been restructured to make use of the new "generateNaviTemplate" function to reduce duplicate code. + Optimization [core]: Several files within the admin directory has been optimized to use the new "getAll" method of the "Attribute" class. + Optimization [core]: Several code optimizations have been made to the "HTTP" class. + Optimization [admin template]: All occurences of $PAGE['ID'], $POST['ID'] and $USER['ID'] have been replaced with $PAGE['ATTR']['ID'], $POST['ATTR']['ID'] and $USER['ATTR']['ID'] to make it more consistent. You now have to use ['ATTR']['ID'] instead of ['ID'] in your templates to get the ID of an item! Template upgrade to version 2.2 (only for customized templates): SEARCH: ['ID'] REPLACE: ['ATTR']['ID'] --- template/admin/html/page/item.php | 8 ++++---- template/admin/html/post/item.php | 8 ++++---- template/admin/html/user/item.php | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) (limited to 'template/admin') diff --git a/template/admin/html/page/item.php b/template/admin/html/page/item.php index 599e942..8afeb15 100644 --- a/template/admin/html/page/item.php +++ b/template/admin/html/page/item.php @@ -1,8 +1,8 @@
  • -

    #

    +

    #

    - "> + ">
    @@ -21,8 +21,8 @@
  • \ No newline at end of file diff --git a/template/admin/html/post/item.php b/template/admin/html/post/item.php index abc2b0f..a49e2a5 100644 --- a/template/admin/html/post/item.php +++ b/template/admin/html/post/item.php @@ -1,8 +1,8 @@
  • -

    #

    +

    #

    - "> + ">
    @@ -21,8 +21,8 @@
  • \ No newline at end of file diff --git a/template/admin/html/user/item.php b/template/admin/html/user/item.php index 731f6b5..5efbae3 100644 --- a/template/admin/html/user/item.php +++ b/template/admin/html/user/item.php @@ -1,6 +1,6 @@
  • -

    #

    +

    #

    @@ -20,8 +20,8 @@
  • \ No newline at end of file -- cgit v1.2.3