X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=themes%2Fcool%2Frenderer.php;h=925631403dcf966575cde1e9bb67bff9dbba0c3e;hb=0bea46fe45fb4e046cc3a8ee53e9a0c4759df0ba;hp=9bf46c95fc02cf736960d8cc1ae16b38e3313981;hpb=46c5f7a65a7659a44ae8254c63152074363d3987;p=fa-stable.git
diff --git a/themes/cool/renderer.php b/themes/cool/renderer.php
index 9bf46c95..92563140 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 "