[wp-hackers] [WP1.5 Idea] Admin Setting for Alternate Path to Themes

Doug Daulton ddaulton at ursastudios.com
Sat Feb 12 20:21:10 GMT 2005


Wow.  That was quick!  Can I have a pony too?  I've always wanted one.  ;)

Seriously, thanks Ryan.  I suppose I need to pull down the latest 
nightly build?   Also, I am unfamiliar with the WP API, but have plenty 
of coding savvy.  So, can you point me at a URL that gets me started 
with this hook structure you are talking about and I'll take it from there.

Thanks,

Doug

Ryan Boren wrote:

>On Sat, 2005-02-12 at 10:14 -0800, Doug Daulton wrote:
>  
>
>>I know it may be a little late in the game for a 1.5 feature request, 
>>but I think this one could be really simple.
>>
>>I love the fact that I can install WP code in another directory and call 
>>it from webroot/index.php as described in reference URL #1.  This goes a 
>>long way to integrating WP into a larger site sitdesign with other OS 
>>apps.  My only quibble is that i should be able to set a base path for 
>>themes as well.  When incorporating WP into larger site, often the CSS 
>>and immage assets are held in another folder.  I'd like to be able just 
>>set a path thes assets and go.  Then, my dir structure could look like this.
>>    
>>
>
>I've been meaning to add some plugin hooks for this, so I did.  Here's
>the list of filters:
>
>theme_root - The base theme directory. Default:
>ABSPATH/wp-content/themes
>
>theme_root_uri - The base theme uri. Default: siteurl/wp-content/themes
>
>stylesheet_directory - The directory containing the active stylesheet.
>Default: theme_root/stylesheet-theme-name
>
>stylesheet_directory_uri - The uri of the directory containing the
>active stylesheet.  Default: theme_root_uri/stylesheet-theme-name
>
>stylesheet_uri - The uri of the active stylesheet.  Default:
>stylesheet_directory_uri/style.css
>
>template_directory - The directory containing the active template.
>Default: theme_root/template-theme-name
>
>template_directory_uri - The uri of the directory containing the active
>template.  Default: theme_root_uri/template-theme-name
>
>To relocate from wp-contet/themes/ to /themes/,  hook into the
>theme_root and theme_root_uri filters.  Changes made to those will be
>picked up by the stylesheets and templates.
>
>Ryan
>
>
>_______________________________________________
>hackers mailing list
>hackers at wordpress.org
>http://wordpress.org/mailman/listinfo/hackers
>
>
>  
>




More information about the hackers mailing list