Changeset 2476
- Timestamp:
- Aug 16, 2008, 3:32:37 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/common.inc.php
r2413 r2476 190 190 if 191 191 ( 192 defined('IN_ADMIN') and IN_ADMIN 192 defined('IN_ADMIN') and IN_ADMIN 193 193 ) 194 194 { … … 197 197 list($user['admin_template'], $user['admin_theme']) = 198 198 explode ('/', $conf['admin_layout']); 199 $template = new Template(PHPWG_ROOT_PATH.'admin/template/' 199 $template = new Template(PHPWG_ROOT_PATH.'admin/template/' 200 200 . $user['admin_template'], $user['admin_theme'] ); 201 201 } … … 264 264 if (!empty($conf['filter_pages']) and get_filter_page_value('used')) 265 265 { 266 include(PHPWG_ROOT_PATH.'include/functions_filter.inc.php');267 266 include(PHPWG_ROOT_PATH.'include/filter.inc.php'); 268 267 } -
trunk/include/filter.inc.php
r2448 r2476 127 127 $header_notes[] = l10n_dec('note_filter_day', 'note_filter_days', $filter['recent_period']); 128 128 } 129 include_once(PHPWG_ROOT_PATH.'include/functions_filter.inc.php'); 129 130 } 130 131 else -
trunk/include/template.class.php
r2464 r2476 146 146 function set_filenames($filename_array) 147 147 { 148 global $conf; 148 global $conf; 149 149 if (!is_array($filename_array)) 150 150 { … … 160 160 else 161 161 { 162 if (!isset($this->files[$handle]))$this->files[$handle] = $filename;162 $this->files[$handle] = $filename; 163 163 foreach ($tpl_extension as $file => $conditions) 164 164 { 165 165 $localtpl = './template-extension/' . $file; 166 if ($handle == $conditions[0] and 167 (stripos(implode('/',array_flip($_GET)),$conditions[1])>0 166 if ($handle == $conditions[0] and 167 (stripos(implode('/',array_flip($_GET)),$conditions[1])>0 168 168 or $conditions[1] == 'N/A') 169 169 and file_exists($localtpl)) 170 170 { /* examples: Are best_rated, created-monthly-calendar, list, ... set? */ 171 $this->files[$handle] = '../.' . $localtpl; 171 $this->files[$handle] = '../.' . $localtpl; 172 172 /* assign their tpl-extension */ 173 173 } … … 177 177 return true; 178 178 } 179 function on_extension($key, $tlpname) 180 { 181 return $tplname; 182 } 179 183 180 /** see smarty assign http://www.smarty.net/manual/en/api.assign.php */ 184 181 function assign($tpl_var, $value = null) … … 257 254 $this->smarty->compile_id .= '.'.$lang_info['code']; 258 255 } 259 256 260 257 $v = $this->smarty->fetch($this->files[$handle], null, null, false); 261 258 262 259 if (isset ($save_compile_id) ) 263 260 { 264 261 $this->smarty->compile_id = $save_compile_id; 265 262 } 266 263 267 264 if ($return) 268 265 { … … 336 333 return explode($delimiter, $text); 337 334 } 338 335 339 336 /** 340 337 * This smarty "html_head" block allows to add content just before 341 338 * </head> element in the output after the head has been parsed. This is 342 339 * handy in order to respect strict standards when <style> and <link> 343 * html elements must appear in the <head> element 340 * html elements must appear in the <head> element 344 341 */ 345 342 function block_html_head($params, $content, &$smarty, &$repeat) … … 358 355 } 359 356 } 360 361 /** 362 * Smarty prefilter to allow caching (whenever possible) language strings 357 358 /** 359 * Smarty prefilter to allow caching (whenever possible) language strings 363 360 * from templates. 364 361 */ … … 368 365 $ldq = preg_quote($this->smarty->left_delimiter, '~'); 369 366 $rdq = preg_quote($this->smarty->right_delimiter, '~'); 370 367 371 368 $regex = "~$ldq *\'([^'$]+)\'\|@translate *$rdq~"; 372 369 $source = preg_replace( $regex.'e', 'isset($lang[\'$1\']) ? $lang[\'$1\'] : \'$0\'', $source); -
trunk/language/en_UK/common.lang.php
r2342 r2476 61 61 $lang['Confirm Password'] = 'Confirm Password'; 62 62 $lang['Connection settings'] = 'Connection settings'; 63 $lang['Connection'] = ' Connection';63 $lang['Connection'] = 'Login'; 64 64 $lang['Contact webmaster'] = 'Contact webmaster'; 65 65 $lang['Create a new account'] = 'Create a new account'; -
trunk/template/yoga/default-layout.css
r2456 r2476 1 1 /* $Id$ */ 2 @import "admin/default-layout.css";3 2 BODY { 4 3 margin: 5px;
Note: See TracChangeset
for help on using the changeset viewer.