define('DISALLOW_FILE_EDIT', true);{"id":503,"date":"2010-09-04T14:16:29","date_gmt":"2010-09-04T19:16:29","guid":{"rendered":"http:\/\/www.unfocus.com\/"},"modified":"2013-08-27T15:18:17","modified_gmt":"2013-08-27T19:18:17","slug":"scripts-n-styles","status":"publish","type":"page","link":"http:\/\/www.unfocus.com\/projects\/scripts-n-styles\/","title":{"rendered":"Scripts n Styles"},"content":{"rendered":"

Introducing a new WordPress plugin from unFocus Projects: Scripts n Styles!<\/p>\n

We wrote this plugin because sometimes you just need a small bit of JavaScript or CSS only on one page or post, but it isn’t very convenient to create a whole new template or write a complicated filter in your theme’s function file just for this.<\/p>\n

This plugin allows Admin users the ability to add custom CSS and JavaScript directly into individual Post, Pages or any other registered custom post types.<\/p>\n

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 \ud83d\ude09<\/p><\/blockquote>\n

For example, if you check the source code of this page (or view the element with Firebug), you should see in the following rule:<\/p>\n

[css]<\/p>\n

.syntaxhighlighter { border: 1px solid blue; }<\/p>\n

[\/css]<\/p>\n

This was simply included only on this page by using the Styles meta box on the page edit screen.<\/p>\n

A few notes about the implementation:<\/p>\n