- Timestamp:
- 04/27/10 16:41:59 (14 years ago)
- Location:
- trunk
- Files:
-
- 5 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/templates/default/config.tpl
r2619 r2640 7 7 <!-- END header --> 8 8 <!-- BEGIN body --> 9 <tr class="row_o ff">9 <tr class="row_on"> 10 10 <td>{lang_Time_for_expire_inatives_accounts(0 for never expires)}:</td> 11 11 <td><input size="8" name="newsettings[time_to_account_expires]" value="{value_time_to_account_expires}"></td> 12 12 </tr> 13 <tr class="row_o n">13 <tr class="row_off"> 14 14 <td>{lang_Timeout_for_sessions_in_seconds_(default_14400_=_4_hours)}:</td> 15 15 <td><input size="8" name="newsettings[sessions_timeout]" value="{value_sessions_timeout}"></td> 16 16 </tr> 17 17 18 <tr class="row_o ff">18 <tr class="row_on"> 19 19 <td>{lang_Timeout_for_application_session_data_in_seconds_(default_86400_=_1_day)}:</td> 20 20 <td><input size="8" name="newsettings[sessions_app_timeout]" value="{value_sessions_app_timeout}"></td> 21 21 </tr> 22 <tr class="row_o n">22 <tr class="row_off"> 23 23 <td>{lang_enable_javascript_packer_?}:</td><td> 24 24 <select name="newsettings[jspacker]"> … … 28 28 </td> 29 29 </tr> 30 30 <tr class="row_on"> 31 <td>{lang_enable_stylesheet_packer_?}:</td><td> 32 <select name="newsettings[csspacker]"> 33 <option value="False"{selected_csspacker_False}>{lang_No}</option> 34 <option value="True"{selected_csspacker_True}>{lang_Yes}</option> 35 </select> 36 </td> 37 </tr> 31 38 <tr class="row_off"> 32 39 <td>{lang_Would_you_like_to_show_each_application's_upgrade_status_?}:</td><td> -
trunk/phpgwapi/inc/class.common.inc.php
r2630 r2640 1326 1326 // search for app specific css file 1327 1327 if ( @ isset( $GLOBALS[ 'phpgw_info' ][ 'flags' ][ 'currentapp' ] ) ) 1328 { 1329 $css = "/%s/templates/%s/%s.css"; 1330 1331 global $path, $link, $template; 1332 1333 $path = PHPGW_SERVER_ROOT . str_replace( '/', SEP, $css ); 1334 1335 $link = '<link href="%s" type="text/css" rel="StyleSheet" />'; 1336 $link = "\n\t\t" . sprintf( $link, 1337 "{$GLOBALS[ 'phpgw_info' ][ 'server' ][ 'webserver_url' ]}{$css}" 1338 ); 1339 1328 { 1329 require_once('class.css.inc.php'); 1330 $cssObj = new css(); 1331 1332 $path = $GLOBALS[ 'phpgw_info' ][ 'server' ][ 'webserver_url' ]; 1340 1333 $template = $GLOBALS[ 'phpgw_info' ][ 'server' ][ 'template_set' ]; 1341 1334 1342 function _css( $module, $css ) 1343 { 1344 global $link, $path, $template; 1345 1346 if ( file_exists( sprintf( $path, $module, $template, str_replace( '/', SEP, $css ) ) ) ) 1347 return sprintf( $link, $module, $template, $css ); 1348 1349 if ( file_exists( sprintf( $path, $module, 'default', str_replace( '/', SEP, $css ) ) ) ) 1350 return sprintf( $link, $module, 'default', $css ); 1351 1352 return ''; 1353 } 1354 1355 $css = _css( 'phpgwapi', 'css/base' ); 1356 $css .= _css( 'phpgwapi', "css/{$GLOBALS[ 'phpgw_info' ][ 'user' ][ 'preferences' ][ 'common' ][ 'theme' ]}" ); 1357 $css .= _css( $GLOBALS[ 'phpgw_info' ][ 'flags' ][ 'currentapp' ], "css/{$GLOBALS[ 'phpgw_info' ][ 'user' ][ 'preferences' ][ 'common' ][ 'theme' ]}" ); 1358 $css .= _css( $GLOBALS[ 'phpgw_info' ][ 'flags' ][ 'currentapp' ], 'app' ); 1359 1360 if ( $css ) 1361 $tpl -> set_var( 'css_file', $css ); 1335 $cssObj->validate_file($path."phpgwapi/templates/".$template."/css/base.css"); 1336 $cssObj->validate_file($path."phpgwapi/templates/".$template."/css/".$GLOBALS[ 'phpgw_info' ][ 'user' ][ 'preferences' ][ 'common' ][ 'theme' ].".css"); 1337 $cssObj->validate_file($path.$GLOBALS[ 'phpgw_info' ][ 'flags' ][ 'currentapp' ]."/templates/".$template."/css/".$GLOBALS[ 'phpgw_info' ][ 'user' ][ 'preferences' ][ 'common' ][ 'theme' ].".css"); 1338 $cssObj->validate_file($path.$GLOBALS[ 'phpgw_info' ][ 'flags' ][ 'currentapp' ]."/templates/".$template."/css/app.css"); 1339 1340 $tpl -> set_var( 'css_file', $cssObj->get_css() ); 1362 1341 } 1363 1342 -
trunk/phpgwapi/templates/default/css
-
Property
svn:ignore
set to
*csspack.css
-
Property
svn:ignore
set to
Note: See TracChangeset
for help on using the changeset viewer.