1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-28 02:10:46 +02:00
Files
php-e107/e107_files/shortcode/stylesheet.sc
2006-12-02 04:36:16 +00:00

11 lines
404 B
Python

// $Id: stylesheet.sc,v 1.1.1.1 2006-12-02 04:33:40 mcfly_e107 Exp $
$css = file_get_contents(THEME."style.css");
$search = array("url(images","url('images");
$replace[0] = "url(".SITEURL.$THEMES_DIRECTORY.$pref['sitetheme']."/images";
$replace[1] = "url('".SITEURL.$THEMES_DIRECTORY.$pref['sitetheme']."/images";
$CSS = str_replace($search,$replace,$css);
return "\n<style>\n".$CSS."\n</style>\n";
?>