[php]
define (‘DIGGTHIS_JS’,
"<script type=’text/javascript’>
(function() {
var s = document.createElement(‘SCRIPT’), s1 = document.getElementsByTagName(‘SCRIPT’)[0];
s.type = ‘text/javascript’;
s.async = true;
s.src = ‘http://widgets.digg.com/buttons.js’;
s1.parentNode.insertBefore(s, s1);
})();
</script>");
function diggthis_add_js_to_doc_head() {
print DIGGTHIS_JS;
}
add_action(‘wp_head’,’diggthis_add_js_to_doc_head’);
[/php]