Code

Fixed alignment of the icon menu
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 1 Mar 2010 11:00:16 +0000 (11:00 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 1 Mar 2010 11:00:16 +0000 (11:00 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15793 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_pluglist.inc

index 9166656b5df3bd153c4477e2ecf7404fcf0cdb94..7a8ebc5508a25786b5604cb605035c9bbbfc725b 100644 (file)
@@ -160,7 +160,7 @@ class pluglist
    */
   function gen_menu()
   {
-    if (1 || $this->menu == ""){
+    if ($this->menu == ""){
       $cfg= $this->config->data['MENU'];
       $menu = "\n      <div class='navigation'>";
       foreach ($cfg as $headline => $plug){
@@ -227,17 +227,18 @@ class pluglist
   function show_iconmenu()
   {
     $add_hr =FALSE;
+    $this->iconmenu = "";
     if ($this->iconmenu == ""){
       $cfg= $this->config->data['MENU'];
       foreach ($cfg as $headline => $plug){
         $col= 0;
 
-        $this->iconmenu .= "\n  <div class='clear'></div>\n";
+        $this->iconmenu .= "\n        <div class='clear'></div>";
         if($add_hr){
           $add_hr = FALSE;
-          $this->iconmenu .= "\n  <hr>\n";
+          $this->iconmenu .= "\n        <hr>";
         }
-        $this->iconmenu .= "\n  <h3 class='icon-menu-title'>". _($headline)."</h3>\n";
+        $this->iconmenu .= "\n        <h3 class='icon-menu-title'>". _($headline)."</h3>";
 
         foreach ($plug as $info){
 
@@ -246,18 +247,16 @@ class pluglist
 
           // Add a seperating row
           if (($col % 4) == 0){ 
-            $this->iconmenu .= "\n  <div class='clear'></div>\n";
+            $this->iconmenu .= "\n        <div class='clear'></div>";
           }
 
-
-          $this->iconmenu.= "\n  <div class='icon-menu-item' style='width: 25%;' onclick='openPlugin({$index})'>";
-          $this->iconmenu.= "\n   ".image($icon);
-          $this->iconmenu.= "\n   <div class='dsc'>";
-          $this->iconmenu.= "\n    <h1>{$title}</h1>";
-          $this->iconmenu.= "\n    <p>{$desc}</p>";
-          $this->iconmenu.= "\n   </div>";
-          $this->iconmenu.= "\n  </div>";
-
+          $this->iconmenu.= "\n        <div class='icon-menu-item' style='width: 25%;' onclick='openPlugin({$index})'>";
+          $this->iconmenu.= "\n          ".image($icon);
+          $this->iconmenu.= "\n          <div class='dsc'>";
+          $this->iconmenu.= "\n            <h1>{$title}</h1>";
+          $this->iconmenu.= "\n            <p>{$desc}</p>";
+          $this->iconmenu.= "\n          </div>";
+          $this->iconmenu.= "\n        </div>";
           $col++ ;
         }
         $add_hr = TRUE;
@@ -269,7 +268,7 @@ class pluglist
 
   function genPathMenu()
   {
-    if(1 || empty($this->pathMenu)){
+    if(empty($this->pathMenu)){
       $this->pathMenu = 
         "\n        <div class='plugin-path'>".
         "\n          <ul class='path-navigation'>".