X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=themes%2Faqua%2Frenderer.php;h=1d03c5d9c6b8f453690868f43a449869a318a188;hb=9db26905f4397053c3ec3362a76add78febb8dac;hp=300f90f330b82151915052ec253ae3335b0f27d0;hpb=d9b4de9d7e9d3ba77f6ece752fd6cc988effd8f1;p=fa-stable.git diff --git a/themes/aqua/renderer.php b/themes/aqua/renderer.php index 300f90f3..1d03c5d9 100644 --- a/themes/aqua/renderer.php +++ b/themes/aqua/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); @@ -25,7 +36,7 @@ { global $path_to_root, $help_base_url, $db_connections; echo "
\n";
echo "
|
";
foreach ($module->rappfunctions as $appfunction)
{
+ $img = $this->get_icon($appfunction->category);
if ($appfunction->label == "")
echo " "; elseif ($_SESSION["wa_current_user"]->can_access_page($appfunction->access)) { echo $img.menu_link($appfunction->link, $appfunction->label)." \n"; } - else + elseif (!$_SESSION["wa_current_user"]->hide_inaccessible_menu_items()) { echo $img.'' .access_string($appfunction->label, true) @@ -183,9 +213,7 @@ echo " |