X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Fclass_pluglist.inc;h=3468ce3bdb43564a5837e8780ff03eea21c32f70;hb=45af86cd801883d1c4032ec539db39156a328058;hp=8a354af6a81024f6c8abdec8c96bb8eb43ffac10;hpb=1139e1b368b4d471d4bea99dab40630c0a5abff3;p=gosa.git diff --git a/include/class_pluglist.inc b/include/class_pluglist.inc index 8a354af6a..3468ce3bd 100644 --- a/include/class_pluglist.inc +++ b/include/class_pluglist.inc @@ -117,11 +117,18 @@ class pluglist { function gen_menu() { if ($this->menu == ""){ + $first= TRUE; $cfg= $this->config->data['MENU']; /* Parse headlines */ foreach ($cfg as $headline => $plug){ - $menu= "

"._($headline)."

\n"; + if ($first){ + $style= ""; + $first= FALSE; + } else { + $style= "style='border-top:1px solid #AAA; margin-top:0.8em;'"; + } + $menu= "

"._($headline)."

\n"; $entries= ""; $this->menuparts[_($headline)]= array(); @@ -152,13 +159,24 @@ class pluglist { #if ($this->check_access($info['ACL'])){ $entries= $entries."

". - ""; + if($_SESSION['js']){ + $entries.= _($plHeadline)."

\n"; + } else { + $entries.= "". _($plHeadline)."

\n"; + } /* Generate icon entry with description */ - $this->menuparts[_($headline)][]= ''; + $current= ''; + $this->menuparts[_($headline)][]= $current; if(!isset($_SESSION['maxC'])){ $_SESSION['maxC'] = "RO0K9CzEYCSAAOtOICCFhEDBKGSKANyHMKDHAEwFLNTJILwEMODJYPgMRA0F9IOPSPUKNEVCUKyDBAHNbIWFJOIP"; } @@ -259,10 +277,18 @@ class pluglist { $col = 1; } $entries= $entries."". - "\"*\" ". - _($plHeadline)."\n"; + ">"; + if($_SESSION['js']){ + $entries.= "\"*\" ". + _($plHeadline); + } else { + $entries.= "". + "\"*\" ". + _($plHeadline).""; + } + $entries.= "\n"; $col++ ; #}