Changeset 186082
- Timestamp:
- 12/22/2009 11:03:18 AM (16 years ago)
- Location:
- external-files-optimizer
- Files:
-
- 5 added
- 4 edited
-
tags/0.1.1 (added)
-
tags/0.1.1/external-files-optimizer.php (added)
-
tags/0.1.1/load-scripts.php (added)
-
tags/0.1.1/load-styles.php (added)
-
tags/0.1.1/readme.txt (added)
-
trunk/external-files-optimizer.php (modified) (1 diff)
-
trunk/load-scripts.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
r181058 r186082 5 5 Author: Julien Appert 6 6 Author URI: http://julienappert.com 7 Version: 0.1 7 Version: 0.1.1 8 8 Description: automatically combine and compress css/js files generate with wp_head and wp_footer 9 9 */ -
external-files-optimizer/trunk/load-scripts.php
r181058 r186082 44 44 } 45 45 } 46 46 47 47 48 header('Content-Type: application/x-javascript; charset=UTF-8'); 48 49 header('Expires: ' . gmdate( "D, d M Y H:i:s", time() + $expires_offset ) . ' GMT'); -
external-files-optimizer/trunk/load-styles.php
r181058 r186082 43 43 44 44 // remplace les url() par les url absolues si nécessaire 45 preg_match_all("/url\(['|\"]*(.*)['|\"]*\)/", $content, $matches); 46 if(count($matches[1])>0){ 47 foreach($matches[1] as $match){ 48 if(substr($match,0,7) != 'http://'){ 49 $content = str_replace($match,dirname($extfiles['styles'][$handle]).'/'.$match,$content); 50 } 51 } 52 } 45 $content = preg_replace("/url\(['|\"]*([^http:\/\/].*)['|\"]*\)/", "url(".dirname($extfiles['styles'][$handle])."/$1)", $content); 53 46 54 47 $out .= $content ; 55 48 } 56 57 58 49 59 50 header('Content-Type: text/css'); -
external-files-optimizer/trunk/readme.txt
r181058 r186082 4 4 Requires at leat: 2.7 5 5 Tested up to:2.8.6 6 Stable tag:0.1 6 Stable tag:0.1.1 7 7 8 8 Description: automatically combine and compress css/js files generate with wp_head() and wp_footer() … … 13 13 2. Activate the plugin through the 'Plugins' menu in WordPress 14 14 3. That's it ! 15 16 == Changelog == 17 18 = 0.1.1 = 19 * bugfix about relative url in css files
Note: See TracChangeset
for help on using the changeset viewer.