2013-04-04, 03:28:30
(2013-04-03, 22:54:16)shawn_a Wrote: Its not really a php or function issue. You have to change it manually or via output buffering like i said.
I think there's several problems to solve in order to achieve this:
1. Where to put the code? I asked a similar question here and a brilliant answer was to make a static plugin that you control. There's no update to the plugin, since it's yours and you can put what ever custom code in it.
2. Like shawn_A mentioned, develop PHP code to rewrite any references to files like /theme/some_theme/css/style.css to /css/style.css.
3. Craft .htaccess to rewrite /css/style.css back to /theme/some_theme/css/style.css.
That way, /theme/some_theme/css/style.css never appears in the HTML source code.
Problem 1 & 3 seems very easy to do. Problem 2 seems a bit more difficult.
shawn_A, you wouldn't, by any chance, want to take a crack at problem 2, would you?