X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=themes%2Fcool%2Frenderer.php;h=d9d286b265809f3ed0f95ea91f4775d79af529b5;hb=c7677cfbba820ec8d7a6f224d51fe64d4850a2a3;hp=9bf46c95fc02cf736960d8cc1ae16b38e3313981;hpb=6724489b9b146d2ebd8b89c1f0562954a14619f7;p=fa-stable.git
diff --git a/themes/cool/renderer.php b/themes/cool/renderer.php
index 9bf46c95..d9d286b2 100644
--- a/themes/cool/renderer.php
+++ b/themes/cool/renderer.php
@@ -11,6 +11,17 @@
***********************************************************************/
class renderer
{
+ function get_icon($category)
+ {
+ global $path_to_root, $show_menu_category_icons;
+;
+ if ($show_menu_category_icons)
+ $img = $category == '' ? 'right.gif' : $category.'.png';
+ else
+ $img = 'right.gif';
+ return " ";
+ }
+
function wa_header()
{
page(_($help_context = "Main Menu"), false, true);
@@ -130,7 +141,6 @@
global $path_to_root;
$selected_app = $waapp->get_selected_application();
- $img = "
";
foreach ($selected_app->modules as $module)
{
// image
@@ -145,6 +155,7 @@
foreach ($module->lappfunctions as $appfunction)
{
+ $img = $this->get_icon($appfunction->category);
if ($appfunction->label == "")
echo "
";
elseif ($_SESSION["wa_current_user"]->can_access_page($appfunction->access))
@@ -164,6 +175,7 @@
echo "