Changeset 8401 for trunk/include/template.class.php
- Timestamp:
- Dec 30, 2010, 8:47:17 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/template.class.php
r8378 r8401 429 429 $css = array_merge($css, $files); 430 430 } 431 431 432 432 $content = array(); 433 433 foreach( $css as $file_ver ) … … 598 598 if (count($this->scriptLoader->inline_scripts)) 599 599 { 600 $content[]= '<script type="text/javascript">//<![CDATA[ 600 $content[]= '<script type="text/javascript">//<![CDATA[ 601 601 '; 602 602 $content = array_merge($content, $this->scriptLoader->inline_scripts); … … 979 979 } 980 980 } 981 981 982 foreach( array_keys($todo) as $id ) 982 983 { … … 1020 1021 return $results; 1021 1022 } 1022 1023 1023 1024 // checks that if B depends on A, then B->load_mode >= A->load_mode in order to respect execution order 1024 1025 private static function check_load_dep($scripts) … … 1042 1043 $changed = true; 1043 1044 } 1044 if ($load==2 && $scripts[$precedent]->load_mode==2 && ($script ->is_remote() or !$conf['template_combine_files']) )1045 if ($load==2 && $scripts[$precedent]->load_mode==2 && ($scripts[$precedent]->is_remote() or !$conf['template_combine_files']) ) 1045 1046 {// we are async -> a predecessor cannot be async unlesss it can be merged; otherwise script execution order is not guaranteed 1046 1047 $scripts[$precedent]->load_mode = 1; … … 1159 1160 global $conf; 1160 1161 $key = array(); 1161 if ($is_css) 1162 if ($is_css) 1162 1163 $key[] = get_absolute_root_url(false);//because we modify bg url 1163 1164 for ($i=0; $i<count($this->files); $i++) … … 1171 1172 $file = base_convert(crc32($key),10,36); 1172 1173 $file = self::OUT_SUB_DIR . $file . '.' . $this->type; 1173 1174 1174 1175 $exists = file_exists( PHPWG_ROOT_PATH . $file ); 1175 1176 if ($exists) … … 1221 1222 return $js; 1222 1223 } 1223 1224 1224 1225 private static function process_css($file) 1225 1226 { … … 1227 1228 require_once(PHPWG_ROOT_PATH.'include/cssmin.class.php'); 1228 1229 $css = CssMin::minify($css, array('emulate-css3-variables'=>false)); 1229 1230 $css = trigger_event('combined_css_postfilter', $css); 1230 1231 return $css; 1231 1232 } 1232 1233 1233 1234 private static function process_css_rec($file) 1234 1235 { … … 1244 1245 $relative = dirname($file) . "/$match[1]"; 1245 1246 $search[] = $match[0]; 1246 $replace[] = 'url('.embellish_url(get_absolute_root_url(false) ).$relative.')';1247 $replace[] = 'url('.embellish_url(get_absolute_root_url(false).$relative).')'; 1247 1248 } 1248 1249 }
Note: See TracChangeset
for help on using the changeset viewer.