From 1362094321e59bba759ae88dd250588364e6b9be Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 5 May 2008 16:02:04 +0000 Subject: [PATCH] Added possibility to define other icons than "plugin.png" for menu display git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10773 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_pluglist.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gosa-core/include/class_pluglist.inc b/gosa-core/include/class_pluglist.inc index b4a35ba4a..1b311a778 100644 --- a/gosa-core/include/class_pluglist.inc +++ b/gosa-core/include/class_pluglist.inc @@ -264,6 +264,11 @@ class pluglist { $vars= get_class_vars($info['CLASS']); $plHeadline= $vars['plHeadline']; $plDescription= $vars['plDescription']; + if (isset($vars['plIcon'])){ + $plIcon= $vars['plIcon']; + } else { + $plIcon= "plugin.png"; + } $index= $this->get_index($info['CLASS']); @@ -284,7 +289,7 @@ class pluglist { if (isset($info['ICON'])){ $image= get_template_path('images/'.$info['ICON']); } else { - $image= get_template_path("plugins/".preg_replace('%^.*/([^/]+)/[^/]+$%', '\1', $class_mapping[$info['CLASS']])."/images/plugin.png"); + $image= get_template_path("plugins/".preg_replace('%^.*/([^/]+)/[^/]+$%', '\1', $class_mapping[$info['CLASS']])."/images/$plIcon"); } if ($col > 5){ $entries= $entries.""; -- 2.30.2