Project

General

Profile

« Previous | Next » 

Revision 1679

Added by Dietmar over 12 years ago

add tool_icon.png to admintools

View differences:

branches/2.8.x/CHANGELOG
12 12
===============================================================================
13 13

  
14 14

  
15
28 Apr-2012 Build 1679 Dietmar Woellbrink (Luisehahne)
16
+ add tool_icon.png to admintools
15 17
27 Apr-2012 Build 1678 Dietmar Woellbrink (Luisehahne)
16 18
# validation fix in print_footer, class.database
17 19
! replace settings and default header
branches/2.8.x/wb/admin/skel/themes/htt/admintools.htt
7 7
		<table summary="" cellpadding="0" cellspacing="0" border="0" class="section" width="100%">
8 8
		<tr>
9 9
			<td class="graphic" align="center" valign="middle" rowspan="2">
10
				<a class= "title" href="{ADMIN_URL}/admintools/tool.php?tool={TOOL_DIR}"><img src="{THEME_URL}/icons/admintools.png" border="0" alt="{TOOL_NAME}" align="left" /></a>
10
				<a class= "title" href="{ADMIN_URL}/admintools/tool.php?tool={TOOL_DIR}">
11
				<img src="{TOOL_ICON}" border="0" alt="{TOOL_NAME}" align="left" /></a>
11 12
			</td>
12 13
			<td class="description" valign="top">
13 14
				<a href="{ADMIN_URL}/admintools/tool.php?tool={TOOL_DIR}"><span class="title">{TOOL_NAME}</span></a>{TOOL_DESCRIPTION}
branches/2.8.x/wb/admin/interface/version.php
51 51

  
52 52
// check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled)
53 53
if(!defined('VERSION')) define('VERSION', '2.8.3');
54
if(!defined('REVISION')) define('REVISION', '1678');
54
if(!defined('REVISION')) define('REVISION', '1679');
55 55
if(!defined('SP')) define('SP', '');
branches/2.8.x/wb/admin/admintools/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
	}
branches/2.8.x/wb/templates/argos_theme/templates/footer.htt
31 31
	</div>
32 32
</div>
33 33
<!-- END show_debug_block -->
34
</div>
34 35
{BACKEND_BODY_MODULE_JS}
35 36
</body>
36 37
</html>

Also available in: Unified diff