Project

General

Profile

« Previous | Next » 

Revision 944

Added by Matthias about 15 years ago

added skinable Admin Interface

View differences:

browse.php
32 32
require_once(WB_PATH.'/framework/functions.php');
33 33

  
34 34
// Setup template object
35
$template = new Template(ADMIN_PATH.'/media');
36
$template->set_file('page', 'browse.html');
35
$template = new Template(THEME_PATH.'/templates');
36
$template->set_file('page', 'media_browse.htt');
37 37
$template->set_block('page', 'main_block', 'main');
38 38

  
39 39
// Get the current dir
......
71 71

  
72 72
// Insert values
73 73
$template->set_var(array(
74
								'THEME_URL' => THEME_URL,
74 75
								'CURRENT_DIR' => $directory,
75 76
								'PARENT_DIR_LINK' => $parent_dir_link,
76 77
								'DISPLAY_UP_ARROW' => $display_up_arrow
......
110 111
											'LINK' => "browse.php?dir=$directory/$link_name",
111 112
											'LINK_TARGET' => '',
112 113
											'ROW_BG_COLOR' => $row_bg_color,
113
											'FILETYPE_ICON' => ADMIN_URL.'/images/folder_16.png'
114
											'FILETYPE_ICON' => THEME_URL.'/images/folder_16.png'
114 115
											)
115 116
									);
116 117
			$template->parse('list', 'list_block', true);
......
133 134
											'LINK' => WB_URL.MEDIA_DIRECTORY.$directory.'/'.$name,
134 135
											'LINK_TARGET' => '_blank',
135 136
											'ROW_BG_COLOR' => $row_bg_color,
136
											'FILETYPE_ICON' => ADMIN_URL.'/images/blank.gif'
137
											'FILETYPE_ICON' => THEME_URL.'/images/blank.gif'
137 138
											)
138 139
									);
139 140
			$template->parse('list', 'list_block', true);

Also available in: Unified diff