unFocus / Scripts-n-Styles

Allows WordPress admin users the ability to add custom CSS and JavaScript directly to individual Post, Pages or custom post types.

Home Page:http://www.unFocus.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Handle external script libraries

WraithKenny opened this issue · comments

Scripts n Styles should be able to handle widget-adding code like

    <script type="text/javascript" src="http://widgets.twimg.com/j/2/widget.js"></script><script type="text/javascript">
    // < ![CDATA[
    new TWTR.Widget(
        { 
            version: 2, 
            type: 'search', 
            interval: 6000, 
            width: 'auto',  
            height: 450, 
            theme: { 
                shell: { background: '#85110f', color: '#ffffff' }, 
                tweets: { background: '#ffffff', color: '#444444', links: '#ee4022' } 
            }, 
            features: { 
                scrollbar: true, 
                loop: false, 
                live: true, 
                hashtags: true, 
                timestamp: true, 
                avatars: true, 
                behavior: 'all' 
            }
        }
    ).render().start();
    // ]]>
    </script>

well that markup didn't work at all. :-P

Can totally do this in shortcodes now.