To activate, set $show_menu_category_icons = 1, in config.php
[fa-stable.git] / themes / cool / renderer.php
index b560ac91ceb89747a154747ead65561e24d84a4e..d9d286b265809f3ed0f95ea91f4775d79af529b5 100644 (file)
        {
                function get_icon($category)
                {
-                       global  $path_to_root;
-                       
-                       // uncomment this line if you want to use the pre-defined categories.
-                       //$img = $category == '' ? 'right.gif' : $category.'.png';
-                       $img = 'right.gif';
+                       global  $path_to_root, $show_menu_category_icons;
+;
+                       if ($show_menu_category_icons)
+                               $img = $category == '' ? 'right.gif' : $category.'.png';
+                       else    
+                               $img = 'right.gif';
                        return "<img src='$path_to_root/themes/cool/images/$img' style='vertical-align:middle;' border='0'>&nbsp;&nbsp;";
                }