Revision 1679
Added by Luisehahne over 13 years ago
| index.php | ||
|---|---|---|
| 41 | 41 |
while($tool = $results->fetchRow()) {
|
| 42 | 42 |
$template->set_var('TOOL_NAME', $tool['name']);
|
| 43 | 43 |
$template->set_var('TOOL_DIR', $tool['directory']);
|
| 44 |
// /icons/admintools.png |
|
| 44 | 45 |
// check if a module description exists for the displayed backend language |
| 45 | 46 |
$tool_description = false; |
| 46 | 47 |
if(function_exists('file_get_contents') && file_exists(WB_PATH.'/modules/'.$tool['directory'].'/languages/'.LANGUAGE .'.php')) {
|
| ... | ... | |
| 48 | 49 |
$data = @file_get_contents(WB_PATH .'/modules/' .$tool['directory'] .'/languages/' .LANGUAGE .'.php'); |
| 49 | 50 |
$tool_description = get_variable_content('module_description', $data, true, false);
|
| 50 | 51 |
} |
| 52 |
if(file_exists(WB_PATH .'/modules/' .$tool['directory'].'/tool_icon.png')) |
|
| 53 |
{
|
|
| 54 |
$template->set_var('TOOL_ICON', WB_URL.'/modules/' .$tool['directory'].'/tool_icon.png');
|
|
| 55 |
} else {
|
|
| 56 |
$template->set_var('TOOL_ICON', THEME_URL.'/icons/admintools.png');
|
|
| 57 |
} |
|
| 51 | 58 |
$template->set_var('TOOL_DESCRIPTION', ($tool_description === False)? $tool['description'] :$tool_description);
|
| 52 | 59 |
$template->parse('tool_list', 'tool_list_block', true);
|
| 53 | 60 |
} |
Also available in: Unified diff
add tool_icon.png to admintools