X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=themes%2Fcool%2Frenderer.php;h=925631403dcf966575cde1e9bb67bff9dbba0c3e;hb=0bea46fe45fb4e046cc3a8ee53e9a0c4759df0ba;hp=81528f1c67ae6f2b015af70378e600ff6ea74df5;hpb=271a0acb700da2fb593301e42d0c088155dc28ca;p=fa-stable.git
diff --git a/themes/cool/renderer.php b/themes/cool/renderer.php
index 81528f1c..92563140 100644
--- a/themes/cool/renderer.php
+++ b/themes/cool/renderer.php
@@ -11,15 +11,16 @@
***********************************************************************/
class renderer
{
- /* Uncomment this member if you want to use the category icons defined in /applications/applications.php
function get_icon($category)
{
- global $path_to_root;
+ global $path_to_root, $show_menu_category_icons;
- $img = $category == '' ? 'right.gif' : $category.'.png';
+ if ($show_menu_category_icons)
+ $img = $category == '' ? 'right.gif' : $category.'.png';
+ else
+ $img = 'right.gif';
return " ";
}
- */
function wa_header()
{
@@ -140,7 +141,6 @@
global $path_to_root;
$selected_app = $waapp->get_selected_application();
- $img = "
";
foreach ($selected_app->modules as $module)
{
// image
@@ -155,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))
@@ -174,6 +175,7 @@
echo "