Changeset 190642
- Timestamp:
- 01/06/2010 04:50:00 PM (16 years ago)
- Location:
- external-files-optimizer
- Files:
-
- 5 added
- 3 edited
-
tags/0.1.2 (added)
-
tags/0.1.2/external-files-optimizer.php (added)
-
tags/0.1.2/load-scripts.php (added)
-
tags/0.1.2/load-styles.php (added)
-
tags/0.1.2/readme.txt (added)
-
trunk/external-files-optimizer.php (modified) (1 diff)
-
trunk/load-styles.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
external-files-optimizer/trunk/external-files-optimizer.php
r186082 r190642 5 5 Author: Julien Appert 6 6 Author URI: http://julienappert.com 7 Version: 0.1. 17 Version: 0.1.2 8 8 Description: automatically combine and compress css/js files generate with wp_head and wp_footer 9 9 */ -
external-files-optimizer/trunk/load-styles.php
r186082 r190642 43 43 44 44 // remplace les url() par les url absolues si nécessaire 45 $content = preg_replace("/url\(['|\"]*([^http:\/\/].*)['|\"]*\)/", "url(".dirname($extfiles['styles'][$handle])."/$1)", $content); 45 preg_match_all("/url\(['|\"]*([^'|\"|\)]*)['|\"]*\)/", $content, $matches,PREG_PATTERN_ORDER); 46 if(count($matches[1])>0){ 47 foreach($matches[1] as $key=>$match){ 48 if(substr($match,0,7) != 'http://'){ 49 $content = preg_replace("/(".str_replace(array('(',')','/'), array('\(','\)','\/'),$matches[0][$key]).")/", "url(".dirname($extfiles['styles'][$handle])."/".$match.")", $content); 50 } 51 } 52 } 46 53 47 54 $out .= $content ; -
external-files-optimizer/trunk/readme.txt
r186082 r190642 3 3 Tags:optimize, optimizer, speed,external, file, plugin, css, js 4 4 Requires at leat: 2.7 5 Tested up to:2. 8.66 Stable tag:0.1. 15 Tested up to:2.9.1 6 Stable tag:0.1.2 7 7 8 8 Description: automatically combine and compress css/js files generate with wp_head() and wp_footer() … … 16 16 == Changelog == 17 17 18 = 0.1.2 = 19 * bugfix 20 18 21 = 0.1.1 = 19 22 * bugfix about relative url in css files
Note: See TracChangeset
for help on using the changeset viewer.