Template Provisioning Wordpress Plugin - Rating, Reviews, Demo & Download
Plugin Description
Overview
The Template Provisioning plugin automatically links to stylesheet and javascript files in your theme directories based on the template file that renders a page. It searches in several pre-defined locations for files, and includes whichever files are found.
I wrote this plugin because I prefer this method to using Wordpress’s conditional tags in my header. Keeping resources for different templates separate helps me keep my custom theme directories clean and organized.
For example, if I have a custom template “map.php” that is being used by a static page, I can create “css/map.css” and “js/map.js” files and they’ll be automatically linked-up by this plugin.
Requirements
Will this plugin work with your theme? Probably. It’s completely additive, and doesn’t change anything that would affect other plugins. I have been using most of this code since Wordpress 2.5 or so. But be warned… I haven’t thoroughly tested it across versions of Wordpress. I’ll try to do that soon and post the results.
Screenshots
No screenshots provided