Handle external script libraries
WraithKenny opened this issue · comments
Ken Newman commented
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>
Ken Newman commented
well that markup didn't work at all. :-P
Ken Newman commented
Can totally do this in shortcodes now.