projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
# {0000481] No warning when user does not supply db credentials in create_coy
[fa-stable.git]
/
themes
/
default
/
renderer.php
diff --git
a/themes/default/renderer.php
b/themes/default/renderer.php
index 950cd6a4ee86f8f63fe34ff08fd27ad4c999ebc7..6df2553f8bec5352239ef03c4690a956af193d6f 100644
(file)
--- a/
themes/default/renderer.php
+++ b/
themes/default/renderer.php
@@
-11,19
+11,19
@@
***********************************************************************/
class renderer
{
***********************************************************************/
class renderer
{
- /* Uncomment this member if you want to use the category icons defined in /applications/applications.php
function get_icon($category)
{
function get_icon($category)
{
- global $path_to_root;
-
- $img = $category == '' ? 'right.gif' : $category.'.png';
+ 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'> ";
}
return "<img src='$path_to_root/themes/cool/images/$img' style='vertical-align:middle;' border='0'> ";
}
- */
function wa_header()
{
function wa_header()
{
-// add_js_ufile("themes/default/renderer.js");
page(_($help_context = "Main Menu"), false, true);
}
page(_($help_context = "Main Menu"), false, true);
}
@@
-141,7
+141,6
@@
$selected_app = $waapp->get_selected_application();
$selected_app = $waapp->get_selected_application();
- $img = "<img src='$path_to_root/themes/default/images/right.gif' style='vertical-align:middle;' width='17' height='17' border='0'> ";
foreach ($selected_app->modules as $module)
{
// image
foreach ($selected_app->modules as $module)
{
// image
@@
-156,6
+155,7
@@
foreach ($module->lappfunctions as $appfunction)
{
foreach ($module->lappfunctions as $appfunction)
{
+ $img = $this->get_icon($appfunction->category);
if ($appfunction->label == "")
echo " <br>";
elseif ($_SESSION["wa_current_user"]->can_access_page($appfunction->access))
if ($appfunction->label == "")
echo " <br>";
elseif ($_SESSION["wa_current_user"]->can_access_page($appfunction->access))
@@
-175,6
+175,7
@@
echo "<td width='50%' class='menu_group_items'>";
foreach ($module->rappfunctions as $appfunction)
{
echo "<td width='50%' class='menu_group_items'>";
foreach ($module->rappfunctions as $appfunction)
{
+ $img = $this->get_icon($appfunction->category);
if ($appfunction->label == "")
echo " <br>";
elseif ($_SESSION["wa_current_user"]->can_access_page($appfunction->access))
if ($appfunction->label == "")
echo " <br>";
elseif ($_SESSION["wa_current_user"]->can_access_page($appfunction->access))