[wp-hackers] Theme Additions
Ryan Boren
ryan at boren.nu
Thu Sep 30 18:27:40 UTC 2004
I added bloginfo('stylesheet_directory') as per the previous discussion.
If you are using the default theme, this is the same as the siteurl.
For any other theme, this resolves to siteurl/wp-content/themes/theme-
name. If your template uses multiple stylesheets, you can use bloginfo
('stylesheet_directory') when importing them. Also, if your template
references images that are part of the layout, reference them via
stylesheet_directory so that other themes can inherit from yours and
supply their own flavors of those images.
bloginfo('template_directory') is also available. Note that
template_directory and stylesheet_directory can be different
directories. As mentioned above, all style elements such as images and
stylesheets should be referenced via stylesheet_directory. There's
probably no real need for template_directory since a template can
reference what it needs via relative paths.
comments_popup_script() is now theme aware. If your theme supplies
comments-popup.php, that will be used instead of the default.
comments_template() is already theme aware and will use comments.php.
Ryan
More information about the hackers
mailing list