Project

General

Profile

« Previous | Next » 

Revision 1082

Added by Matthias almost 15 years ago

Added multilnaguage support to media section of argos_theme (Thanks to Argos)

Fixed smaller display issue in argos_theme (Thanks to Argos)

View differences:

setparameter.php
29 29
// Include the WB functions file
30 30
require_once(WB_PATH.'/framework/functions.php');
31 31

  
32
// check if theme language file exists for the language set by the user (e.g. DE, EN)
33
if(!file_exists(THEME_PATH .'/languages/'.LANGUAGE .'.php')) {
34
	// no theme language file exists for the language set by the user, include default theme language file EN.php
35
	require_once(THEME_PATH .'/languages/EN.php');
36
} else {
37
	// a theme language file exists for the language defined by the user, load it
38
	require_once(THEME_PATH .'/languages/'.LANGUAGE .'.php');
39
}
40

  
32 41
//Save post vars to the parameters file
33 42
if ( !is_null($admin->get_post_escaped("save"))) {
34 43
	//Check for existing settings entry, if not existing, create a record first!
......
68 77
	$template->set_var('DISPLAY_ADMIN', 'hide');
69 78
}
70 79
$template->set_var(array( 
71
					'TEXT_HEADER' => 'Set maximum imagesize for a folder</b><br><small><i>(resizing on new uploads only)</i></small>',
80
					'TEXT_HEADER' => $TEXT['TEXT_HEADER'],
72 81
					'SAVE_TEXT' => $TEXT['SAVE'],
73 82
					'BACK' => $TEXT['BACK']
74 83
				)
......
105 114
								'CUR_WIDTH' => $cur_width,
106 115
								'CUR_HEIGHT' => $cur_height,
107 116
								'SETTINGS' => $TEXT['SETTINGS'],
108
								'ADMIN_ONLY' => 'Settings for administrator only',
117
								'ADMIN_ONLY' => $TEXT['ADMIN_ONLY'],
109 118
								'ADMIN_ONLY_SELECTED' => $pathsettings['global']['admin_only'],
110
								'NO_SHOW_THUMBS' => 'Hide thumbnails',
119
								'NO_SHOW_THUMBS' => $TEXT['NO_SHOW_THUMBS'],
111 120
								'NO_SHOW_THUMBS_SELECTED' => $pathsettings['global']['show_thumbs'],
112 121
								'ROW_BG_COLOR' => $row_bg_color
113 122
							)

Also available in: Unified diff