Added feature #6525: .wrapItemAndSub property for GMENU
authorErnesto Baschny <ernst@cron-it.de>
Wed, 1 Oct 2008 10:15:43 +0000 (10:15 +0000)
committerErnesto Baschny <ernst@cron-it.de>
Wed, 1 Oct 2008 10:15:43 +0000 (10:15 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@4264 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/class.tslib_menu.php

index 99c94cf..21771f7 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-10-01  Ernesto Baschny  <ernst@cron-it.de>
+
+       * Added feature #6525: .wrapItemAndSub property for GMENU
+
 2008-09-29  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Follow-up to issue #9375: Add DTD to htmlArea RTE iframe document
index b519ac9..f91bc56 100755 (executable)
@@ -2425,10 +2425,12 @@ class tslib_gmenu extends tslib_menu {
         * @see writeMenu(), tslib_gmenu_layers::extProc_afterLinking(), tslib_menu::subMenu()
         */
        function extProc_afterLinking($key)     {
-               $this->WMresult.=$this->I['theItem'];
+                       // Add part to the accumulated result + fetch submenus
                if (!$this->I['spacer'])        {
-                       $this->WMresult.= $this->subMenu($this->I['uid'], $this->WMsubmenuObjSuffixes[$key]['sOSuffix']);
+                       $this->I['theItem'].= $this->subMenu($this->I['uid'], $this->WMsubmenuObjSuffixes[$key]['sOSuffix']);
                }
+               $part = $this->WMcObj->stdWrap($this->I['val']['wrapItemAndSub'],$this->I['val']['wrapItemAndSub.']);
+               $this->WMresult.= $part ? $this->tmpl->wrap($this->I['theItem'],$part) : $this->I['theItem'];
        }