Name: Scripts n Styles
License: GPL2
Product demo page: http://www.unfocus.com/projects/scripts-n-styles/
Product info page (with download link): http://wordpress.org/extend/plugins/scripts-n-styles/
This plugin allows Admin users the ability to add custom CSS (at the bottom of the head tag) and JavaScript (at the bottom of the body tag) directly into individual Post, Pages or any other registered custom post types.
Because only well trusted users should ever be allowed to insert JavaScript directly into the pages of your site, this plugin restricts usage to admin type users. Admin's have access to even more sensitive areas by definition, so that should be relatively safe ;)
A few notes about the implementation:
- Admin users, or more specifically, any user with the manage_options capability (which by default is only the admin type user) can use this plugin's functionality. Some plugins extend user rolls, and so this plugin would naturally extend include rolls that have the appropriate capability.
- CSS Styles are included inline, not linked, at the bottom of the head element with style tags by using wp-head. If your theme doesn't have this hook, this plugin (as well as most others) won't work.
- JavaScript is included inline, not linked, at the bottom of the body element with script tags by using wp-footer. If your theme doesn't have this hook, this plugin (as well as most others) won't work.
- There is no input validation. This plugin puts exactly what you type in the meta box directly into the html with no error checking. You are an Admin, and we trust you to be carefull. Try not to break anything.